NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Inflation Rate API

GET

Compare annual inflation rates and CPI figures across over 180 countries.

Inflation Rate reports annual inflation rates and Consumer Price Index (CPI) values for any country by two-letter country code. Outputs include the year-over-year price change percentage, CPI index, and base comparison year, with paid plans supporting historical lookups by year. On paid plans, changes=true adds the prior year's rate and the change from it, plus the 5-year average, high, low and cumulative CPI rise.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/inflation?country=US
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "country": "US",
    "countryName": "United States",
    "year": 2023,
    "inflationRate": 4.12,
    "cpiIndex": 139.74,
    "cpiBaseYear": 2010,
    "lastUpdated": "2026-11-06T04:00:00.000Z",
    "previousYear": 2022,
    "previousInflationRate": 8,
    "inflationRateChange": -3.88,
    "changeDirection": "down",
    "averageInflationRate5y": 3.97,
    "highInflationRate5y": 8,
    "lowInflationRate5y": 1.23,
    "cpiChange5y": 21.34
  }
}

About the Inflation Rate API

Inflation Rate is an inflation API built on consumer price index data from the World Bank. Send a two-letter country code and get the annual inflation rate as a year-over-year percentage, the CPI index level with its base year, and when the figure was last updated. It answers inflation by country questions for pricing tools, salary adjustment calculators, economic dashboards and research notebooks.

Annual World Bank figures arrive late, so a call without a year returns the most recent year that has actually been published rather than an empty result for last year. On the Free plan that latest reading is what you get.

Paid plans can ask for any specific year and, with changes=true, add context around the reading: the prior year's rate, the change in percentage points and its direction, the average, high and low rate over the five years ending at the reading, and how much the CPI index rose over the same five years.

How it works

The collector reads the World Bank inflation and consumer price indicators for every country once a day and stores one record per country per year. inflationRate is the annual percent change in consumer prices for year; cpiIndex is the index level for that year against cpiBaseYear (2010 = 100); lastUpdated is when the record was last refreshed.

When year is omitted the API starts from the previous calendar year and, if that year is not published yet, walks back up to ten years to the newest one that is. World Bank annual data commonly trails the calendar by more than a year, so expect the default to be two years back. An explicit year (paid plans) is never substituted: if it is missing you get a 404 that names the most recent year available.

changes=true reads the five preceding years. previousInflationRate and inflationRateChange (in percentage points, so 8.0 to 4.12 is -3.88) compare with the year before; changeDirection is up, down or unchanged. averageInflationRate5y, highInflationRate5y and lowInflationRate5y cover the reading year plus the four before it and are only filled when all five years exist, so a gap gives null instead of a shorter window. cpiChange5y is the percent rise in cpiIndex from five years earlier, rounded to two decimals. These fields are computed on every plan but returned only on paid plans.

What people use it for

Salary Adjustment Calculations
Compensation software calculates real wage growth across international offices by adjusting regional salaries against annual inflation figures.
Cross-Border Contract Indexing
When drafting multi-year vendor agreements, legal teams index payment schedules to annual consumer price changes for each supplier's country.
Portfolio Return Deflation
Wealth management dashboards subtract local consumer price index shifts from gross portfolio returns to present accurate purchasing power gains.
Purchasing Power Modeling
To forecast global product pricing, revenue teams evaluate relative purchasing power trends using annual price change rates and index values.

Without writing code

Historical inflation rate on DigestYourFinances charts inflation year by year.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Inflation Rate

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Inflation Rate API.

Read the docs →
Which countries and years does the dataset cover?
Over 180 countries are supported using standard two-letter ISO country codes. The dataset includes annual inflation rates and consumer price index figures for the most recent published year on every plan; paid plans can request any year dating back to 1960.
Why does the US show a newer year than the World Bank?
The World Bank publishes the US annual figure a year or more after the year ends. Until it does, the US rate is computed from the official BLS CPI-U monthly index, the same series the World Bank uses: the annual-average index over the prior year's. The World Bank figure replaces it once published.
Can I pick a specific year on the Free plan?
No, querying custom historical years requires a paid plan. On the Free plan, requests return the most recent year published for that country. Any paid plan unlocks the year parameter back to 1960, plus, with changes=true, the prior year's rate, the year-over-year change, 5-year average, high, low and cumulative CPI rise.
How far does the Starter plan go for inflation data lookups?
Starter covers up to 100,000 lookups per month. Each request uses 2 credits, working out to about $0.0003 per lookup or $0.30 per 1,000 calls. The Free plan includes 100 lookups every monthly billing cycle.
Where does the inflation and CPI data come from?
Data is sourced directly from the World Bank for over 180 countries. It provides annual year-over-year percentage changes in consumer prices along with CPI values indexed to 2010, refreshed daily.
Can I use this inflation data in a commercial financial product?
Yes, commercial use is permitted on any paid plan. You can display the figures in your own software, charts, and financial analysis tools, but you may not resell or redistribute the raw data.

Ready to build with Inflation Rate? Start with 200 free credits — one key unlocks all 404+ APIs.

Explore the catalog

404+ APIs on the same key and the same response shape.

Browse all APIs