# Datakoot Compare Countries (World Bank Indicators)

> Datakoot Compare Countries (World Bank Indicators) is a paid API for AI agents from x402.datakoot.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Compares multiple countries side-by-side on a World Bank economic or development indicator, returning a ranked list of values by country and year.

## Facts

- Endpoint: POST https://x402.datakoot.com/api/compare_countries?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datakoot-compare-countries-world-bank-indicators-e4e25a1e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jCzUFB10KjD-4u-YYjmSt

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 datakoot-compare-countries-world-bank-indicators-e4e25a1e -d '<json body>'
```

Example prompt: Compare GDP per capita for the US, Germany, and Japan using World Bank data and tell me how they rank.

## When to prefer this

Use this endpoint when you need to directly compare two or more countries on a specific macroeconomic or development metric sourced from the World Bank. Prefer it over single-country lookup endpoints when ranking or benchmarking is the goal. It is ideal for economic research, investment analysis, policy comparison, and data journalism tasks where authoritative public data with clear attribution is required. At $0.002 per call it is cost-effective for per-query agent workflows; the free MCP tier (100 calls/day) suits lighter usage.

## Known failure modes

- Unknown indicator key returns an error — use list_indicators to verify valid keys
- Invalid or unrecognized country code/name returns an error or empty entry for that country
- Countries with missing World Bank data for recent years may return null values or older vintages
- Payment failure (insufficient USDC balance on Base) results in a 402 response and no data
- Passing an empty countries array returns an error

## How this service works

48 live public-data tools (security, packages, SEC filings, economy, FX, weather, domains, Federal Register, Base) for AI agents. $0.002 USDC per call on Base via x402, charged only on success. The same tools are free for 100 calls/day via MCP at <server>.datakoot.com/mcp.

## Output

Returns a JSON object containing the World Bank indicator name, its code, the data source, and a ranked array of objects each with a country name, the latest year available, and the indicator value in its native unit (e.g. current USD for GDP, percentage for unemployment).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "countries": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Array of country codes or names to compare, e.g. [\"US\", \"DE\", \"JP\"]."
  },
  "indicator": {
   "type": "string",
   "description": "World Bank indicator key: gdp, gdp_per_capita, gdp_growth, inflation, population, unemployment, life_expectancy, exports, imports, govt_debt_pct_gdp, real_interest_rate, fdi, co2_per_capita, internet_users. Call list_indicators for the full set. Raw World Bank codes are also accepted."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "code": "NY.GDP.MKTP.CD",
  "source": "World Bank (CC-BY 4.0)",
  "ranking": [
   {
    "year": "2025",
    "value": 30769700000000,
    "country": "United States"
   },
   {
    "year": "2025",
    "value": 19498039388042.6,
    "country": "China"
   }
  ],
  "indicator": "GDP (current US$)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datakoot-compare-countries-world-bank-indicators-e4e25a1e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.datakoot.com](https://www.zero.xyz/host/x402.datakoot.com/llms.txt)
