# zaref.dev South African CPI

> zaref.dev South African CPI is a paid API for AI agents from zaref.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-19).

Returns the latest South African headline CPI (consumer price index) year-on-year percentage with reference month, source citation, and freshness flag

## Facts

- Endpoint: GET https://zaref.dev/v1/cpi?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zaref-dev-south-african-cpi-ce32d883
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EJdUhKKnFK50ckl1yWVmg

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 zaref-dev-south-african-cpi-ce32d883
```

Example prompt: What is South Africa's current headline CPI inflation rate year-on-year, and when was the reference month for that figure?

## When to prefer this

Use this endpoint when you need the official, cited South African headline consumer inflation (CPI) figure with a freshness flag and source URL — especially when building financial tools, cost-of-living calculators, or compliance workflows that require authoritative Stats SA data with minimal setup.

## Known failure modes

- Stats SA data not yet updated for the current month — freshness flag will indicate stale data
- Network or upstream availability issues returning 5xx errors
- x402 payment not completed — endpoint returns 402 Payment Required before data is served

## How this service works

South African CPI (headline, YoY) (Latest Stats SA headline consumer inflation, year-on-year %, with reference month.) Clean cited JSON with official source URL, effective date and freshness flag.

## Output

A clean JSON object containing the latest Stats SA headline CPI value as a year-on-year percentage, the reference month, the effective date of the data, the official Stats SA source URL, and a freshness flag indicating whether the data is current.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": "current values with citations",
  "stale": false,
  "series": "cpi",
  "source_url": "https://www.statssa.gov.za/?p=19628",
  "effective_date": "2026-06-30"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zaref-dev-south-african-cpi-ce32d883/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zaref.dev](https://www.zero.xyz/host/zaref.dev/llms.txt)
