/v1/cpi/series
Historical CPI index + YoY for a group
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/denmark-stats-api/v1/cpi/series" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/denmark-stats-api/v1/cpi/series", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/denmark-stats-api/v1/cpi/series");
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/denmark-stats-api/v1/cpi/series",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"base": "2015=100",
"count": 24,
"series": [
{
"index": 117.8,
"period": "2024M01",
"period_iso": "2024-01",
"change_yoy_pct": 1.2
},
{
"index": 118.4,
"period": "2024M02",
"period_iso": "2024-02",
"change_yoy_pct": 0.8
},
{
"index": 118.4,
"period": "2024M03",
"period_iso": "2024-03",
"change_yoy_pct": 0.9
},
{
"index": 118.5,
"period": "2024M04",
"period_iso": "2024-04",
"change_yoy_pct": 0.8
},
{
"index": 118.5,
"period": "2024M05",
"period_iso": "2024-05",
"change_yoy_pct": 2.2
},
{
"index": 118.5,
"period": "2024M06",
"period_iso": "2024-06",
"change_yoy_pct": 1.8
},
{
"index": 119.8,
"period": "2024M07",
"period_iso": "2024-07",
"change_yoy_pct": 1.1
},
{
"index": 119.3,
"period": "2024M08",
"period_iso": "2024-08",
"change_yoy_pct": 1.4
},
{
"index": 118.9,
"period": "2024M09",
"period_iso": "2024-09",
"change_yoy_pct": 1.3
},
{
"index": 119.6,
"period": "2024M10",
"period_iso": "2024-10",
"change_yoy_pct": 1.6
},
{
"index": 119.2,
"period": "2024M11",
"period_iso": "2024-11",
"change_yoy_pct": 1.6
},
{
"index": 118.9,
"period": "2024M12",
"period_iso": "2024-12",
"change_yoy_pct": 1.9
},
{
"index": 119.6,
"period": "2025M01",
"period_iso": "2025-01",
"change_yoy_pct": 1.5
},
{
"index": 120.8,
"period": "2025M02",
"period_iso": "2025-02",
"change_yoy_pct": 2
},
{
"index": 120.2,
"period": "2025M03",
"period_iso": "2025-03",
"change_yoy_pct": 1.5
},
{
"index": 120.3,
"period": "2025M04",
"period_iso": "2025-04",
"change_yoy_pct": 1.5
},
{
"index": 120.4,
"period": "2025M05",
…