API Access
Access dataset files directly from scripts, code, or AI agents.
Browse dataset files
API Access
Access dataset files directly from scripts, code, or AI agents.
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.
Start with these files — they give you everything you need to understand and access the dataset.
- 1. Fetch datapackage.json to inspect schema and resources
- 2. Download data resources listed in datapackage.json
- 3. Read README.md for full context
Data Views
Monthly Consumer Price Inflation
Monthly Consumer Price Index
Data Files
Explore with AIcpiai
| Field | Type | Format | Description |
|---|---|---|---|
| Date | date | default | Date of the observation in YYYY-MM-DD format, always the first day of the month. |
| Index | number | Monthly Consumer Price Index. Values are U.S. city averages for all items and 1982-84=100. | |
| Inflation | number | Monthly Consumer Price Inflation. Values are for U.S. city averages for all items. |
Download
Download CSVAbout
- Monthly CPI-U index values and derived month-on-month inflation rates for the US city average (all items), from January 1913 to the most recent available month. The first row (1913-01-01) has an empty Inflation value because percent-change calculation requires a prior month.
- Last updated
- 19 May 2026
- Total rows
- ...
- Format
- CSV
- File size
- 29.3 kB
- Source
- BLS Public API v2
About this dataset
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.
Data notes
- All
Datevalues are formatted asYYYY-MM-DDand are always the first day of the month (e.g.1913-01-01represents January 1913). - The
Inflationfield is empty for the first row (1913-01-01) because month-on-month percent change requires a prior month value.
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/