# UK CPI Inflation History API

> UK CPI Inflation History API is a paid API for AI agents from property.payapi.market, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-17).

Returns UK Consumer Price Index (CPI) inflation history from the ONS for a specified number of months

## Facts

- Endpoint: POST https://property.payapi.market/inflation?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uk-cpi-inflation-history-api-a72a859a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GKbUEdiDl867yc0roZmtp

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 uk-cpi-inflation-history-api-a72a859a -d '<json body>'
```

Example prompt: Can you pull the last 36 months of UK CPI inflation history from the ONS so I can see how the rate has changed over the past three years?

## When to prefer this

Choose this endpoint when you need structured, machine-readable UK CPI inflation time-series data sourced from the ONS, especially within a UK property or financial analysis workflow where sibling endpoints (sold prices, rental yields, stamp duty) are also in use. Prefer this over generic web scraping when you need clean, paginated monthly CPI data with a predictable schema.

## Known failure modes

- Invalid months value (outside 1–120 range) returns a validation error
- ONS data source unavailable or delayed causes stale or missing history
- Requesting more months than available historical records may return fewer entries than requested
- Payment failure via x402 protocol returns a 402 status before data is served

## How this service works

Production API for UK sold prices, rental yields, and stamp duty. Paid via x402 protocol. Designed for AI agent consumption.

## Output

A JSON object containing the current CPI percentage, the data source (ONS), and an array of monthly CPI history records each with a date (YYYY-MM format) and a CPI percentage value, covering the requested number of months.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "months": {
   "type": "integer",
   "maximum": 120,
   "minimum": 1,
   "description": "Months of CPI history to return. Defaults to 24."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "ONS",
  "history": [
   {
    "date": "2025-03",
    "cpi_pct": 2.6
   },
   {
    "date": "2025-02",
    "cpi_pct": 2.8
   },
   {
    "date": "2025-01",
    "cpi_pct": 3
   }
  ],
  "current_cpi": 2.6
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-cpi-inflation-history-api-a72a859a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from property.payapi.market](https://www.zero.xyz/host/property.payapi.market/llms.txt)
