# BLS CPI-U Monthly History

> BLS CPI-U Monthly History is a paid API for AI agents from x402-data-bazaar.vercel.app, paid per call via x402, $0.008/call, status down (last checked 2026-09-15).

Returns Consumer Price Index (CPI-U, All Items, US City Average) monthly values with historical data going back a configurable number of years

## Facts

- Endpoint: GET https://x402-data-bazaar.vercel.app/api/bls/cpi
- Price: $0.008/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-data-bazaar-vercel-app-cb9b4c52
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oS79zAZco_m5MjjdeZ3Jh

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 x402-data-bazaar-vercel-app-cb9b4c52
```

Example prompt: Pull me the last 10 years of monthly CPI-U all-items data for the US city average from the Bureau of Labor Statistics so I can see how consumer prices have trended.

## When to prefer this

Use this endpoint when you need official US Consumer Price Index (CPI-U, All Items) monthly data sourced directly from the Bureau of Labor Statistics, especially for inflation tracking, economic analysis, cost-of-living calculations, or historical price comparisons. Prefer this over scraping BLS directly since it wraps BLS data in a clean JSON API with configurable history depth.

## Known failure modes

- Invalid or non-numeric 'years' parameter may return an error or default to 5 years
- BLS upstream data unavailability could cause stale or failed responses
- Requesting far more years than available data may silently truncate the history array
- Payment not sent or insufficient USDC balance returns 402 Payment Required

## How this service works

Consumer Price Index (CPI-U) -- All Items, US City Average. Monthly values with history. Optional ?years=10 (default 5).

## Output

Returns a JSON object with the latest CPI-U value (year, period/month, numeric value), a chronological array of monthly CPI-U readings for the requested history window, and the BLS series ID (CUUR0000SA0). Source is attributed to the Bureau of Labor Statistics.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "years": {
   "type": "string",
   "description": "How many years of monthly history to return"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "data": {
  "latest": {
   "year": "2026",
   "value": 326.785,
   "period": "February"
  },
  "history": [
   {
    "year": "2026",
    "value": 326.785,
    "period": "February"
   },
   {
    "year": "2026",
    "value": 325.252,
    "period": "January"
   }
  ],
  "seriesId": "CUUR0000SA0"
 },
 "source": "Bureau of Labor Statistics",
 "success": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-data-bazaar-vercel-app-cb9b4c52/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-bazaar.vercel.app](https://www.zero.xyz/host/x402-data-bazaar.vercel.app/llms.txt)
