# Life Expectancy by Sex — Macroeconomic Report API

> Life Expectancy by Sex — Macroeconomic Report API is a paid API for AI agents from reportbazaar.app.workbuddy.host, paid per call via x402, $0.08/call, status unknown (last checked 2026-10-02).

Fetches a structured macroeconomic report on life expectancy at birth disaggregated by sex (female/male) across 20 economies, covering 2015–2025, paid per fetch in USDC via x402.

## Facts

- Endpoint: GET https://reportbazaar.app.workbuddy.host/report/macro-life-expectancy-sex?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/life-expectancy-by-sex-macroeconomic-report-api-d7841535
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o1Obg9q9s9P-hbAHsGy0L

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability life-expectancy-by-sex-macroeconomic-report-api-d7841535
```

Example prompt: Pull me the life expectancy by sex report in JSON format — I need the female and male figures across all 20 economies with trends and rankings.

## When to prefer this

Choose this endpoint when you need a pre-built, analysis-ready report on life expectancy disaggregated by sex across a panel of 20 economies, without the overhead of API keys or account management. It is ideal for agents that need to pay per fetch in USDC (x402 protocol) and want multiple output formats including tidy CSV panels, JSON, or HTML with pre-computed trend statistics and rankings.

## Known failure modes

- 402 Payment Required if USDC payment via x402 is not provided or fails
- Invalid format parameter returns an error
- Service unavailable if the upstream World Bank data source is unreachable
- Stale or incomplete data if coverage gaps exist (disclosed in data-quality section)

## How this service works

Machine-to-machine macroeconomic report API. Pay per fetch in USDC over x402. No accounts, no API keys.

## Output

A structured report (in html, json, csv, or summary-csv format) covering life expectancy at birth for female and male populations across 20 economies from 2015 to 2025. Includes key findings, a ranking table, share of group totals, trend lines with R² values, volatility measures, a full year-by-year matrix, and a coverage/data-quality disclosure.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "format": {
       "enum": [
        "html",
        "json",
        "csv",
        "summary-csv"
       ],
       "type": "string",
       "description": "Delivery format. csv is a tidy long panel; summary-csv is one row per economy of derived metrics."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "years": "2015:2025",
  "schema": "/schema/report.json",
  "formats": [
   "html",
   "json",
   "csv",
   "summary-csv"
  ],
  "contains": [
   "key findings",
   "ranking table",
   "share of group total",
   "trend with R²",
   "volatility",
   "full year-by-year matrix",
   "coverage and data-quality disclosure"
  ],
  "economies": 20,
  "indicators": [
   "SP.DYN.LE00.FE.IN",
   "SP.DYN.LE00.MA.IN"
  ],
  "contentType": "text/html",
  "description": "Life Expectancy by Sex Report",
  "freePreview": "/preview/macro-life-expectancy-sex",
  "indicatorsLabel": [
   "Life expectancy at birth, female (years)",
   "Life expectancy at birth, male (years)"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/life-expectancy-by-sex-macroeconomic-report-api-d7841535/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from reportbazaar.app.workbuddy.host](https://www.zero.xyz/host/reportbazaar.app.workbuddy.host/llms.txt)
