# x402stock.xyz US CPI Inflation Data

> x402stock.xyz US CPI Inflation Data is a paid API for AI agents from x402stock.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns the latest US headline CPI-U and core (ex food & energy) index levels with year-over-year percent change, plus recent monthly history, sourced from the US Bureau of Labor Statistics.

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/inflation
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-xyz-e11c2a5b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4aTqLDv3dxx77MdSlKO5u

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 x402stock-xyz-e11c2a5b
```

Example prompt: What's the latest US inflation reading — give me the headline CPI-U and core CPI index levels, their year-over-year changes, and a few months of recent history from the BLS.

## When to prefer this

Use this endpoint when you need current US CPI inflation data (headline and core) with year-over-year changes and monthly history without an API key or separate data subscription. Ideal for macro-aware stock analysis, economic commentary, or any workflow needing BLS CPI figures on demand via a simple pay-per-call model in USDC.

## Known failure modes

- Payment failure: x402 payment of 0.02 USDC not completed — request blocked
- BLS data unavailable: upstream BLS source temporarily unreachable
- Stale data: BLS has not yet published the latest month's report
- Rate limiting: too many requests in a short window

## How this service works

US consumer price inflation from the Bureau of Labor Statistics: the latest headline CPI-U and core (ex food and energy) index levels with year-over-year percent change, plus recent monthly history. No ticker needed. Use for macro-aware analysis without leaving for a separate data source. Sourced from US BLS. From x402stock, a market & economic data API (x402, USDC).

## Output

Returns a JSON object with: source (us_bls), as_of date, series name, unit, headline object (latest_index, latest_month, yoy_percent), core object (latest_index, latest_month, yoy_percent), and a history array of recent monthly CPI values with date, period_name, and value fields.

## Example request

```json
{
 "properties": ""
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "core": {
   "yoy_percent": 3.1,
   "latest_index": 326.18,
   "latest_month": "2026-04"
  },
  "unit": "index_1982_84=100",
  "as_of": "2026-04-01T00:00:00.000Z",
  "series": "cpi_u_us_city_average",
  "source": "us_bls",
  "history": [
   {
    "date": "2026-04",
    "value": 320.32,
    "period_name": "April"
   }
  ],
  "headline": {
   "yoy_percent": 2.7,
   "latest_index": 320.32,
   "latest_month": "2026-04"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-xyz-e11c2a5b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.xyz](https://www.zero.xyz/host/x402stock.xyz/llms.txt)
