# World Bank Economic Indicator Lookup

> World Bank Economic Indicator Lookup is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Fetches historical World Bank economic indicator data for a given country and indicator code, returning time-series values by year.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/finance/world-bank?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/world-bank-economic-indicator-lookup-39bd470e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tlLZn-UROnYOZzSoa6Wru

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-economic-indicator-lookup-39bd470e
```

Example prompt: Pull the World Bank GDP data (indicator NY.GDP.MKTP.CD) for the United States for the last 10 years.

## When to prefer this

Choose this endpoint when you need structured, time-series World Bank economic data (GDP, population, inflation, trade, etc.) for a specific country without needing a World Bank API key or account setup. It is ideal for AI agents that need pay-per-call, frictionless access to macroeconomic statistics from an authoritative source. Prefer it over general web search when you need clean, structured numerical data tied to a specific World Bank indicator code.

## Known failure modes

- Invalid or unsupported ISO country code returns an error or empty result
- Unknown or misspelled World Bank indicator code returns no data
- Requesting more than 30 years is outside the allowed range
- World Bank API upstream unavailability causes a failed response
- Years parameter outside 1–30 range may be rejected or clamped

## How this service works

World Bank indicator values for one country by year, e.g. GDP in current US dollars (NY.GDP.MKTP.CD), from the World Bank open data API. Annual data; the latest years can be missing or revised.

## Output

A JSON object containing an array of year/value pairs for the requested indicator, the country name, the indicator code and human-readable label, the source URL pointing to the World Bank API, and a timestamp of when the data was last checked and last updated.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country",
      "indicator"
     ],
     "properties": {
      "years": {
       "type": "string",
       "description": "How many most recent years, 1 to 30 (default 5)"
      },
      "country": {
       "type": "string",
       "description": "ISO 2 or 3 letter country code, e.g. US, DEU, BR"
      },
      "indicator": {
       "type": "string",
       "description": "World Bank indicator code, e.g. NY.GDP.MKTP.CD, SP.POP.TOTL"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": [
   {
    "year": 2025,
    "value": 30769700000000
   },
   {
    "year": 2024,
    "value": 29298013000000
   }
  ],
  "source": "https://api.worldbank.org/v2/country/US/indicator/NY.GDP.MKTP.CD",
  "country": "United States",
  "checkedAt": "2026-10-23T09:36:18.513Z",
  "indicator": "GDP (current US$)",
  "lastUpdated": "2026-10-08",
  "indicatorCode": "NY.GDP.MKTP.CD"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/world-bank-economic-indicator-lookup-39bd470e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
