# agentsvc.io Macro Data – World Bank Economic Indicators

> agentsvc.io Macro Data – World Bank Economic Indicators is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.006/call, status unknown (last checked 2026-10-10).

Fetches multi-year macroeconomic indicators (GDP, inflation, unemployment, etc.) for a given country from World Bank Open Data, optionally including ECB interest rates.

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/macro-data?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentsvc-io-macro-data-world-bank-economic-indicators-58214480
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nqJb9BCektud3teUJkBpo

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 agentsvc-io-macro-data-world-bank-economic-indicators-58214480 -d '<json body>'
```

Example prompt: Pull the World Bank macro data for Germany over the last 5 years — I want inflation, unemployment, and GDP growth, and also include the ECB rates.

## When to prefer this

Choose this endpoint when you need structured, time-series macroeconomic data for a specific country sourced from World Bank Open Data — especially when you need multiple indicators in a single call without managing API keys or registrations. Prefer it over direct World Bank API calls when you want a simple pay-per-use model with no account setup, and when you need optional ECB rate enrichment alongside standard indicators.

## Known failure modes

- Unsupported or misspelled country code returns an error or empty result
- Requesting indicators not in the allowed enum causes a validation error
- Years value outside 1–20 range is rejected
- World Bank API upstream unavailability causes a timeout or 502
- No data available for a specific indicator/country combination returns null values in history

## How this service works

86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.

## Output

A JSON object containing the country name and code, the timestamp of the data check, the data source (World Bank Open Data), and an array of indicator objects — each with its World Bank code, human-readable label, latest value (with year), and a historical time series array of year-value pairs going back the requested number of years. ECB rate data is appended when requested.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "years": {
   "type": "integer",
   "default": 5,
   "maximum": 20,
   "minimum": 1
  },
  "country": {
   "type": "string"
  },
  "indicators": {
   "type": "array",
   "items": {
    "enum": [
     "inflation",
     "gdp",
     "gdp_growth",
     "gdp_per_capita",
     "unemployment",
     "population",
     "government_debt",
     "current_account",
     "exports",
     "lending_rate"
    ],
    "type": "string"
   }
  },
  "include_ecb_rates": {
   "type": "boolean",
   "default": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "source": "World Bank Open Data",
   "country": "DE",
   "checked_at": "2026-10-06T14:17:45.054Z",
   "indicators": [
    {
     "code": "FP.CPI.TOTL.ZG",
     "label": "Inflation, consumer prices (annual %)",
     "latest": {
      "year": 2025,
      "value": 2.17178770949721
     },
     "history": [
      {
       "year": 2025,
       "value": 2.17178770949721
      },
      {
       "year": 2024,
       "value": 2.2564981433876
      }
     ],
     "indicator": "inflation",
     "country_name": "Germany"
    },
    {
     "code": "SL.UEM.TOTL.ZS",
     "label": "Unemployment (% of labor force, ILO)",
     "latest": {
      "year": 2025,
      "value": 3.711
     },
     "history": [
      {
       "year": 2025,
       "value": 3.711
      },
      {
       "year": 2024,
       "value": 3.4
      }
     ],
     "indicator": "unemployment",
     "country_name": "Germany"
    }
   ],
   "country_name": "Germany"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentsvc-io-macro-data-world-bank-economic-indicators-58214480/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentsvc.io](https://www.zero.xyz/host/agentsvc.io/llms.txt)
