# Official Inflation Rate Lookup (HICP / CPI-U)

> Official Inflation Rate Lookup (HICP / CPI-U) is a paid API for AI agents from x402-apis.pages.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-23).

Returns official consumer price inflation data (year-on-year) for 39 European countries plus the US, sourcing Eurostat HICP and BLS CPI-U, with up to 36 months of history and flash-estimate flagging.

## Facts

- Endpoint: GET https://x402-apis.pages.dev/v1/inflation?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/official-inflation-rate-lookup-hicp-cpi-u-603cd225
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xP0eiFFNI16v2-ATTtoQI

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 official-inflation-rate-lookup-hicp-cpi-u-603cd225
```

Example prompt: What's the official year-on-year inflation rate for Germany right now? Pull the latest 6 months of history too so I can see the trend.

## When to prefer this

Choose this endpoint when you need official, government-sourced consumer price inflation data — not market forecasts or third-party estimates. It is the right choice for any agent answering macro questions about eurozone (HICP), EU member states, Norway, Switzerland, Turkey, or the US (CPI-U). Prefer it over generic financial data APIs when source attribution, flash-estimate flagging, and historical series up to 36 months are required, and when paying per-call in USDC micro-transactions (x402) is acceptable.

## Known failure modes

- HTTP 400 returned before payment is charged when country code is invalid or missing
- HTTP 400 if months parameter is outside 1–36 range
- Data unavailable for very recent months if the official statistical release has not yet occurred
- Service outage does not result in a charge
- Flash estimates may be revised in subsequent months

## How this service works

Use when an agent needs the official inflation rate (year-on-year consumer prices) for a country: Eurostat HICP for the euro area, EU and 36 European countries (incl. CH, NO, TR) and US CPI-U from the Bureau of Labor Statistics. Latest month plus up to 36 months of history, flash estimates flagged. Source named in every answer. Bad input: HTTP 400 before payment; outage is not charged.

## Output

A JSON object containing the country code, the latest month's year-on-year inflation rate with date and value, a time-series array of up to 36 monthly readings, a flag indicating whether the latest figure is a flash estimate, and a named source field (Eurostat HICP or BLS CPI-U).

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country"
     ],
     "properties": {
      "months": {
       "type": "string",
       "description": "Number of months of history, 1-36. Default 12."
      },
      "country": {
       "type": "string",
       "description": "2-letter code: EA, EU, AT, BE, BG, CY, CZ, DE, DK, EE, EL, ES, FI, FR, HR, HU, IE, IT, LT, LU, LV, MT, NL, PL, PT, RO, SE, SI, SK, IS, NO, CH, TR, AL, ME, MK, RS, XK, US. EA = euro area, EU = European Union."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "country",
      "latest",
      "series"
     ],
     "properties": {
      "latest": {
       "type": "object"
      },
      "series": {
       "type": "array"
      },
      "country": {
       "type": "string"
      },
      "measure": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/official-inflation-rate-lookup-hicp-cpi-u-603cd225/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-apis.pages.dev](https://www.zero.xyz/host/x402-apis.pages.dev/llms.txt)
