{"uid":"cap_hfEE4xEDUWWZnie5fKLSU","slug":"country-macroeconomic-indicator-basket-c1bb4ba8","name":"Country Macroeconomic Indicator Basket","description":"A curated headline basket of key macroeconomic and development indicators for one country: GDP, GDP per capita, growth, inflation, unemployment, population, government debt, current account, life expectancy and CO2 per capita. Latest value plus short history, each value cited to its source.","url":"https://api.agentstools.dev/macro/country?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["country"],"properties":{"range":{"type":"integer","maximum":65,"minimum":1,"description":"Most recent N years of history per indicator"},"years":{"type":"string","description":"A single year or a Y1:Y2 range"},"country":{"type":"string","description":"A single country as ISO-2, ISO-3 or name"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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":{"p10Cents":"2.0000","medianCents":"2.0000","p90Cents":"2.0000","minCents":"2.0000","maxCents":"2.0000","p95Cents":"2.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fSLcKTQX9Ie1V7eiVlkdG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a curated basket of 10 key macroeconomic and development indicators (GDP, inflation, unemployment, etc.) for a single country, with latest values, short history, and source citations.","exampleAgentPrompt":"Give me a full macroeconomic snapshot for Brazil — GDP, GDP per capita, growth, inflation, unemployment, population, government debt, current account, life expectancy, and CO2 per capita — with the last 5 years of history and source citations for each indicator.","exampleUseCases":[{"title":"Economic health check for investment decisions","prompt":"I'm considering expanding into Mexico. Can you pull together their key economic indicators—GDP, inflation, unemployment, and government debt—so I can assess the investment climate? Include the last few years of trends and sources."},{"title":"Country briefing for business presentation","prompt":"We need to brief our board on opportunities in Southeast Asia. Get me macroeconomic snapshots for Vietnam and Thailand—GDP growth, inflation, unemployment, population, and current account balance—with cited sources so we can back up our analysis."},{"title":"Quick economic comparison across regions","prompt":"I'm researching emerging markets for our portfolio. Pull macroeconomic overviews for Nigeria, Egypt, and Kenya—include GDP, GDP per capita, life expectancy, CO2 emissions, and the last 10 years of history so I can spot economic trends and development patterns."}],"resultDescription":"A structured object containing up to 10 macroeconomic/development indicators for the requested country, each with the latest available value, a short historical series (configurable up to 65 years), and a citation to the original data source (e.g. World Bank, IMF). Indicators include GDP, GDP per capita, real GDP growth, inflation, unemployment, population, government debt, current account balance, life expectancy, and CO2 emissions per capita.","failureModes":["Country not recognized — returns error if ISO-2, ISO-3, or name cannot be resolved","Missing required 'country' query parameter — returns validation error","Requested year range outside 1–65 bounds — schema validation failure","Some indicators may have no data for very small or sanctioned countries","Conflicting 'range' and 'years' parameters may produce unexpected results","HTTP 402 if payment header is not included or payment fails"],"whenToPreferThis":"Use this endpoint when you need a broad, multi-indicator economic overview of a single country in one call, rather than fetching individual indicators one at a time. It is ideal for country briefings, economic comparison dashboards, or agent workflows that need a cited snapshot across GDP, inflation, unemployment, debt, and social indicators simultaneously. Prefer the sibling single-indicator endpoint if you need deep time series for one specific metric, or the IMF WEO endpoint for forward-looking forecasts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:45:42.005Z","isFirstParty":false,"canonicalSlug":"country-macroeconomic-indicator-basket-c1bb4ba8"}