# World Bank Indicator Time Series

> World Bank Indicator Time Series is a paid API for AI agents from agent402.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-13).

Fetches a World Bank economic indicator time series (e.g. GDP, inflation, unemployment, population) for a given country and year range

## Facts

- Endpoint: GET https://agent402.tools/api/world-bank-indicator?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/world-bank-indicator-time-series-966494e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kTe38FEiLmWWDGypxiiOQ

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-indicator-time-series-966494e6
```

Example prompt: Can you pull the World Bank GDP data (indicator NY.GDP.MKTP.CD) for the United States from 2018 to 2022?

## When to prefer this

Use this endpoint when you need structured, historical World Bank macroeconomic or development indicator data for a specific country over a custom year range. Prefer this over general web search when you need machine-readable time-series values (GDP, inflation, unemployment, population, etc.) sourced directly from the World Bank Open Data platform — no API key required.

## Known failure modes

- Invalid or unrecognized country code returns an error or empty result
- Unknown or malformed indicator code returns no data
- Years outside available World Bank data range may return nulls or partial data
- Network timeout if World Bank upstream API is slow
- Missing required query parameters (country or indicator) returns a 400-level error

## How this service works

Fetch a World Bank indicator time series for a country (e.g. GDP, inflation, unemployment, population). Open data, no key.

## Output

Returns a time series of annual values for the specified World Bank indicator and country, including the indicator name, country name, and a year-keyed array of data points covering the requested date range.

## 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": {
      "country": {
       "type": "string",
       "description": "ISO-2 or ISO-3 country code (e.g. US, USA, DE)"
      },
      "endYear": {
       "type": "number",
       "description": "Last year (default 2023)"
      },
      "indicator": {
       "type": "string",
       "description": "World Bank indicator code, e.g. NY.GDP.MKTP.CD (nominal GDP USD)"
      },
      "startYear": {
       "type": "number",
       "description": "First year (default 2018)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "country",
      "indicator",
      "indicatorName",
      "count",
      "series"
     ],
     "properties": {
      "count": {
       "type": "integer"
      },
      "series": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "year": {
          "type": "integer"
         },
         "value": {
          "type": "integer"
         }
        }
       }
      },
      "country": {
       "type": "string"
      },
      "indicator": {
       "type": "string"
      },
      "indicatorName": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 5,
  "series": [
   {
    "year": 2022,
    "value": 25462700000000
   }
  ],
  "country": "US",
  "indicator": "NY.GDP.MKTP.CD",
  "indicatorName": "GDP (current US$)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/world-bank-indicator-time-series-966494e6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
