# OECD CPI Headline National Inflation Data

> OECD CPI Headline National Inflation Data is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Retrieves headline national Consumer Price Index (CPI) and year-on-year growth rate for OECD economies via the official OECD SDMX API

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/oecd/cpi
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/oecd-cpi-headline-national-inflation-data-93096ed6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bXlp29tKK5rSQGpUB4eqp

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 oecd-cpi-headline-national-inflation-data-93096ed6
```

Example prompt: What is the headline CPI inflation rate for the USA right now, and can you also pull the last 12 months of monthly readings so I can see the trend?

## When to prefer this

Choose this endpoint when you need official OECD-methodology CPI data for non-EU economies like USA, GBR, JPN, CAN, or other OECD members — especially when you want consistent cross-country comparability under one methodology. Prefer over Eurostat HICP for non-EU country analysis or when OECD standardization is required.

## Known failure modes

- 502 error if the most recent data is older than 18 months (series too stale, call not charged)
- Invalid or unsupported OECD REF_AREA country code returns an error
- last_n outside the 1-24 range is rejected
- OECD upstream API unavailable causes failure
- Countries not covered by OECD methodology will not be found

## How this service works

Headline national CPI, year-on-year growth rate (%), monthly, from the official OECD SDMX API (dataset DSD_PRICES@DF_PRICES_ALL). Complements Eurostat HICP with USA, GBR, JPN, CAN and other OECD economies under one methodology. Query: ?country=USA (REF_AREA code) &last_n=12 (1-24 months, default 1). Returns date-sorted observations plus the latest print; 24h cache. Recency varies by country; series older than 18 months are refused (502, not charged). Data: OECD, CC BY 4.0.

## Output

Returns an array of date-sorted monthly CPI observations for the requested country, each with the observation date and year-on-year growth rate (%), plus the latest/most recent CPI print. Data is cached for 24 hours and sourced from the OECD SDMX API under CC BY 4.0.

## 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": {
      "last_n": {
       "type": "integer",
       "default": 1,
       "description": "Number of most recent months (1-24)"
      },
      "country": {
       "type": "string",
       "default": "USA",
       "description": "OECD REF_AREA code (USA, GBR, JPN, FRA...)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/oecd-cpi-headline-national-inflation-data-93096ed6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
