# Financial Datasets AI - US Inflation History Series

> Financial Datasets AI - US Inflation History Series is a paid API for AI agents from api.financialdatasets.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-12-02).

Returns monthly US inflation index levels with month-over-month and year-over-year percent changes for a specified series (CPI, PCE, core, food, energy, shelter, etc.), paginated and newest-first.

## Facts

- Endpoint: GET https://api.financialdatasets.ai/macro/inflation?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/financial-datasets-ai-us-inflation-history-series-ac791c20
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NaUWDa-cokMOER0Ply2yM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability financial-datasets-ai-us-inflation-history-series-ac791c20
```

Example prompt: Pull the monthly CPI all items seasonally adjusted inflation series (cpi_all_sa) from January 2020 through December 2023, including the month-over-month and year-over-year percent changes.

## When to prefer this

Choose this endpoint when you need a time series of US inflation data (CPI or PCE, any sub-index, seasonally adjusted or not) over a date range with both index levels and percent changes precomputed. It is ideal for macroeconomic analysis, Fed policy research, financial modeling, or any agent task requiring structured monthly inflation history rather than a single snapshot. Prefer this over raw FRED data pulls when you want normalized, ready-to-use percent change calculations without post-processing.

## Known failure modes

- Invalid or unrecognized series ID returns an error — must use exact series IDs like cpi_all_sa, pce_core_sa
- Date format errors if dates are not provided in YYYY-MM-DD format
- Professional-tier series may be blocked for Non-Professional accounts without an appropriate plan
- Payment failure (402) if USDC payment via x402 protocol is not properly configured
- Empty result set if the date range requested predates available data
- Cursor errors if an invalid or expired pagination cursor is provided

## How this service works

Monthly US inflation history for one series by id (CPI all items, core, food, energy, shelter and services less energy, each seasonally adjusted or not; PCE all items and core): the index level with the month-over-month and year-over-year percent changes, newest first. Paginated with next_page_url. Use when an agent needs an inflation series over time. Non-Professional use; Professional use needs a plan at financialdatasets.ai.

## Output

A paginated list of monthly inflation data points for the requested series, each containing the date, index level, month-over-month percent change, and year-over-year percent change, sorted newest first. The response includes a next_page_url for fetching older data when more pages exist.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "series"
     ],
     "properties": {
      "cursor": {
       "type": "string",
       "description": "Opaque pagination cursor from a previous response's next_page_url."
      },
      "series": {
       "type": "string",
       "description": "The series id, e.g. cpi_all_sa or pce_core_sa."
      },
      "end_date": {
       "type": "string",
       "description": "The last month to return, inclusive, in YYYY-MM-DD format."
      },
      "start_date": {
       "type": "string",
       "description": "The first month to return, inclusive, in YYYY-MM-DD format; any day inside a month selects that month."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/financial-datasets-ai-us-inflation-history-series-ac791c20/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.financialdatasets.ai](https://www.zero.xyz/host/api.financialdatasets.ai/llms.txt)
