Aller au contenu
GET /v1/series

Any Latvian PxWeb table as a time-series

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/latvia-stats-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "path": "VEK/PC/PCI/PCI021m",
        "count": 12,
        "title": "Consumer price indices by commodity groups (2025=100) by Commodity group (ECOICOP ver.2) and Time period",
        "series": [
            {
                "value": 103.8,
                "period": "2026M05",
                "period_label": "2026M05"
            },
            {
                "value": 103.3,
                "period": "2026M04",
                "period_label": "2026M04"
            },
            {
                "value": 102.7,
                "period": "2026M03",
                "period_label": "2026M03"
            },
            {
                "value": 100.8,
                "period": "2026M02",
                "period_label": "2026M02"
            },
            {
                "value": 100.5,
                "period": "2026M01",
                "period_label": "2026M01"
            },
            {
                "value": 100.5,
                "period": "2025M12",
                "period_label": "2025M12"
            },
            {
                "value": 100.6,
                "period": "2025M11",
                "period_label": "2025M11"
            },
            {
                "value": 100.9,
                "period": "2025M10",
                "period_label": "2025M10"
            },
            {
                "value": 100.5,
                "period": "2025M09",
                "period_label": "2025M09"
            },
            {
                "value": 100.3,
                "period": "2025M08",
                "period_label": "2025M08"
            },
            {
                "value": 100.5,
                "period": "2025M07",
                "period_label": "2025M07"
            },
            {
                "value": 100.4,
                "period": "2025M06",
                "period_label": "2025M06"
            }
        ],
        "constrained": {
            "ECOICOP_V2": {
                "pos": 0,
                "code": "0",
                "label": "GOODS AND SERVICES - TOTAL"
            },
            "ContentsCode": {
                "pos": 0,
                "code": "EliminatedValue",
                "label": "Consumer price indices by commodity groups (2025=100)"
            }
        },
        "time_dimension": "TIME"
    },
    "meta": {
        "timestamp": "2026-06-15T20:41:18.273Z",
        "request_id": "3aff8482-f100-4d6f-9e2f-119f0aa66ae5"
    },
    "status": "ok",
    "message": "Series retrieved successfully",
    "success": true
}