# US inflation pack (CPI, Core CPI, PCE, PPI & breakevens) (QuantSet API)

> Headline & Core CPI, Headline & Core PCE, PPI, and 5Y/10Y breakeven inflation with pre-computed MoM and YoY percent changes in one call.

> ## For AI agents
> The QuantSet API is at https://api.quantset.dev. Send the key in the `X-API-Key` header. The sandbox key `mw_demo` needs no signup and reads the sample listings.
> No key yet? An agent can open an account on its own: https://api.quantset.dev/skill.md
> Connect an MCP client to https://api.quantset.dev/mcp. Client setup is at https://api.quantset.dev/agents.md.
> Start with https://api.quantset.dev/llms.txt or read the full reference at https://api.quantset.dev/llms-full.txt. The OpenAPI file is https://api.quantset.dev/openapi.json. Add `.md` to any docs URL to get that page as Markdown.

`GET https://api.quantset.dev/api/v1/macro/inflation` · `get_macro_inflation`

Send a key in the `X-API-Key` header.
Add `format=csv` to get a UTF-8 table.
Price: 1 credit for each successful request.

## Research questions

### Which inflation series moved most recently?

```http
GET https://api.quantset.dev/api/v1/macro/inflation
```

Read 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?

```http
GET https://api.quantset.dev/api/v1/macro/inflation?mode=historical&series_id=CPIAUCSL&limit=13
```

Use 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.


## Parameters

- `mode` (snapshot | historical, optional)
- `series_id` (string, optional)
- `limit` (integer, 1 to 500, optional): Historical mode only. Defaults to 50 observations.
- `snapshot_id` (string, optional): Pin the request to one immutable snapshot so a read across several pages stays consistent.
- `format` (json | csv, optional): Return a JSON page or UTF-8 CSV rows.
- `X-Max-Credits` (integer, 0 to 999,999,999,999, optional, in header): Refuse the request if its maximum charge exceeds this ceiling.
- `X-Workflow-Id` (string, optional, in header): Optional printable identifier for grouping charges in a research workflow.

## Response fields

- `series_id` (string): The identifier of the economic or reference series.
- `name` (string): The company, fund or instrument name.
- `category` (string)
- `frequency` (string)
- `unit` (string)
- `latest_date` (string): The date of the most recent price for this listing.
- `latest_value` (number)
- `prior_value` (number)
- `period_change` (number)
- `mom_change_pct` (number): In percent: 10 means 10%.
- `qoq_change_pct` (number): In percent: 10 means 10%.
- `yoy_change_pct` (number): In percent: 10 means 10%.

## Example

```
curl 'https://api.quantset.dev/api/v1/macro/inflation' -H 'X-API-Key: YOUR_API_KEY'
```

## Responses

- 200 Successful Response
- 400 Supply one credential.
- 401 Supply a valid API key.
- 402 Reduce the request ceiling or refill your credits.
- 403 Your key does not have the required access.
- 409 Start the read again with the current snapshot.
- 413 Reduce the page size before requesting CSV again.
- 422 Correct the named parameter and retry.
- 429 Wait for Retry-After seconds.
- 500 The request could not be completed.
- 503 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.

Group: Macro and FX
Docs page: https://quantset.dev/docs/api/macro-inflation
Integrations & Ecosystem: https://quantset.dev/integrations (Claude/Cursor MCP, LangGraph, PydanticAI, CrewAI, Agno, Vercel AI SDK, Mastra, Sheets =QUANTSET(), Excel, Notion & x402)
Full API guide: https://api.quantset.dev/llms-full.txt
