World Bank Country Macroeconomic Indicators
Retrieve annual country macroeconomic indicators (GDP, inflation, population, trade) from the official World Bank v2 API.
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"
# 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| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| country | string | optional | USA | ISO country code or "all" (e.g. "USA", "GBR", "JPN", "CHN") |
| indicator | string | optional | NY.GDP.MKTP.CD | World Bank indicator ID (e.g. "NY.GDP.MKTP.CD", "FP.CPI.TOTL.ZG", "SP.POP.TOTL") |
| limit | number | optional | 10 | Max yearly observations (1-60) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0005 / call | $0/mo · Balance never expires |
| Remote MCP Tool | macro_worldbank_indicators | OAuth 2.1 Hub & /mcp/finance |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 95 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 790t → 344t (-56%) | Partner credit: eligible |
More Finance & Crypto Real-Time APIs
Fetch official SEC EDGAR regulatory filings by stock ticker or CIK with direct document URLs.
Retrieve recent SEC Form 4 insider stock purchases, sales, and awards for any public company ticker.
Query audited US-GAAP XBRL revenue, net income, cash, assets, and EPS history directly from SEC EDGAR.
Search live DEX liquidity pools across Solana, Base, Ethereum, Arbitrum, and BSC with real-time price, FDV, and 24h volume.
Fetch all active DEX liquidity pools for a specific chain and token contract address.
Track surging trending liquidity pools on Base, Solana, Ethereum, or Arbitrum via GeckoTerminal.
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.