RRadar
Finance & rates

Inflation API

Inflation and CPI data by country as JSON, no API key: yearly inflation, CPI index, GDP, GDP growth, GDP per capita, unemployment, population and lending rate for 217 countries (World Bank, CC BY 4.0), plus monthly HICP inflation (yoy, mom, index) for 37 European countries from Eurostat, including the flash estimate. Adjust any amount for inflation between two years or months. Modes: latest, history, monthly, adjust. Monitor mode returns only new periods.

Example request

curl -X POST https://radarbg.com/v1/inflation-cpi-api \
  -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"mode": "latest", "countries": ["US", "DE", "BG"], "indicators": ["inflation", "unemployment"], "limit": 1000}'

Answer: {"ok": true, "count": N, "items": [...], "usage": {...}}. Failed calls are not counted.

Inputs

FieldTypeDescription
modestringlatest = newest yearly value per country and indicator (EU countries also get the newest monthly HICP); history = one row per country and year; monthly = Eurostat HICP per month (EU/EEA/candidate countries); adjust = what an amount from one
countriesarrayISO2 (US, DE, BG), ISO3 (USA, BGR) or English names (Germany). Up to 50. Empty = US, DE, GB, JP, BG.
indicatorsarrayFor latest: inflation, cpi, gdp, gdpGrowth, gdpPerCapita, unemployment, population, interestRate (or the raw World Bank code, e.g. FP.CPI.TOTL.ZG). Empty = inflation.
indicatorstringFor history: one indicator key, e.g. inflation or gdpGrowth. Default inflation.
startYearintegerFor history: first year (1960 or later). Default 10 years ago.
endYearintegerFor history: last year. Default the latest year with data.
startMonthstringFor monthly: first month YYYY-MM. Default 24 months back.
endMonthstringFor monthly: last month YYYY-MM. Default the newest month.
amountnumberFor adjust: the money amount to convert, e.g. 100. Default 100.
countrystringFor adjust: one country, e.g. US or Germany. Default US.
fromYearintegerFor adjust: the year of the original amount. Default 10 years before To year.
toYearintegerFor adjust: the target year. Default the latest year with CPI data.
fromMonthstringFor adjust with monthly precision (EU countries, HICP index): YYYY-MM.
toMonthstringFor adjust with monthly precision (EU countries, HICP index): YYYY-MM.

Price

Included in every plan: 100 calls a month free, then from €9 a month for 3,000 calls across all APIs.

Related APIs

Central Bank Rates APIFuel Prices APIGas Prices APIMortgage Rates APITreasury Yields API