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/estonia-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/estonia-stats-api/v1/table" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/estonia-stats-api/v1/table", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/estonia-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/estonia-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": {
        "table": "IA02",
        "title": "IA02: CONSUMER PRICE INDEX, 1997 = 100 (1998–2025, MONTHS)",
        "variables": [
            {
                "code": "Aasta",
                "text": "Year",
                "n_values": 28,
                "sample_values": [
                    {
                        "code": "1998",
                        "text": "1998"
                    },
                    {
                        "code": "1999",
                        "text": "1999"
                    },
                    {
                        "code": "2000",
                        "text": "2000"
                    },
                    {
                        "code": "2001",
                        "text": "2001"
                    },
                    {
                        "code": "2002",
                        "text": "2002"
                    },
                    {
                        "code": "2003",
                        "text": "2003"
                    }
                ]
            },
            {
                "code": "Kaubagrupp",
                "text": "Commodity group",
                "n_values": 13,
                "sample_values": [
                    {
                        "code": "1",
                        "text": "Total"
                    },
                    {
                        "code": "2",
                        "text": "Food and non-alcoholic beverages"
                    },
                    {
                        "code": "3",
                        "text": "Alcohol and tobacco"
                    },
                    {
                        "code": "4",
                        "text": "Clothing and footwear"
                    },
                    {
                        "code": "5",
                        "text": "Housing"
                    },
                    {
                        "code": "6",
                        "text": "Household goods"
                    }
                ]
            },
            {
                "code": "Kuu",
                "text": "Month",
                "n_values": 12,
                "sample_values": [
                    {
                        "code": "1",
                        "text": "January"
                    },
                    {
                        "code": "2",
                        "text": "February"
                    },
                    {
                        "code": "3",
                        "text": "March"
                    },
                    {
                        "code": "4",
                        "text": "April"
                    },
                    {
                        "code": "5",
                        "text": "May"
                    },
                    {
                        "code": "6",
                        "text": "June"
                    }
                ]
            }
        ]
    },
    "meta": {
…