Home › APIs › Finance & rates
Inflation API
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
| Field | Type | Description |
|---|---|---|
mode | string | latest = 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 |
countries | array | ISO2 (US, DE, BG), ISO3 (USA, BGR) or English names (Germany). Up to 50. Empty = US, DE, GB, JP, BG. |
indicators | array | For latest: inflation, cpi, gdp, gdpGrowth, gdpPerCapita, unemployment, population, interestRate (or the raw World Bank code, e.g. FP.CPI.TOTL.ZG). Empty = inflation. |
indicator | string | For history: one indicator key, e.g. inflation or gdpGrowth. Default inflation. |
startYear | integer | For history: first year (1960 or later). Default 10 years ago. |
endYear | integer | For history: last year. Default the latest year with data. |
startMonth | string | For monthly: first month YYYY-MM. Default 24 months back. |
endMonth | string | For monthly: last month YYYY-MM. Default the newest month. |
amount | number | For adjust: the money amount to convert, e.g. 100. Default 100. |
country | string | For adjust: one country, e.g. US or Germany. Default US. |
fromYear | integer | For adjust: the year of the original amount. Default 10 years before To year. |
toYear | integer | For adjust: the target year. Default the latest year with CPI data. |
fromMonth | string | For adjust with monthly precision (EU countries, HICP index): YYYY-MM. |
toMonth | string | For 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.