{"uid":"cap_BO6DHYGHXxt6Xs583PmXi","slug":"macro-country-economic-indicators-api-30acf23b","name":"Macro Country Economic Indicators API","description":"Live macro/economic indicators for ANY of 200+ countries in one call: GDP, GDP growth %, inflation (CPI %), unemployment %, GDP per capita, and population — most-recent values with year. For AI macro, finance, research and trading agents. Official public-domain data from the World Bank (every country, not just the majors). Pass an ISO code (USA, DEU, JPN, CHN, GBR, IND, BRA).","url":"https://store.agentexchange.work/macro/country","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":["country"],"properties":{"country":{"type":"string","description":"ISO2 or ISO3 country code, e.g. USA, DE, JPN, CN, GBR, IND, BRA"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"country":{"type":"string"},"indicators":{"type":"object"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"country":"USA"}},"output":{"type":"object"}},"response":{"source":"World Bank Open Data (data.worldbank.org)","country":"United States","license":"CC-BY-4.0","served_at":1781765039234,"indicators":{"gdp_usd":{"year":"2024","value":28750956130731.2},"population":{"year":"2024","value":340110988},"inflation_pct":{"year":"2024","value":2.94952520485207},"gdp_growth_pct":{"year":"2024","value":2.79300127716779},"unemployment_pct":{"year":"2025","value":4.198},"gdp_per_capita_usd":{"year":"2024","value":84534.0407841548}},"country_code":"USA","more_from_store":{"catalog":"https://store.agentexchange.work/","treasury":"US fiscal data: GET /gov/treasury","ai_visibility":"Does AI recommend a brand? GET /brands/check ($0.95)"}}},"exampleRequest":{"country":"USA"},"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.09","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AJccHmwPiIAOn2wOq3gC-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.09","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns key macroeconomic indicators (GDP, inflation, etc.) for a given country by ISO country code","exampleAgentPrompt":"What are the latest macroeconomic indicators for the United States — specifically GDP and inflation — using the ISO code USA?","exampleUseCases":[{"title":"Real-time inflation tracking for monetary policy analysis","prompt":"Check the current inflation rate for the European Union countries — I need to understand recent price trends across Germany, France, and Italy to assess whether central bank tightening is working."},{"title":"Global market research for investment decision-making","prompt":"Pull the latest GDP figures and inflation data for Brazil, India, and Mexico — I'm evaluating which emerging market offers the best growth potential for our fund's next allocation."},{"title":"Multi-country economic health dashboard for business planning","prompt":"Get me the recent macroeconomic indicators for Canada, Australia, and Singapore — I need to compare their GDP growth and inflation rates to decide where to expand our operations next quarter."}],"resultDescription":"A JSON object containing the country name and a set of macroeconomic indicators including GDP in USD (with year) and inflation percentage (with year), e.g. {\"country\": \"United States\", \"indicators\": {\"gdp_usd\": {\"year\": \"2024\", \"value\": 28750956130731}, \"inflation_pct\": {\"year\": \"2024\", \"value\": 2.9}}}","failureModes":["Invalid or unrecognized country code returns an error","Missing required 'country' query parameter causes a 400-level error","Payment of $0.005 USDC not provided causes 402 Payment Required response","Country code provided in wrong format (e.g. full name instead of ISO code) may return no results"],"whenToPreferThis":"Use this endpoint when an agent needs quick, machine-payable access to macroeconomic indicators (GDP, inflation) for a specific country without API key signup. Ideal for AI agents needing lightweight macro data per country on demand, especially in x402-enabled payment flows on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:43:04.368Z","isFirstParty":false}