# greeneris-data OECD CPI

> greeneris-data OECD CPI is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Fetches OECD consumer price index (CPI) annual growth rate data for a specified country and number of recent months

## Facts

- Endpoint: GET https://data.greeneris.io/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/greeneris-data-oecd-cpi-059b02f5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6a9fXZlIvRKR_eYvdOAUu

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 greeneris-data-oecd-cpi-059b02f5
```

Example prompt: What's the latest OECD consumer price index annual growth rate for France? Pull the last 3 months of data.

## When to prefer this

Choose this endpoint when you need official, OECD-sourced CPI annual growth rate data for a specific country, especially when building economic dashboards, inflation monitors, or financial due-diligence workflows. Prefer it over scraped or unofficial sources because it cites the exact OECD dataset (CC BY 4.0) and uses pay-per-call pricing with no subscription required.

## Known failure modes

- HTTP 402 returned before payment — must pay via x402 protocol in USDC on Base and retry
- Invalid or unsupported country code returns an error or empty observations
- last_n outside 1-24 range may return an error
- Upstream OECD data unavailable or delayed returns empty observations; buyer is not charged for empty answers
- Network timeout or upstream OECD Data Explorer outage

## 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

A JSON object containing the OECD source attribution, country code and name, measure description, an array of observations each with a period (YYYY-MM) and annual_rate_percent, plus convenience fields for the latest period and latest annual rate percent.

## 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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "OECD Data Explorer, dataset DSD_PRICES@DF_PRICES_ALL (CC BY 4.0)",
  "country": "FRA",
  "measure": "Consumer price index, all items, annual growth rate, percent",
  "country_name": "France",
  "observations": [
   {
    "period": "2025-11",
    "annual_rate_percent": 0.7919967
   },
   {
    "period": "2025-12",
    "annual_rate_percent": 0.9021049
   }
  ],
  "latest_period": "2025-12",
  "latest_annual_rate_percent": 0.9021049
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/greeneris-data-oecd-cpi-059b02f5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
