About this endpoint
What it does
Returns CPI and related economic-indicator data by country based on the selected mode. The request body controls which dataset is returned, and the response contains summary fields plus an items array of result rows.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| mode | ENUM | No | One of latest, history, monthly, adjust, indicators, countries. latest returns the newest yearly value per country and indicator; history returns one row per country and year; monthly returns Eurostat HICP per month; adjust converts an amount between years or months; indicators and countries are also supported by the schema. Default: latest. |
| limit | Integer | No | Maximum rows returned. Default: 20. Minimum: 1. Maximum: 100. |
| amount | Number | No | For adjust: the money amount to convert. Default: 100. |
| toYear | Integer | No | For adjust: the target year. |
| country | String | No | For adjust: one country, such as US or Germany. Default: US. |
| endYear | Integer | No | For history: last year. |
| toMonth | String | No | For adjust with monthly precision (EU countries, HICP index): YYYY-MM. |
| endMonth | String | No | For monthly: last month, YYYY-MM. |
| fromYear | Integer | No | For adjust: the year of the original amount. |
| countries | String Array | No | ISO2 codes (US, DE, BG), ISO3 codes (USA, BGR), or English names (Germany). Up to 50 values. Empty defaults to US, DE, GB, JP, BG. |
| fromMonth | String | No | For adjust with monthly precision (EU countries, HICP index): YYYY-MM. |
| indicator | String | No | For history: one indicator key, such as inflation or gdpGrowth. Default: inflation. |
| startYear | Integer | No | For history: first year, 1960 or later. |
| indicators | String Array | No | For latest: indicator keys such as inflation, cpi, gdp, gdpGrowth, gdpPerCapita, unemployment, population, interestRate, or a raw World Bank code such as FP.CPI.TOTL.ZG. Empty defaults to inflation. |
| startMonth | String | No | For monthly: first month, YYYY-MM. Default: 24 months back. |
Response
Returns a JSON object with billed and count integer fields, plus an items array of result objects. Each item can include fields such as iso3, unit, year, value, change, source, country, fetchedAt, indicator, countryName, monthlyHicp, previousYear, indicatorCode, and previousValue, depending on the selected mode and data returned.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| billed | Integer | No | Units charged for this call. Only result rows are billed; not-found, unavailable, and invalid rows are free. |
| count | Integer | No | Number of rows in items. |
| items | Object Array | No | Result rows. The item object may contain iso3, unit, year, value, change, source, country, fetchedAt, indicator, countryName, monthlyHicp, previousYear, indicatorCode, and previousValue fields. |



