World Bank Macroeconomic & Sector Topics
List official World Bank development topic categories with topic IDs, titles, and sector scope descriptions.
curl -sG "https://api.agentapigate.ai/v1/macro/worldbank/topics" \ --data-urlencode "limit=25" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# World Bank Macroeconomic & Sector Topics (`macro.worldbank.topics`) **count**: 21 ### 1. 1 - id=1 | value=Agriculture & Rural Development ### 2. 2 - id=2 | value=Aid Effectiveness ### 3. 3 - id=3 | value=Economy & Growth ### 4. 4 - id=4 | value=Education ### 5. 5 - id=5 | value=Energy & Mining ### 6. 6 - id=6 | value=Environment ### 7. 7 - id=7 | value=Financial Sector ### 8. 8 - id=8 | value=Health ### 9. 9 - id=9 | value=Infrastructure ### 10. 10 - id=10 | value=Social Protection & Labor ### 11. 11 - id=11 | value=Poverty ### 12. 12 - id=12 | value=Private Sector ### 13. 13 - id=13 | value=Public Sector ### 14. 14 - id=14 | value=Science & Technology ### 15. 15 - id=15 | value=Social Development ### 16. 16 - id=16 | value=Urban Development ### 17. 17 - id=17 | value=Gender ### 18. 18 - id=18 | value=Millenium development goals ### 19. 19 - id=19 | value=Climate Change ### 20. 20 - id=20 | value=External Debt ### 21. 21 - id=21 | value=Trade
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:macro.worldbank.topics · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| topic_id | string | optional | — | Optional numeric World Bank topic ID (e.g. "1" for Agriculture, "7" for Financial Sector) |
| limit | number | optional | 25 | Maximum topics returned (1-50, default 25) |
| 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.0020 / call | $0/mo · Balance never expires |
| Remote MCP Tool | macro_worldbank_topics | OAuth 2.1 Hub & /mcp/finance |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 317 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 6910t → 253t (-96%) | Partner credit: eligible |
| Data Attribution | Source: World Bank Open Data & Projects API (api.worldbank.org / search.worldbank.org — CC BY 4.0) | |
More macro.worldbank Sibling Endpoints
Retrieve annual country macroeconomic indicators (GDP, inflation, population, trade) from the official World Bank v2 API.
Browse or look up official World Bank development indicators with indicator codes, units, source agencies, and topic tags.
Search World Bank sovereign development projects with commitment USD amounts, approval dates, status, and lending instruments.
Frequently Asked Questions
How do I call World Bank Macroeconomic & Sector Topics (macro.worldbank.topics) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/macro/worldbank/topics with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool macro_worldbank_topics on https://mcp.agentapigate.ai/mcp.
What does macro.worldbank.topics cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.002 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.topics?
Passing ?format=md transforms the response into normalized Markdown (~253 tokens vs ~6910 raw tokens, saving 96% 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.topics"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.