CPI inflation rates for any country, instantly.
Current rate and 10 years of historical data for 241 countries — sourced from the World Bank, in a single API call.
Trusted by teams at
What the Inflation API Does
One endpoint. Current CPI rate and up to 10 years of history for any of 241 countries — normalized into a consistent JSON structure.
Coverage
241 countries and territories covered, sourced from the World Bank's FP.CPI.TOTL.ZG indicator — the gold standard for CPI inflation data. Each response includes the latest annual rate and up to 10 previous years, so you can plot trends without multiple requests.
{
"country": "US",
"rate": 2.9495,
"period": "2024",
"historical": [
{ "period": "2023", "rate": 4.1163 },
{ "period": "2022", "rate": 8.0028 }
]
}
Simplicity
Pass a two-letter ISO country code and get structured JSON back. No registration for the demo. For production, a single API key is all you need — no SDK, no configuration, no scraping World Bank pages yourself.
GET /v1/finance/inflation?country=US
Host: requiems.xyz
requiems-api-key: YOUR_API_KEY
Use Inflation Data in Any Workflow
From financial modelling to e-commerce pricing — if it touches macroeconomic data, the Inflation API has you covered.
Inflation-adjust historical returns
Pull CPI rates for any country and apply them to historical portfolio data to calculate real (inflation-adjusted) returns.
Flag high-inflation markets
Integrate CPI data into country-risk models. Automatically flag markets where inflation exceeds a configurable threshold.
Localize pricing dynamically
Use current and historical inflation data to benchmark pricing decisions when entering or repricing in international markets.
Power economic dashboards
Build charts and comparison tools without scraping the World Bank. Get clean, structured JSON for 241 countries in a single call.
Teach macroeconomics interactively
Give students real, up-to-date CPI data for any country to use in exercises, models, and cross-country comparisons.
Factor inflation into credit decisions
Enrich borrower profiles with the inflation environment of their country to adjust risk scoring for international lending.
Use together with complementary APIs.
Inflation API works even better when paired with other Requiems APIs.
Benefit: Combine the cardholder's country CPI with payment card origin.
Outcome: Flag transactions from high-inflation markets where card fraud risk is elevated.
Benefit: Layer real exchange rates on top of inflation data.
Outcome: Build purchasing-power parity models that account for both currency movement and local price changes.
Benefit: Detect a user's country automatically, then fetch its CPI.
Outcome: Serve inflation-adjusted pricing or local market context without asking the user to select their country.
Frequently Asked Questions
Still have questions? Contact support
Automate this with Requiems.
One API key. Inflation data, BIN lookup, email validation, and 50+ other APIs across finance, validation, networking, and more.