{"uid":"cap_QD8UpfBVBws5rRwu2_guY","slug":"macrolens-global-macro-indicator-753ee91d","name":"MacroLens Global Macro Indicator","description":"Global macro statistics (GDP, inflation, unemployment, debt and 30+ indicators for 200+ countries), country profiles and rankings, and official company registry lookups (Norway, France) for AI agents. No API key: pay USDC on Base per call via x402.","url":"https://macrolens.imac2014ville.workers.dev/indicator?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":["country","indicator"],"properties":{"years":{"type":"number","description":"Number of most recent years, 1-60 (default 10)"},"country":{"type":"string","description":"ISO2 or ISO3 country code, e.g. US, DE, JPN (aggregates WLD, EUU also work)"},"indicator":{"type":"string","description":"Friendly key (gdp, gdp_per_capita, gdp_growth, inflation, unemployment, population, debt_to_gdp, current_account, interest_rate, exports, imports, fdi, gini, life_expectancy, ...) or a raw World Bank code like NY.GDP.MKTP.CD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"latest":{"year":2025,"value":30769700000000},"series":[{"year":2025,"value":30769700000000},{"year":2024,"value":29298013000000}],"source":"World Bank Open Data (CC BY 4.0)","country":{"iso2":"US","iso3":"USA","name":"United States"},"indicator":{"key":"gdp","code":"NY.GDP.MKTP.CD","name":"GDP (current US$)","units":"USD"}}},"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_fSSVaSXI80e-KK4Bq1mAs","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 historical time-series data for a single macroeconomic indicator (e.g. GDP, inflation, unemployment) for a specified country, sourced from World Bank Open Data.","exampleAgentPrompt":"Pull the GDP data for the United States for the last 15 years using MacroLens — I want to see the annual values as a time series.","exampleUseCases":[{"title":"Tracking inflation trends for a report","prompt":"Get me the annual inflation rate for Germany over the last 20 years — I'm putting together an economic trends report."},{"title":"Comparing unemployment across countries","prompt":"Fetch the unemployment rate for Brazil for the last 10 years so I can compare it to other emerging markets."},{"title":"Monitoring debt sustainability metrics","prompt":"What's the debt-to-GDP ratio for Japan for each of the last 30 years? I want to see how it's trended."}],"resultDescription":"Returns a JSON object with the latest value, a full year-by-year time series, country metadata (ISO2, ISO3, name), indicator metadata (key, World Bank code, name, units), and a source attribution. Example: {ok: true, latest: {year, value}, series: [{year, value}...], country: {...}, indicator: {...}, source: 'World Bank Open Data (CC BY 4.0)'}.","failureModes":["Invalid or unsupported country code returns an error","Unrecognized indicator key or World Bank code returns an error","Years parameter out of range (must be 1-60) may return validation error","Data not available for the requested country/indicator combination returns empty series","Payment failure (insufficient USDC or network issue) blocks request"],"whenToPreferThis":"Use this endpoint when you need structured, historical macroeconomic time-series data for a specific country and indicator, backed by World Bank data. Prefer it over general web search when you need machine-readable, numeric annual series with consistent units and sourcing. It covers 200+ countries and 30+ indicators including GDP, inflation, unemployment, debt, trade, and demographic metrics, and requires no API key — just USDC payment per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T18:37:23.597Z","isFirstParty":false,"canonicalSlug":"macrolens-global-macro-indicator-753ee91d"}