Naar de inhoud
GET /v1/cpi

UK CPIH (latest month): index, MoM and YoY

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/uk-stats-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/uk-stats-api/v1/cpi" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/uk-stats-api/v1/cpi", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/uk-stats-api/v1/cpi");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/uk-stats-api/v1/cpi",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "base": "Index: 2015=100",
        "index": 139.4,
        "period": "Jan-26",
        "source": "UK Office for National Statistics (dataset cpih01)",
        "country": "United Kingdom",
        "indicator": "CPIH — Consumer Prices Index including owner occupiers' housing costs (overall)",
        "period_iso": "2026-01",
        "change_mom_pct": -0.36,
        "change_yoy_pct": 3.18
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:38.079Z",
        "request_id": "fd383c9f-2e6e-473d-8ba9-76095c4dc9dc"
    },
    "status": "ok",
    "message": "UK CPIH retrieved",
    "success": true
}