{"uid":"cap_X8X9T2jkPtd6JiRljfRa9","slug":"country-macro-indicators-world-bank-6dd514ad","name":"Country Macro Indicators (World Bank)","description":"Official World Bank World Development Indicators for any of ~217 economies: GDP and GDP per capita (USD), real GDP growth, CPI inflation, unemployment, population, government debt, trade, FDI and more, latest years with the year of each value. Any WDI code, up to 5 countries. Use when an agent needs official macro figures for a country (GDP, growth, inflation, unemployment, debt, population, trade) for research, market sizing, credit or country-risk work.","url":"https://macro-indicators-production.up.railway.app/v1/macro/indicators?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"],"type":"string"},"queryParams":{"type":"object","required":["countries"],"properties":{"years":{"type":"integer","description":"Most recent years per indicator, 1-10 (default 3)"},"countries":{"type":"string","description":"Comma list of ISO2/ISO3 codes, up to 5 (e.g. DE,DK,USA)"},"indicators":{"type":"string","description":"Comma list of short names (gdp, gdp_per_capita, gdp_growth, inflation, unemployment, population, debt, current_account, exports, fdi, interest_rate) or WDI codes; default core set"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"legal":{"terms":"https://macro-indicators-production.up.railway.app/terms","privacy":"https://macro-indicators-production.up.railway.app/privacy"},"status":"ok","use_when":"Use when an agent needs official macro figures for a country (GDP, growth, inflation, unemployment, debt, population, trade) for research, market sizing, credit or country-risk work.","countries":[{"iso3":"DEU","name":"Germany","indicators":{"gdp_growth":{"code":"NY.GDP.MKTP.KD.ZG","unit":"annual %","values":[{"year":2025,"value":0.2}]}}}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_d0nsG1nvD3-lp9GirGuPP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns official World Bank World Development Indicators (GDP, inflation, unemployment, debt, population, trade, FDI, etc.) for up to 5 countries across multiple years.","exampleAgentPrompt":"Pull the latest 3 years of World Bank macro indicators for Germany, France, and the US — I need GDP, GDP growth, inflation, and unemployment for a country risk report.","exampleUseCases":[{"title":"Emerging market sizing research","prompt":"Get me World Bank GDP and population data for Indonesia, Vietnam, and the Philippines for the last 5 years — I'm sizing the addressable market for a consumer fintech launch."},{"title":"Country credit risk assessment","prompt":"I need official World Bank figures on government debt, GDP growth, inflation, and current account balance for Argentina and Brazil for the past 3 years for a credit risk memo."},{"title":"Comparative economic benchmarking","prompt":"Compare GDP per capita, unemployment, and FDI inflows across Germany, Japan, South Korea, and the UK for the most recent 2 years using World Bank data."}],"resultDescription":"A JSON object containing per-country arrays of indicator values, each with the WDI code, unit (e.g. 'annual %', 'current US$'), and year-value pairs for the requested time window, plus API status and legal metadata.","failureModes":["Invalid or unsupported ISO2/ISO3 country code returns an error or empty results","Requesting more than 5 countries at once exceeds the limit","Unknown or misspelled indicator short name may fall back to default set or return an error","World Bank data gaps for recent years (data often lags 1-2 years) result in null or missing values","Requesting years=0 or years>10 may return a validation error","Payment failure (x402) blocks the request entirely"],"whenToPreferThis":"Choose this endpoint when you need official, authoritative macroeconomic statistics sourced directly from the World Bank WDI database — ideal for research, credit analysis, country risk, or market sizing where data provenance matters. Prefer it over scraped or aggregated sources when you need citable, standardized figures across ~217 economies with consistent WDI codes. Best for cross-country comparisons of up to 5 economies at a time.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T05:35:37.614Z","isFirstParty":false,"canonicalSlug":"country-macro-indicators-world-bank-6dd514ad"}