# US Inflation Data API (CPI & Core CPI)

> US Inflation Data API (CPI & Core CPI) is a paid API for AI agents from cycle-angela-lamp-hamburg.trycloudflare.com, paid per call via x402, $0.02/call, status down (last checked 2026-10-13).

Returns the latest US CPI and core CPI readings from FRED, including current and previous values with dates for year-over-year comparison.

## Facts

- Endpoint: GET https://cycle-angela-lamp-hamburg.trycloudflare.com/api/macro/inflation?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: down
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-inflation-data-api-cpi-core-cpi-66833884
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NpMAtir1NSVb2WepVN9t5

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 us-inflation-data-api-cpi-core-cpi-66833884
```

Example prompt: What are the latest US inflation numbers — give me both the headline CPI and core CPI, their most recent values and dates, and how they compare to the prior reading?

## When to prefer this

Use this endpoint when you need quick, structured US CPI and core CPI data from an authoritative source (FRED) without setting up your own FRED API key. Ideal for macroeconomic dashboards, inflation monitoring, or any agent workflow that needs current and prior month inflation readings in a single call. Prefer over raw FRED API when you want pre-parsed JSON with both headline and core CPI in one response.

## Known failure modes

- FRED data unavailable or delayed — stale generated_at timestamp returned
- Payment not included or invalid x402 payment header — 402 Payment Required response
- Cloudflare tunnel down or unreachable — connection timeout or 5xx error
- No schema parameters to validate, but malformed requests may return 4xx

## How this service works

US inflation data: CPI all items, core CPI, latest readings with dates and year over year change. JSON. Source FRED.

## Output

A JSON object containing two FRED series objects (cpi and core_cpi), each with the latest and previous observations (date and numeric value as string), the FRED series ID, and data source label. Also includes a generated_at Unix timestamp indicating when the payload was built.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cpi": {
   "type": "object",
   "properties": {
    "latest": {
     "type": "object",
     "properties": {
      "date": {
       "type": "string"
      },
      "value": {
       "type": "string",
       "description": "numeric string"
      }
     }
    },
    "series": {
     "type": "string",
     "description": "FRED series id"
    },
    "source": {
     "type": "string"
    },
    "previous": {
     "type": "object",
     "properties": {
      "date": {
       "type": "string"
      },
      "value": {
       "type": "string"
      }
     }
    }
   },
   "description": "single FRED series, latest two observations"
  },
  "core_cpi": {
   "type": "object",
   "properties": {
    "latest": {
     "type": "object",
     "properties": {
      "date": {
       "type": "string"
      },
      "value": {
       "type": "string",
       "description": "numeric string"
      }
     }
    },
    "series": {
     "type": "string",
     "description": "FRED series id"
    },
    "source": {
     "type": "string"
    },
    "previous": {
     "type": "object",
     "properties": {
      "date": {
       "type": "string"
      },
      "value": {
       "type": "string"
      }
     }
    }
   },
   "description": "single FRED series, latest two observations"
  },
  "generated_at": {
   "type": "integer",
   "description": "unix seconds when payload was built"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-inflation-data-api-cpi-core-cpi-66833884/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cycle-angela-lamp-hamburg.trycloudflare.com](https://www.zero.xyz/host/cycle-angela-lamp-hamburg.trycloudflare.com/llms.txt)
