# x402stock World Bank Macro Indicator Time Series

> x402stock World Bank Macro Indicator Time Series is a paid API for AI agents from agents.x402stock.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns an annual time series of a World Bank macroeconomic indicator for a given country, including the latest value, prior year value, and year-over-year change.

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/world-bank/:indicator
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-world-bank-macro-indicator-time-series-4e2658e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eDvn1M_dZ8xAhQo5uUger

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-macro-indicator-time-series-4e2658e9
```

Example prompt: Pull the World Bank inflation time series for Brazil for the last 15 years and tell me the latest value, what it was the prior year, and how much it changed.

## When to prefer this

Choose this endpoint when you need structured, annual macroeconomic time series data for a specific country sourced from the World Bank — particularly for indicators like GDP, inflation, unemployment, population, government debt, exports, FDI, or current account balance. It is ideal for cross-country macro reference, economic research, risk analysis, or populating dashboards with authoritative development statistics. Prefer it over proprietary data sources when open, citable World Bank data (CC BY 4.0) is required.

## Known failure modes

- Invalid indicator slug returns a 404 or error response
- Invalid or unsupported country code returns an error
- Limit exceeding the maximum of 66 or set to 0 triggers a validation error
- World Bank data may have gaps for certain country-indicator combinations, resulting in null values
- Payment failure (insufficient USDC balance) results in a 402 Payment Required response

## How this service works

Annual time series of one World Bank indicator for a country, with latest value, prior year, and change. Indicators: gdp, gdp-growth, gdp-per-capita, inflation, unemployment, population, govt-debt, current-account, exports, fdi. Pick the country with `?country=US` (ISO2/ISO3, default US) and the span with `?limit=` years (default 10). Cross-country macro reference. Source: World Bank (CC BY 4.0).

## Output

A JSON response containing an annual time series of the requested World Bank indicator for the specified country, covering up to the requested number of years. Each data point includes the year and value. The response also highlights the latest available value, the prior year's value, and the absolute or percentage change between them. Country and indicator metadata are included for context.

## 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": {
     "type": "object",
     "indicator": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "default": 10,
       "maximum": 66,
       "exclusiveMinimum": 0
      },
      "country": {
       "type": "string",
       "default": "US",
       "pattern": "^[A-Za-z]{2,3}$"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-world-bank-macro-indicator-time-series-4e2658e9/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)
