AgentAPIGate
Back to Catalog
GET /v1/macro/worldbank/indicatorsPack: finance·MCP Tool: macro_worldbank_indicators

World Bank Country Macroeconomic Indicators

Retrieve annual country macroeconomic indicators (GDP, inflation, population, trade) from the official World Bank v2 API.

API Key Price:$0.0005 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
ISO country code or "all" (e.g. "USA", "GBR", "JPN", "CHN")
World Bank indicator ID (e.g. "NY.GDP.MKTP.CD", "FP.CPI.TOTL.ZG", "SP.POP.TOTL")
Max yearly observations (1-60)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/macro/worldbank/indicators" \
  --data-urlencode "country=USA" \
  --data-urlencode "indicator=NY.GDP.MKTP.CD" \
  --data-urlencode "limit=10" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-56% tokens
# World Bank Country Macroeconomic Indicators (`macro.worldbank.indicators`)
**country**: USA · **indicator_id**: NY.GDP.MKTP.CD · **indicator_name**: GDP (current US$) · **last_updated**: 2026-11-11 · **count**: 10

## observations
- [1] date: 2025, value: 30769700000000, country_id: US, country_name: United States, country_iso3: USA
- [2] date: 2024, value: 29298013000000, country_id: US, country_name: United States, country_iso3: USA
- [3] date: 2023, value: 27811517000000, country_id: US, country_name: United States, country_iso3: USA
- [4] date: 2022, value: 26054614000000, country_id: US, country_name: United States, country_iso3: USA
- [5] date: 2021, value: 23725645000000, country_id: US, country_name: United States, country_iso3: USA
- [6] date: 2020, value: 21375281000000, country_id: US, country_name: United States, country_iso3: USA
- [7] date: 2019, value: 21539982000000, country_id: US, country_name: United States, country_iso3: USA
- [8] date: 2018, value: 20656516000000, country_id: US, country_name: United States, country_iso3: USA
- [9] date: 2017, value: 19612102000000, country_id: US, country_name: United States, country_iso3: USA
- [10] date: 2016, value: 18804913000000, country_id: US, country_name: United States, country_iso3: USA

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: macro.worldbank.indicators · Method: GET
ParameterTypeReqSample / DefaultDescription
countrystringoptionalUSAISO country code or "all" (e.g. "USA", "GBR", "JPN", "CHN")
indicatorstringoptionalNY.GDP.MKTP.CDWorld Bank indicator ID (e.g. "NY.GDP.MKTP.CD", "FP.CPI.TOTL.ZG", "SP.POP.TOTL")
limitnumberoptional10Max yearly observations (1-60)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0005 / call$0/mo · Balance never expires
Remote MCP Toolmacro_worldbank_indicatorsOAuth 2.1 Hub & /mcp/finance
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency95 ms$0 billed on empty or 4xx/5xx
Token Economy790t → 344t (-56%)Partner credit: eligible

More Finance & Crypto Real-Time APIs

Frequently Asked Questions

How do I call World Bank Country Macroeconomic Indicators (macro.worldbank.indicators) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/macro/worldbank/indicators with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool macro_worldbank_indicators on https://mcp.agentapigate.ai/mcp.

What does macro.worldbank.indicators cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.0005 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.

How does ?format=md or ?format=compact optimize AI agent token usage on macro.worldbank.indicators?

Passing ?format=md transforms the response into normalized Markdown (~344 tokens vs ~790 raw tokens, saving 56% of LLM context budget) while preserving structured JSON via ?format=json.

Can I restrict an AI agent key to only finance endpoints with a daily USD cap?

Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["finance"], optional allowed_endpoints: ["macro.worldbank.indicators"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.