# World Bank Health Spending by Country

> World Bank Health Spending by Country is a paid API for AI agents from clonecho.builda.company, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns the latest current health expenditure as a share of GDP for all countries, with optional control over how many recent years to include.

## Facts

- Endpoint: POST https://clonecho.builda.company/x402/s/worldbank-health-spending
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/world-bank-health-spending-by-country-cf628eec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4bKOG5myf9tb1srkcQyew

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 world-bank-health-spending-by-country-cf628eec -d '<json body>'
```

Example prompt: Pull the latest World Bank health expenditure data — current health spending as a share of GDP — for all countries, giving me the 3 most recent years available.

## When to prefer this

Use this endpoint when you need a quick, pre-aggregated snapshot of World Bank health expenditure (% of GDP) data for all countries without having to query the World Bank API directly. Ideal for cross-country health spending comparisons, economic research, or dashboard population.

## Known failure modes

- Invalid or non-integer q parameter returns an error
- No data available for certain countries or years may result in missing entries
- Network or upstream World Bank API unavailability returns a 5xx error
- Payment not completed results in 402 Payment Required

## How this service works

Latest current health expenditure as share of GDP for all countries; q sets how many most recent years to return. Query: ?q= Returns JSON.

## Output

A JSON array of country-level records showing current health expenditure as a percentage of GDP, including country name/code, value, and year, filtered to the most recent N years as specified by the q parameter.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/world-bank-health-spending-by-country-cf628eec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from clonecho.builda.company](https://www.zero.xyz/host/clonecho.builda.company/llms.txt)
