Skip to content
GET /v1/cpi/series

Historical CPI index + YoY for a group

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/denmark-stats-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest 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",
  
…