{"uid":"cap_YP9waZssikbXOHMoXiQ9B","slug":"greeneris-data-global-macro-720c5258","name":"greeneris-data-global-macro","description":"Annual macroeconomic series from the World Bank Indicators API, normalized JSON. Query: ?country=USA&indicator=FP.CPI.TOTL.ZG&years=5 (ISO3 country code; common indicators: FP.CPI.TOTL.ZG inflation %, NY.GDP.MKTP.CD GDP current US$, GC.DOD.TOTL.GD.ZS gov debt %GDP, SL.UEM.TOTL.ZS unemployment %). Returns the last N years with values, newest first. 200+ countries; 24h cache.","url":"https://data.greeneris.io/v1/global/macro","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","properties":{"years":{"type":"integer","default":5,"description":"Last N years (1-20)"},"country":{"type":"string","default":"USA","description":"ISO3 country code"},"indicator":{"type":"string","default":"FP.CPI.TOTL.ZG","description":"World Bank indicator id"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"source":"World Bank Open Data (CC BY 4.0), annual series","country":"USA","indicator":"FP.CPI.TOTL.ZG","country_name":"United States","last_updated":"2026-07-01","observations":[{"year":"2024","value":2.9495},{"year":"2023","value":4.1163}],"indicator_name":"Inflation, consumer prices (annual %)"}},"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_H8S05mY03qkWFYckThuZ1","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":"Fetches historical macroeconomic indicator time series (e.g. inflation, GDP) for any country from World Bank Open Data","exampleAgentPrompt":"Can you pull the World Bank inflation data (indicator FP.CPI.TOTL.ZG) for Germany for the last 10 years?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the country name, indicator name and ID, data source attribution, last updated date, and an array of annual observations (year + numeric value) for the requested time window.","failureModes":["Invalid or unknown ISO3 country code returns an error or empty observations","Invalid World Bank indicator ID returns an error","Years parameter out of range (not 1-20) may return a validation error","No data available for a given country/indicator combination results in empty observations array","HTTP 402 returned if payment has not been made via x402 protocol before calling the endpoint"],"whenToPreferThis":"Use this endpoint when you need authoritative annual macroeconomic time series (inflation, GDP, unemployment, etc.) sourced directly from the World Bank for any country, at commodity pricing with no account setup required. Prefer over generic economic data APIs when you want CC BY 4.0 licensed data with clear provenance, or when integrating into an agent workflow that uses x402 pay-per-call micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:50:36.952Z","isFirstParty":false}