World Bank annual macro indicators (inflation, GDP, debt) for any country

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.

get/v1/global/macro

Request

  • Base URL: https://data.greeneris.io (the document declares no server; this is the origin it was published from)
  • URL: https://data.greeneris.io/v1/global/macro
  • Auth: none declared

Query parameters

countrystring

ISO3 country code

indicatorstring

World Bank indicator id

yearsinteger

Last N years (1-20)

Response

Successful response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.