# World Bank Country Indicator Time Series API

> World Bank Country Indicator Time Series API is a paid API for AI agents from project-api-gamma-sable.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Fetches World Bank v2 country-level indicator time series data for a given country and indicator code, returning slim JSON with a UI link.

## Facts

- Endpoint: GET https://project-api-gamma-sable.vercel.app/paid/worldbank/indicator?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/world-bank-country-indicator-time-series-api-a68482b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9fYwvAHpkG-IBvKxPVYFk

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-country-indicator-time-series-api-a68482b1
```

Example prompt: Can you pull the World Bank time series for GDP per capita (indicator NY.GDP.PCAP.CD) for Brazil (BRA) — I want to see the historical data?

## When to prefer this

Choose this endpoint when you need structured, machine-readable World Bank indicator time series data for a specific country and indicator code, especially in an automated agent context where you can pay $0.01 USDC per call via x402. Prefer this over scraping the World Bank website or calling the World Bank API directly when you want a pre-processed slim JSON response with a UI link included.

## Known failure modes

- HTTP 402 returned if payment in USDC on Base is not provided — caller must implement x402 payment protocol
- Invalid indicator code returns empty items array
- Invalid ISO3 country code may return empty results or an error
- Pagination out of range returns empty items
- World Bank upstream API unavailability causes downstream failure

## How this service works

Paid public-data feeds. Unpaid requests return HTTP 402. Prices are USDC on Base.

## Output

Returns a slim JSON object containing a time series array of country-level indicator data points (year and value pairs) from the World Bank v2 API, along with a uiLink pointing to the World Bank data portal page for the queried indicator and country.

## 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": [
      "indicator",
      "country"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "ROR id"
      },
      "date": {
       "type": "string",
       "description": "Query param: date"
      },
      "page": {
       "type": "string",
       "description": "Page number"
      },
      "limit": {
       "type": "string",
       "description": "Max results"
      },
      "country": {
       "type": "string",
       "description": "ISO3 country code"
      },
      "per_page": {
       "type": "string",
       "description": "Query param: per_page"
      },
      "countries": {
       "type": "string",
       "description": "Query param: countries"
      },
      "indicator": {
       "type": "string",
       "description": "WHO indicator code (alias of code)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "what": "World Bank v2 country indicator time series (slim JSON + uiLink)",
  "items": [],
  "source": "/paid/worldbank/indicator"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/world-bank-country-indicator-time-series-api-a68482b1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from project-api-gamma-sable.vercel.app](https://www.zero.xyz/host/project-api-gamma-sable.vercel.app/llms.txt)
