/v1/subjects
Browse the BDL subject tree
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}