Vai al contenuto
GET /v1/subjects

Browse the BDL subject tree

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/poland-stats-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "count": 5,
        "total": 5,
        "parent": "K15",
        "subjects": [
            {
                "id": "G186",
                "name": "PRICES IN AGRICULTURE",
                "children": [
                    "P1458",
                    "P1459",
                    "P1460",
                    "P2967",
                    "P2968",
                    "P3155",
                    "P3156",
                    "P3183",
                    "P3415"
                ],
                "has_variables": false
            },
            {
                "id": "G188",
                "name": "AVERAGE RETAIL PRICES OF GOODS AND CONSUMER SERVICES",
                "children": [
                    "P1466",
                    "P1467",
                    "P1468",
                    "P1469",
                    "P1470",
                    "P1471",
                    "P1472",
                    "P1473",
                    "P2917"
                ],
                "has_variables": false
            },
            {
                "id": "G189",
                "name": "AVERAGE RETAIL PRICES OF NON-CONSUMER GOODS",
                "children": [
                    "P1474"
                ],
                "has_variables": false
            },
            {
                "id": "G187",
                "name": "AVERAGE PRODUCER'S PRICES ON DOMESTIC MARKET",
                "children": [
                    "P1461",
                    "P1462",
                    "P1463",
                    "P1464",
                    "P1465"
                ],
                "has_variables": false
            },
            {
                "id": "G405",
                "name": "PRICE INDICES",
                "children": [
                    "P2496",
                    "P2955"
                ],
                "has_variables": false
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:32.161Z",
        "request_id": "fca692fc-cf8f-49c3-915c-76123fc42e07"
    },
    "status": "ok",
    "message": "Subjects retrieved successfully",
    "success": true
}