Home › APIs › Calculators & dates
Inflation Calculator API
Adjusts an amount of money for inflation between two years across 190+ countries using official World Bank CPI data. Do it free in your browser →
Try it here
- 1Fill in
- 2Press the button
- 3Read the answer
- inflation = How much prices went up in a year.
Which way is for you?
What is an API, and do I need one?
An API lets your software get an answer by itself, for example a shop checking every new customer's VAT number. Not a programmer? Use the free tool in your browser instead.
Without a key: 3 test calls/day. With a free key: 100 calls/month, usage dashboard & Excel/Sheets · Have a key? Open my key · Lost it? Get it by e-mail
For programmers: details, example request and inputs
Calculate what an amount of money from one year is worth in another year, cumulative inflation %, average annual inflation rate and year-by-year CPI table for 190+ countries using official World Bank WDI CPI data (CC BY 4.0). Runs on our server, files are deleted right after the call, nothing stored.
Example request
curl -X POST https://radarbg.com/v1/inflation-calculator \
-H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"amount": "1000", "country": "USA", "fromYear": 2000, "toYear": 2020, "compareCountry": "DEU"}'
Answer: {"ok": true, "count": N, "items": [...], "usage": {...}}. Failed calls are not counted.
Inputs
| Field | Type | Description |
|---|---|---|
amount | string | Amount of money to adjust, e.g. 1000 |
country | string | ISO-3 country code, e.g. USA, DEU, GBR, FRA, BGR |
fromYear | integer | Starting year, e.g. 2000 |
toYear | integer | Ending year (optional, defaults to latest available CPI year) |
compareCountry | string | Optional second ISO-3 country code to compare inflation side by side |
Price
Included in every plan: 100 calls a month free, then from €15 a month for 5,000 calls across all APIs. Pro, €49 for 25,000 calls, is the one we recommend.
Questions
What does the Inflation Calculator API do?
Adjusts an amount of money for inflation between two years across 190+ countries using official World Bank CPI data.
Where does the data come from?
Calculate what an amount of money from one year is worth in another year, cumulative inflation %, average annual inflation rate and year-by-year CPI table for 190+ countries using official World Bank WDI CPI data (CC BY 4.0). Runs on our server, files are deleted right after the call, nothing stored.
How much does it cost?
100 calls a month are free with no card. Paid plans start at EUR 15 a month for 5,000 calls and include every API on Radar. Failed calls are not counted.
What is an API? Do I need to be a programmer?
An API lets a program get answers from another program automatically. You only need it if your own website or software should do this by itself. Without programming, use the free browser tool, the Excel upload where offered, or let us do the job for you.