Naar de inhoud
GET /v1/cpi

Latest Croatian CPI and inflation

Probeer het live

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

Aangepaste headers (optioneel)
api.oanor.com/croatia-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/croatia-stats-api/v1/cpi" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/croatia-stats-api/v1/cpi", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/croatia-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/croatia-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": "2025 = 100",
        "table": "ME_PS09",
        "latest": {
            "period": "2026M05",
            "index_value": 104.8,
            "change_annual_pct": 5.2,
            "change_monthly_pct": -0.3
        },
        "series": [
            {
                "period": "2026M05",
                "index_value": 104.8,
                "change_annual_pct": 5.2,
                "change_monthly_pct": -0.3
            },
            {
                "period": "2026M04",
                "index_value": 105.1,
                "change_annual_pct": 5.8,
                "change_monthly_pct": 1.6
            },
            {
                "period": "2026M03",
                "index_value": 103.4,
                "change_annual_pct": 4.8,
                "change_monthly_pct": 1.4
            },
            {
                "period": "2026M02",
                "index_value": 102,
                "change_annual_pct": 3.8,
                "change_monthly_pct": 0.3
            },
            {
                "period": "2026M01",
                "index_value": 101.7,
                "change_annual_pct": 3.4,
                "change_monthly_pct": 0.3
            },
            {
                "period": "2025M12",
                "index_value": 101.4,
                "change_annual_pct": 3.3,
                "change_monthly_pct": -0.4
            },
            {
                "period": "2025M11",
                "index_value": 101.9,
                "change_annual_pct": 3.8,
                "change_monthly_pct": 0.6
            },
            {
                "period": "2025M10",
                "index_value": 101.3,
                "change_annual_pct": 3.6,
                "change_monthly_pct": 0.6
            },
            {
                "period": "2025M09",
                "index_value": 100.7,
                "change_annual_pct": 4.2,
                "change_monthly_pct": 0.4
            },
            {
                "period": "2025M08",
                "index_value": 100.3,
                "change_annual_pct": 4.1,
                "change_monthly_pct": 0.1
            },
            {
                "period": "2025M07",
                "index_value": 100.2,
                "change_annual_pct": 4.1,
                "change_monthly_pct": 0.4
            },
            {
                "period": "2025M06",
                "index_value": 99.9,
                "change_annual_pct": 3.7,
                "change_monthly_pct": 0.2
            }
        ],
        "source": "Croatian Bureau of Statistics (DZS)",
        "measure": "Consumer price index",
        "commodity_group": "Total"
    },
    "meta": {
        "timestamp": "2026-06-15T20:41:11.634Z",
        "request_id": "55cfa7fb-a96d-4040-87a5-896275a5c921"
    },
    "status": "ok",
    "message": "CPI retrieved successfully",
    "success": true
}