Inflation API - CPI & Economic Indicators by Country
Pricing
from $0.70 / 1,000 results
Inflation API - CPI & Economic Indicators by Country
Inflation and CPI data by country as JSON, no API key: yearly inflation, CPI index, GDP, GDP growth, GDP per capita, unemployment, population and lending rate for 217 countries (World Bank, CC BY 4.0), plus monthly HICP inflation (yoy, mom, index) for 37 European countries from Eurostat, including t
Pricing
from $0.70 / 1,000 results
Rating
0.0
(0)
Developer
Martin Petrov
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Features
Share
Problem: your finance app, salary or price calculator, newsroom or AI agent needs the inflation rate of a country, this month's euro-area HICP, or "what is $100 from 2000 worth today". The World Bank publishes yearly data in bulk files and its per-country API is often down; Eurostat publishes monthly HICP as JSON-stat cubes with a new dataset code since 2026 (the old prc_hicp_manr stopped at 2025-12). Joining the two by hand takes a day.
This API: one JSON call, no API key, answers from a maintained copy of the official data.
- Yearly, 217 countries (World Bank WDI):
inflation(CPI %),cpi(index 2010=100),gdp,gdpGrowth,gdpPerCapita,unemployment,population,interestRate(lending rate). Raw WDI codes work too. - Monthly, 37 European countries (Eurostat HICP): year-on-year %, month-on-month % and index, including the euro-area flash estimate (
estimated: true).latestadds the newest month to the yearly row, so you get yearly and monthly numbers in one call. - Inflation calculator:
adjustconverts an amount between two years (CPI index) or two months (HICP index, EU countries) and returns the cumulative and average annual inflation. - Countries: ISO2 (
US,DE,ELorGR), ISO3 (BGR) or names (Germany). Up to 50 per call. - Source on every row: World Bank WDI (CC BY 4.0) and Eurostat (reuse authorised with source acknowledged). The
sourcefield carries the attribution.
Example (API)
curl -X POST "https://api.apify.com/v2/acts/martin10291~inflation-cpi-api/run-sync-get-dataset-items?token=YOUR_TOKEN" \-H "Content-Type: application/json" \-d '{"mode": "latest", "countries": ["DE"], "indicators": ["inflation"]}'
Output row (measured 2026-11-13):
{"country": "DE", "countryName": "Germany", "iso3": "DEU", "indicator": "inflation", "value": 2.1718, "unit": "% per year", "year": 2025,"previousValue": 2.2565, "previousYear": 2024, "change": -0.0847,"monthlyHicp": {"month": "2026-10", "yoy": 2.8, "mom": -0.1, "index": 103.8, "indexBase": "Index, 2025=100", "estimated": true},"source": "World Bank, World Development Indicators (FP.CPI.TOTL.ZG), licence CC BY 4.0; Eurostat, HICP monthly data (prc_hicp_minr)"}
Inflation calculator ({"mode": "adjust", "amount": 100, "country": "US", "fromYear": 2000, "toYear": 2024}):
{"country": "US", "amount": 100.0, "fromYear": 2000, "toYear": 2024, "adjustedAmount": 182.17, "cumulativeInflationPct": 82.17, "avgAnnualInflationPct": 2.53, "method": "WB CPI index (FP.CPI.TOTL)"}
More inputs:
{"mode": "monthly", "countries": ["FR", "Bulgaria"], "startMonth": "2025-10"}-> one row per country and month (yoy, mom, index).{"mode": "history", "countries": ["JP"], "indicator": "inflation", "startYear": 2015}-> one row per year.{"mode": "adjust", "amount": 50, "country": "DE", "fromMonth": "2020-01", "toMonth": "2026-09"}-> monthly HICP precision.{"mode": "countries"}/{"mode": "indicators"}-> what is covered.
Use from agents (MCP)
Add the Apify MCP server (https://mcp.apify.com?tools=martin10291/inflation-cpi-api) to Claude, Cursor or any MCP client and ask: "What was inflation in Bulgaria last month, and what is 1,000 EUR from 2020 worth today?".
Schedule it
Set onlyNew: true and a monitorId, schedule monthly: each run returns only the new months (HICP) or new years (World Bank) since the last run.
Input
| Field | Meaning |
|---|---|
mode | latest (default), history, monthly, adjust, indicators, countries |
countries | list of ISO2/ISO3/names, default US, DE, GB, JP, BG |
indicators / indicator | for latest / history, default inflation |
startYear, endYear | history range |
startMonth, endMonth | monthly range, YYYY-MM |
amount, country, fromYear, toYear, fromMonth, toMonth | adjust |
limit | max rows (default 1000) |
onlyNew, monitorId | monitor mode |
Limits (honest)
- World Bank data is yearly and lags: the newest year is usually last year (US CPI currently ends 2024).
- Monthly HICP covers EU, EEA and candidate countries only; the US and UK are not monthly here.
interestRateis sparse for many countries.
Pricing
$1.00 per 1,000 rows. A latest call for 3 countries = 3 rows.
FAQ
- How fresh is the data? Eurostat HICP is refreshed every 6 hours (the flash estimate appears at the end of each month,
estimated: true); World Bank data every 12 hours (it changes a few times a year). Every row hasfetchedAt; if a source is down, the last copy is returned withstale: true. - Why is the newest year last year? The World Bank publishes yearly values with a lag. For Europe use
monthlyor themonthlyHicpfield for this month's number. - Errors: an unknown country, indicator or month, or a monthly request for a non-European country returns a clear message in the run status and
RUN_SUMMARY.lastError; the run does not fail and no rows are charged.