RadarPricesOrder

Home › APIs › Finance & rates

Finance & rates

Inflation API

In plain words

How fast prices are rising in any country, plus GDP numbers, from official statistics.

Used by: Finance apps, brokers, analysts, comparison sites.

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.

Try it live, no sign-up

Run the example as is, or change the input. 5 own tries a day without a key.

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: 500 calls a month free, then from €5 a month for 5,000 calls across all APIs.

Questions

What does the Inflation API do?

How fast prices are rising in any country, plus GDP numbers, from official statistics.

Where does the data come from?

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, histo

How much does it cost?

500 calls a month are free with no card. Paid plans start at EUR 5 a month for 5,000 calls and include every API on Radar. Failed calls are not counted.

Can I use it without writing code?

Yes. Try it live on this page, use our free browser tools, or ask us to run it on your list as a service.

Related APIs

Central Bank Rates APIToday's official interest rates from central banks like the US Fed and the European Central Bank.
Fuel Prices APIDiesel and petrol prices at fuel stations near any place in France, Spain and Italy, cheapest first.
Gas Prices APIOfficial weekly petrol and diesel prices in the US, by region.
Mortgage Rates APICurrent home loan rates (30-year and 15-year fixed) from official weekly surveys.
Sanctions Screening APIGives you official rates and prices, updated from the source.
Treasury Yields APIDaily US government bond rates, from 1 month to 30 years.