# x402stock World Bank Country Macro Profile

> x402stock World Bank Country Macro Profile is a paid API for AI agents from agents.x402stock.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-02).

Returns a single-call macro snapshot for any country — GDP, growth, inflation, unemployment, population, debt, trade, and FDI — sourced from World Bank WDI data, identified by ISO country code.

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/world-bank/country/:iso?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-world-bank-country-macro-profile-d60b826b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6Rg7_4ujunsALP4uDA5Ez

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-macro-profile-d60b826b
```

Example prompt: Pull the full macro profile for India — GDP, inflation, unemployment, government debt, exports, and FDI — from the World Bank data.

## When to prefer this

Choose this endpoint when you need a broad international macroeconomic profile for any country in a single call, especially for non-US economies not covered by FRED or BLS. It is ideal for country risk analysis, emerging market research, or building comparative economic dashboards without stitching together multiple World Bank API calls.

## Known failure modes

- Invalid or unrecognized ISO country code returns an error
- World Bank data may have reporting lags for some indicators or countries
- Some small or disputed territories may have incomplete or missing indicator data
- Payment failure (insufficient USDC balance) blocks the request at the x402 layer

## How this service works

A country's macro profile in one call: latest GDP, GDP growth, GDP per capita, inflation, unemployment, population, government debt, current account, exports, and FDI, from the World Bank's World Development Indicators. Pass an ISO country code in the path (e.g. US, CN, IN, DE). International macro the US-only FRED/BLS endpoints don't cover. Source: World Bank (CC BY 4.0). From x402stock

## Output

A structured JSON object containing the country's latest available World Bank WDI figures: GDP (absolute), GDP growth rate, GDP per capita, inflation rate, unemployment rate, total population, government debt as % of GDP, current account balance, total exports, and foreign direct investment inflows — all sourced from the World Bank under CC BY 4.0.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "iso": {
      "type": "string"
     },
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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