Updated

Annual Consumer Price Index (CPI)

Annual Consumer Price Index (CPI) for most countries in the world. Reference year is 2005.

API Access

Access dataset files directly from scripts, code, or AI agents.

Browse dataset files
Dataset Files

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

/core/cpi/
https://datahub.io/core/cpi/_r/-/.gitignore
https://datahub.io/core/cpi/_r/-/LICENSE
https://datahub.io/core/cpi/_r/-/README.md
https://datahub.io/core/cpi/_r/-/data/cpi.csv
https://datahub.io/core/cpi/_r/-/datapackage.json
Key Files

Start with these files — they give you everything you need to understand and access the dataset.

datapackage.jsonmetadata & schema
https://datahub.io/core/cpi/_r/-/datapackage.json
README.mddocumentation
https://datahub.io/core/cpi/_r/-/README.md
Typical Usage
  1. 1. Fetch datapackage.json to inspect schema and resources
  2. 2. Download data resources listed in datapackage.json
  3. 3. Read README.md for full context

Data Previews

cpi

Loading data...

Schema

nametypedescription
Country Namestring
Country Codestring
Yearyear
CPInumberCPI (where 2005=100)

Data Files

FileDescriptionSizeLast modifiedDownload
cpi
449 kBabout 2 months ago
cpi
FilesSizeFormatCreatedUpdatedLicenseSource
1449 kB9 months agoOpen Data Commons Public Domain Dedication and License v1.0The World Bank

badge

Annual Consumer Price Index (CPI) for most countries in the world when it has been measured. The reference year is 2005 (meaning the value of CPI for all countries is 100 and all other CPI values are relative to that year).

Data

The data comes from The World Bank and is collected from 1960 to 2011. There are some values missing from data so users of the data will have to guess what should be in the empty slots.

The actual download happens via The World Bank's API (with csv as the requested format).

Preparation

It is parsed via the script cpi2datapackage.py, located in scripts.

# Process cpi2datapackage.py
python cpi2datapackage.py

Automation

Up-to-date (auto-updates every month) cpi dataset could be found on the datahub.io: https://datahub.io/core/cpi

License

This Data Package is made available under the Public Domain Dedication and License v1.0 whose full text can be found at: http://www.opendatacommons.org/licenses/pddl/1.0/