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 Files
Explore with AIdata
| Field | Type | Format | Description |
|---|---|---|---|
| date | date | %Y-%m-%d | Observation date (YYYY-MM-DD). |
| value | number | Index value (base period varies; see source). | |
| unit | string | Unit of observation (matches manifest). |
Download
Download CSVAbout
- Last updated
- 19 May 2026
- Total rows
- ...
- Format
- CSV
- File size
- 14.3 kB
About this dataset
Consumer Price Index (CPI)
Live, free, machine-readable economic data. Sourced from primary government datasets, updated on the published cadence.
Download
- CSV: https://calcfi.app/api/rates/cpi?format=csv
- JSON (latest value): https://calcfi.app/api/rates/cpi
Columns: date,value,source (one row per observation, sorted ascending by date).
Live page
Interactive chart + 10-year history + stats: https://calcfi.app/rates/history/cpi
Metadata
| Field | Value |
|---|---|
| Slug | cpi |
| Category | inflation |
| Primary source | BLS via FRED (CPIAUCSL) |
| Update cadence | monthly |
| Last README sync | 2026-06-04 |
License
CC-BY 4.0 — attribute to CalcFi with a link to https://calcfi.app/rates/history/cpi.
Why the CSV link points to calcfi.app
The previous data.csv link in this dataset's datahub.io storage was unreachable (404). CalcFi now serves the canonical CSV directly via its content-negotiated rates API, which reads from the same Supabase-cached pipeline that powers the live page above. The CSV is regenerated on every request from the most recent stored observations, so it stays in sync with the live page without a separate publishing step.