# World GDP Data by Country (World Bank)

> World GDP Data by Country (World Bank) is a paid API for AI agents from cycle-angela-lamp-hamburg.trycloudflare.com, paid per call via x402, $0.02/call, status down (last checked 2026-09-15).

Returns the last five annual GDP values (current USD) for a given country using its ISO country code, sourced from World Bank data.

## Facts

- Endpoint: GET https://cycle-angela-lamp-hamburg.trycloudflare.com/api/macro/world-gdp
- Price: $0.02/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/world-gdp-data-by-country-world-bank-af8a4f86
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uyBUk49kuaWSTBeuMYF2b

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-gdp-data-by-country-world-bank-af8a4f86
```

Example prompt: Can you pull up the last five years of GDP data for Germany in current US dollars from World Bank figures?

## When to prefer this

Use this endpoint when you need structured, multi-year historical GDP data for a specific country in current USD from a reliable official source (World Bank). Prefer this over general web search when you need machine-readable annual GDP series for macroeconomic analysis, country comparisons, or financial modeling. Best suited for single-country lookups by ISO code rather than bulk cross-country queries.

## Known failure modes

- Invalid or unrecognized ISO country code returns an error or empty result
- Country not covered by World Bank data may return null values or empty array
- Missing ?country= parameter may return a 400 or default error response
- Cloudflare tunnel downtime may cause intermittent 502/503 errors
- World Bank data lag may mean most recent year is unavailable or null

## How this service works

Country GDP data: gross domestic product current USD, last five annual values with years. JSON. Pass ?country=<ISO code like US JP DE>. World Bank data.

## Output

A JSON object containing the country identifier, the data source (World Bank), a Unix timestamp of when the payload was generated, and an array of up to five objects each with a year string and the corresponding GDP value in current USD.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "source": {
   "type": "string"
  },
  "country": {
   "type": "string"
  },
  "generated_at": {
   "type": "integer",
   "description": "unix seconds when payload was built"
  },
  "gdp_current_usd": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "year": {
      "type": "string"
     },
     "value": {
      "type": "number"
     }
    }
   },
   "description": "last 5 years, current USD"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/world-gdp-data-by-country-world-bank-af8a4f86/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cycle-angela-lamp-hamburg.trycloudflare.com](https://www.zero.xyz/host/cycle-angela-lamp-hamburg.trycloudflare.com/llms.txt)
