Aller au contenu
GET /v1/table

Table metadata (variables and value codes)

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/table" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/latvia-stats-api/v1/table", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/latvia-stats-api/v1/table");
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/table",
    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",
        "title": "Consumer price indices and changes by commodity groups (ECOICOP ver.2) by Commodity group (ECOICOP ver.2), Indicator and Time period",
        "variables": [
            {
                "code": "ECOICOP_V2",
                "text": "Commodity group (ECOICOP ver.2)",
                "time": false,
                "n_values": 375,
                "sample_values": [
                    {
                        "code": "0",
                        "text": "GOODS AND SERVICES - TOTAL"
                    },
                    {
                        "code": "20.01",
                        "text": "Goods - total"
                    },
                    {
                        "code": "20.02",
                        "text": "Non-food goods"
                    },
                    {
                        "code": "20.03",
                        "text": "Services"
                    },
                    {
                        "code": "20.04",
                        "text": "Food, alcoholic beverages and tobacco"
                    },
                    {
                        "code": "01",
                        "text": "Food and non-alcoholic beverages"
                    }
                ]
            },
            {
                "code": "ContentsCode",
                "text": "Indicator",
                "time": false,
                "n_values": 6,
                "sample_values": [
                    {
                        "code": "PCI021m2",
                        "text": "2010=100"
                    },
                    {
                        "code": "PCI021m3",
                        "text": "2015=100"
                    },
                    {
                        "code": "PCI021m",
                        "text": "2025=100"
                    },
                    {
                        "code": "PCI021m4",
                        "text": "12-month average over the previous 12-month average"
                    },
                    {
                        "code": "PCI021m5",
                        "text": "% over the previous period"
                    },
                    {
                        "code": "PCI021m6",
                        "text": "% over the corresponding period of previous year"
                    }
                ]
            },
            {
                "code": "TIME",
                "text": "Time period",
                "time": true,
                "n_values": 317,
                "sample_values": [
                    {
                        "code": "2000M01",
                        "text": "2000M01"
                    },
                    {
                        "code": "2000M02",
                        "text": "2000M02"
                    },
                    {
                        "code": "2000M03",
                        "text": "2000M03"
                 
…