# x402stock World Bank Country Macroeconomic Indicators

> x402stock World Bank Country Macroeconomic Indicators is a paid API for AI agents from x402stock.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-08).

Returns World Bank macroeconomic indicators (GDP, inflation, unemployment) for a given country by ISO code, paid per-call in USDC via x402 on Base.

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/world-bank/country/%7Biso%7D
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-08
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-world-bank-country-macroeconomic-indicators-f11e80c5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5mM_i87AWSBwBBPDXgu79

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 x402stock-world-bank-country-macroeconomic-indicators-f11e80c5
```

Example prompt: What are the latest World Bank macroeconomic indicators — GDP, inflation, and unemployment — for Germany? Use ISO code DE.

## When to prefer this

Use this endpoint when you need authoritative World Bank macroeconomic data (GDP, inflation, unemployment) for a specific country identified by ISO code, without needing an API key or subscription. Ideal for AI agents needing global macro context on a pay-per-call basis. Prefer over Fed or Treasury endpoints when the query is international rather than US-specific.

## Known failure modes

- Invalid or unrecognized ISO country code returns 404 or empty result
- Country has no World Bank data available for one or more indicators
- Payment not completed or insufficient USDC balance results in 402 Payment Required
- Network timeout or service unavailability returns 5xx
- Malformed request URL due to incorrect ISO code format

## How this service works

Pay-per-call market and economic data API for AI agents: US stocks, ETFs and options, forex, crypto and on-chain perps, energy commodities, US and global macro (Fed, CPI, jobs, GDP, Treasury, World Bank), SEC filings, congressional trades, and market sentiment. No API keys, no accounts. Pay per request in USDC via x402 on Base.

## Output

A JSON object containing the country's ISO2/ISO3 codes and name, an as-of date, a source field ('world_bank'), and an array of indicator objects each with the indicator name, World Bank indicator code, and the latest available year and value. Includes GDP in current USD, annual inflation (CPI %), and unemployment (% of labor force). Attribution to World Bank WDI (CC BY 4.0) is included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "as_of": "2025-12-31T00:00:00.000Z",
  "source": "world_bank",
  "country": {
   "code": "US",
   "iso3": "USA",
   "name": "United States"
  },
  "indicators": [
   {
    "latest": {
     "year": "2024",
     "value": 28750956130731.2
    },
    "indicator": "gdp",
    "indicator_code": "NY.GDP.MKTP.CD",
    "indicator_name": "GDP (current US$)"
   },
   {
    "latest": {
     "year": "2024",
     "value": 2.94952520485207
    },
    "indicator": "inflation",
    "indicator_code": "FP.CPI.TOTL.ZG",
    "indicator_name": "Inflation, consumer prices (annual %)"
   },
   {
    "latest": {
     "year": "2025",
     "value": 4.198
    },
    "indicator": "unemployment",
    "indicator_code": "SL.UEM.TOTL.ZS",
    "indicator_name": "Unemployment, total (% of labor force, modeled ILO)"
   }
  ],
  "attribution": "Source: World Bank, World Development Indicators (CC BY 4.0)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-world-bank-country-macroeconomic-indicators-f11e80c5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.xyz](https://www.zero.xyz/host/x402stock.xyz/llms.txt)
