# x402stock Inflation Data

> x402stock Inflation Data is a paid API for AI agents from agents.x402stock.xyz, paid per call via x402 or MPP, $0.02/call, status healthy (last checked 2026-10-27, last successful call 2026-10-15).

Returns US inflation metrics (CPI, PCE) for AI agents via pay-per-request USDC payment

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/inflation?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402, MPP
- Status: healthy
- Last checked: 2026-10-27
- Last successful call: 2026-10-15
- Success rate: 100% of calls made through Zero
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-inflation-data-2a5ead67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_531Nk3J89Y7Y0O_DFfJpe

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-inflation-data-2a5ead67
```

Example prompt: Pull the latest US CPI and PCE inflation data from x402stock so I can see where inflation stands right now and how it's trended over the past year.

## When to prefer this

Use this endpoint when an AI agent needs programmatic, pay-per-use access to US CPI or PCE inflation data without setting up API keys or subscriptions. Ideal for autonomous agents that need macro inflation data alongside other x402stock market data in the same session, paying fractionally in USDC.

## Known failure modes

- Invalid or unsupported property parameters return an error
- Payment failure in USDC via x402 results in 402 Payment Required response
- Rate limiting or account issues may block access
- Requests for unsupported date ranges or frequencies may return empty or error responses

## How this service works

Headline and core index with year-over-year percent.

## Output

Returns US inflation data including CPI and/or PCE index values and rates, likely as a time series with dates and readings, covering recent and historical periods for macro analysis.

## 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
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "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": {
    "yoy_percent": {
     "anyOf": [
      {
       "type": "number"
      },
      {
       "type": "null"
      }
     ]
    },
    "latest_index": {
     "anyOf": [
      {
       "type": "number"
      },
      {
       "type": "null"
      }
     ]
    },
    "latest_month": {
     "anyOf": [
      {
       "type": "string"
      },
      {
       "type": "null"
      }
     ]
    }
   },
   "additionalProperties": false
  }
 },
 "additionalProperties": false
}
```

## More

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