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