US inflation pack (CPI, Core CPI, PCE, PPI & breakevens)
Headline & Core CPI, Headline & Core PCE, PPI, and 5Y/10Y breakeven inflation with pre-computed MoM and YoY percent changes in one call.
/api/v1/macro/inflationAPI key1 credit per request Use a key with access to this operation.
Parameters
modesnapshot | historicalseries_idstringlimitinteger, 1 to 500Historical mode only. Defaults to 50 observations.
snapshot_idstringPin the request to one immutable snapshot so a read across several pages stays consistent.
formatjson | csvReturn a JSON page or UTF-8 CSV rows.
Response
Each row has these fields. Rows arrive in data, next to schema_version, snapshot_id, total_count, next_cursor, provenance.
series_idstringThe identifier of the economic or reference series.
namestringThe company, fund or instrument name.
categorystringfrequencystringunitstringlatest_datestringThe date of the most recent price for this listing.
latest_valuenumberprior_valuenumberperiod_changenumbermom_change_pctnumberIn percent: 10 means 10%.
qoq_change_pctnumberIn percent: 10 means 10%.
yoy_change_pctnumberIn percent: 10 means 10%.
Research questions
Which inflation series moved most recently?
GET https://api.quantset.dev/api/v1/macro/inflationRead series_id, unit, frequency and latest_date before interpreting latest_value or yoy_change_pct.
How did the headline CPI level evolve over a year?
GET https://api.quantset.dev/api/v1/macro/inflation?mode=historical&series_id=CPIAUCSL&limit=13Use latest_date as the observation date on each series row. Keep the level and year-over-year percentage in distinct columns.
Reading the results
An index level of 300 and a year-over-year change of 3% describe different aspects of the same series. Use the change column appropriate to the question.
Coverage and limits
The latest dates can differ across components. A historical observation date alone does not establish when a particular vintage was published.
CSV, spreadsheets and agents
The same rows as a spreadsheet-ready table. Add format=csv to the request.
curl "https://api.quantset.dev/api/v1/macro/inflation?format=csv" -H "X-API-Key: YOUR_API_KEY"
Or pull it straight into Google Sheets with one formula. Excel and larger pulls
=IMPORTDATA("https://api.quantset.dev/api/v1/macro/inflation?format=csv&apikey=YOUR_API_KEY")AI agents call this endpoint over HTTP, or read its Markdown version. Connect Claude, ChatGPT, Cursor or your own agent
Errors
| Status | Code | What to do |
|---|---|---|
| 400 | conflicting_credentials | Supply one credential. |
| 401 | invalid_credentials | Supply a valid API key. |
| 402 | insufficient_credits | Reduce the request ceiling or refill your credits. |
| 403 | insufficient_access | Your key does not have the required access. |
| 409 | snapshot_changed | Start the read again with the current snapshot. |
| 413 | export_too_large | Reduce the page size before requesting CSV again. |
| 422 | invalid_parameter | Correct the named parameter and retry. |
| 429 | rate_limited | Wait for Retry-After seconds. |
| 500 | internal_error | The request could not be completed. |
| 503 | temporarily_unavailable | Retry safe reads after a short delay. |
Questions
- What does US inflation pack (CPI, Core CPI, PCE, PPI & breakevens) cost?
- 1 credit for each successful request. A request that fails costs nothing.
- Which plan includes it?
- Every account. Free credits, credit packs and subscriptions all read this data.
- Can I get it as CSV or in a spreadsheet?
- Yes. Add format=csv to the request. In Google Sheets, put that URL inside IMPORTDATA with a data-only key in apikey.
- Can an AI agent use this?
- Yes. An agent calls it over HTTP like any client. Add .md to this page's address for a version written for agents.
- What does null mean in the response?
- The value could not be confirmed. It is never a zero, so treat it as missing in your own calculations.
More in macro and fx
GET /api/v1/treasuryH.15 Treasury curve, real yields & spreadsGET /api/v1/macro/treasury-yieldsUS labor market pack (Payrolls, Unemployment, JOLTS & Claims)GET /api/v1/macro/laborUS GDP, corporate profits & activity packGET /api/v1/macro/gdpGlobal central bank policy rates (10 central banks)GET /api/v1/macro/central-bank-ratesList macro seriesGET /api/v1/macro/seriesEconomic indicatorsGET /api/v1/macro/indicatorsFX reference ratesGET /api/v1/fx/rates