Inflation Calculator API - historical purchasing power across 190+ countries (World Bank CPI)
inflation_calculatorCalculate 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. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/inflation-calculator.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"amount": "1000",
"toYear": 2020,
"country": "USA",
"fromYear": 2000,
"compareCountry": "DEU"
},
"name": "inflation_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount of money to adjust, e.g. 1000 | 1000 |
| toYear | No | Ending year (optional, defaults to latest available CPI year) | |
| country | No | ISO-3 country code, e.g. USA, DEU, GBR, FRA, BGR | USA |
| fromYear | Yes | Starting year, e.g. 2000 | |
| compareCountry | No | Optional second ISO-3 country code to compare inflation side by side |