Skip to content
GET /v1/series

Any INE time-series by code

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/spain-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/spain-stats-api/v1/series" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/spain-stats-api/v1/series", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/spain-stats-api/v1/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/spain-stats-api/v1/series",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "name": "National. Overall index. Index.",
        "unit": 133,
        "count": 12,
        "serie": "IPC251852",
        "observations": [
            {
                "year": 2025,
                "value": 119.942,
                "period": 12,
                "date_iso": "2025-11-30"
            },
            {
                "year": 2025,
                "value": 119.532,
                "period": 11,
                "date_iso": "2025-10-31"
            },
            {
                "year": 2025,
                "value": 119.301,
                "period": 10,
                "date_iso": "2025-09-30"
            },
            {
                "year": 2025,
                "value": 118.485,
                "period": 9,
                "date_iso": "2025-08-31"
            },
            {
                "year": 2025,
                "value": 118.824,
                "period": 8,
                "date_iso": "2025-07-31"
            },
            {
                "year": 2025,
                "value": 118.777,
                "period": 7,
                "date_iso": "2025-06-30"
            },
            {
                "year": 2025,
                "value": 118.867,
                "period": 6,
                "date_iso": "2025-05-31"
            },
            {
                "year": 2025,
                "value": 118.077,
                "period": 5,
                "date_iso": "2025-04-30"
            },
            {
                "year": 2025,
                "value": 117.997,
                "period": 4,
                "date_iso": "2025-03-31"
            },
            {
                "year": 2025,
                "value": 117.26,
                "period": 3,
                "date_iso": "2025-02-28"
            },
            {
                "year": 2025,
                "value": 117.191,
                "period": 2,
                "date_iso": "2025-01-31"
            },
            {
                "year": 2025,
                "value": 116.733,
                "period": 1,
                "date_iso": "2024-12-31"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:35.739Z",
        "request_id": "c9279e81-a4c9-4a73-b539-3cbcfdaacf88"
    },
    "status": "ok",
    "message": "Series retrieved successfully",
    "success": true
}