# x402stock US CPI Inflation Data

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

Returns the latest US CPI-U headline and core (ex food and energy) inflation index levels, year-over-year percent changes, and recent monthly history from the Bureau of Labor Statistics

## Facts

- Endpoint: GET https://x402stock.vercel.app/api/v1/inflation
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-us-cpi-inflation-data-862e3c69
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t4D_FD_GD519b7n9q2Ud7

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-us-cpi-inflation-data-862e3c69
```

Example prompt: What's the current US inflation rate? Give me the latest BLS CPI-U headline and core readings with their year-over-year changes and recent monthly history.

## When to prefer this

Use this endpoint when you need current US CPI inflation data (both headline CPI-U and core ex-food-and-energy) with year-over-year changes sourced directly from the BLS, especially for macro-aware financial analysis, economic commentary, or when you need to contextualize market data without switching to a separate data source. No ticker symbol or query parameters are required.

## Known failure modes

- BLS data not yet updated for the current month — may return prior month's data
- Network or upstream BLS unavailability — may return 5xx error
- Payment not processed (x402) — returns 402 Payment Required
- Rate limiting — returns 429 Too Many Requests

## 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 CPI-U object (latest index level, latest month, YoY percent change), core CPI object (same fields), and a history array of recent monthly data points each with date, period name, and index value.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "source",
      "as_of",
      "series",
      "unit",
      "headline",
      "core",
      "history"
     ],
     "properties": {
      "core": {
       "type": "object",
       "required": [
        "latest_index",
        "latest_month",
        "yoy_percent"
       ],
       "properties": {
        "yoy_percent": {
         "anyOf": [
          {
           "type": "number"
          },
          {
           "type": "null"
          }
         ]
        },
        "latest_index": {
         "anyOf": [
          {
           "type": "number"
          },
          {
           "type": "null"
          }
         ]
        },
        "latest_month": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "null"
          }
         ]
        }
       },
       "additionalProperties": false
      },
      "unit": {
       "type": "string"
      },
      "as_of": {
       "type": "string"
      },
      "series": {
       "type": "string"
      },
      "source": {
       "type": "string",
       "const": "us_bls"
      },
      "history": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "date",
         "period_name",
         "value"
        ],
        "properties": {
         "date": {
          "type": "string"
         },
         "value": {
          "type": "number"
         },
         "period_name": {
          "type": "string"
         }
        },
        "additionalProperties": false
       }
      },
      "headline": {
       "type": "object",
       "required": [
        "latest_index",
        "latest_month",
        "yoy_percent"
       ],
       "properties": {
        "yo
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-us-cpi-inflation-data-862e3c69/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.vercel.app](https://www.zero.xyz/host/x402stock.vercel.app/llms.txt)
