Ir al contenido
GET /v1/cpi

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

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/uk-stats-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}