Import Price Index
Get the Import Price Index for a variety of countries over time. The index measures the average change over time in the prices of the goods a country buys from abroad, in its own currency. It shows how foreign price shocks and currency moves reach the domestic economy, ahead of the Producer and Consumer Price Indices.
Each country’s index comes monthly from its official publisher:
\[\text{Eurostat for the euro area, the European Union and around 20 European countries:}\;\; \text{the import prices of industrial products (mining, manufacturing and energy supply)},\;\; 2021 = 100. \;\text{For the euro area these include imports from other members}\] \[\text{The Bureau of Labor Statistics for the United States:}\;\; \text{the import price index of all commodities},\;\; 2000 = 100. \;\text{The BLS API returns about the last three}\; \text{years;} \;\text{with}\; a \;\text{FRED API key the full history comes from FRED}\] \[\text{The Bank of Japan for Japan:}\;\; \text{the import price index in yen},\;\; 2020 = 100,\;\; \text{from 1960}\]All indices are not seasonally adjusted, so changes are best taken year over year (growth=True with lag=12 on monthly data), which returns them as decimals (0.057 for 5.7%). The base year differs per country, so compare growth rather than levels. Quarterly and yearly values are the average of the months, for complete periods only.
See definition: https://ec.europa.eu/eurostat/cache/metadata/en/sts_inpi_esms.htm
Also known as: import prices, MPI, trade prices.
Import Price Index in Python
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_import_price_index as shown below.
from financetoolkit import Economics
economics = Economics(start_date='2025-10-01', end_date='2026-09-30')
economics.get_import_price_index(
countries=['United States', 'Euro Area', 'Japan'],
period='monthly',
growth=True,
lag=12,
)
Which returns:
| United States | Euro Area | Japan | |
|---|---|---|---|
| 2025-10 | nan | -0.0231 | -0.016 |
| 2025-11 | -0.0007 | -0.0291 | -0.017 |
| 2025-12 | 0 | -0.036 | 0.0018 |
| 2026-01 | 0.0021 | -0.0357 | 0.0072 |
| 2026-02 | 0.0099 | -0.033 | 0.0283 |
| 2026-03 | 0.0226 | 0.015 | 0.0831 |
| 2026-04 | 0.0452 | 0.0617 | 0.217 |
| 2026-05 | 0.0688 | 0.073 | 0.2642 |
| 2026-06 | 0.0675 | 0.0604 | 0.3042 |
| 2026-07 | 0.0602 | 0.064 | 0.2939 |
| 2026-08 | 0.0674 | 0.0835 | 0.2506 |
| 2026-09 | 0.081 | 0.1072 | 0.2447 |
Parameters
get_import_price_index accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
countries | list[str] | str | None | The countries to include in the data. Defaults to None. | ["United States", "Germany"] |
period | str | None | Whether to return the monthly, quarterly or the annual data. Defaults to None, which is quarterly when the Economics class was initialized with quarterly=True and monthly otherwise. | "weekly" |
rolling | int | The rolling window size to use for smoothing the data (simple moving average). Defaults to None. | 4 |
trailing | int | The trailing window size to use for summing the data over trailing periods (e.g. a trailing-4-quarter sum). Defaults to None. | 4 |
growth | bool | Whether to return the growth data or the actual data. Defaults to False. | True |
lag | int | The number of periods to lag the data by. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
rounding | int | None | The number of decimals to round the results to. Defaults to None. | 2 |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |