Published

US Consumer Price Index and Inflation (CPI)

14.6K
3.4K

Consumer Price Index for All Urban Consumers (CPI-U) from U.S. Department Of Labor Bureau of Labor Statistics. This is a monthly time series from January 1913. Values are U.S. city averages for all it...

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-us/
https://datahub.io/core/cpi-us/_r/-/README.md
https://datahub.io/core/cpi-us/_r/-/UPDATE_SCRIPT_MAINTENANCE_REPORT.md
https://datahub.io/core/cpi-us/_r/-/archive/cpiai_archived.csv
https://datahub.io/core/cpi-us/_r/-/data/cpiai.csv
https://datahub.io/core/cpi-us/_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-us/_r/-/datapackage.json
README.mddocumentation
https://datahub.io/core/cpi-us/_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 Views

Data Previews

cpiai

Loading data...

Schema

nametypeformatdescription
DatedateanyDate (strictly the year and month)
IndexnumberMonthly Consumer Price Index. Values are U.S. city averages for all items and 1982-84=100.
InflationnumberMonthly Consumer Price Inflation. Values are for U.S. city averages for all items.

Data Files

FileDescriptionSizeLast modifiedDownload
cpiai
28.7 kB26 days ago
cpiai
FilesSizeFormatCreatedUpdatedLicenseSource
128.7 kBcsv3 days agoOpen Data Commons Public Domain Dedication and License v1.0US Bureau of Labor Statistics

badge

Consumer Price Index for All Urban Consumers (CPI-U) from U.S. Department Of Labor Bureau of Labor Statistics. This is a monthly time series from January 1913. Values are U.S. city averages for all items and 1982-84=100. Note that there are many price indices and this is only one of them (albeit the most standard and with the longest set of data).

Preparation

Run the following script to get the final data at data/ folder:

# Install libraries
pip install -r scripts?requirements.txt

# Run the script
python scripts/process.py

Data

Data is sourced from bls.gov and combined with previous data from 2014 which is now outdated and requires an API for this case.

Automation

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

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/