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.

No account required for the demo.

Trusted by teams at

Bobadilla Tech
Compile Strength
Flyver
Korealexa
Shareweave
Bobadilla Tech
Compile Strength
Flyver
Korealexa
Shareweave

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.

Finance

Inflation-adjust historical returns

Pull CPI rates for any country and apply them to historical portfolio data to calculate real (inflation-adjusted) returns.

Risk Analysis

Flag high-inflation markets

Integrate CPI data into country-risk models. Automatically flag markets where inflation exceeds a configurable threshold.

E-commerce

Localize pricing dynamically

Use current and historical inflation data to benchmark pricing decisions when entering or repricing in international markets.

Research

Power economic dashboards

Build charts and comparison tools without scraping the World Bank. Get clean, structured JSON for 241 countries in a single call.

Education

Teach macroeconomics interactively

Give students real, up-to-date CPI data for any country to use in exercises, models, and cross-country comparisons.

Lending

Factor inflation into credit decisions

Enrich borrower profiles with the inflation environment of their country to adjust risk scoring for international lending.

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.