/v1/variable
National time-series for any BDL variable
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/variable" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/poland-stats-api/v1/variable", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/poland-stats-api/v1/variable");
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/variable",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"unit": "POLAND",
"count": 12,
"series": [
{
"year": "2025",
"value": 103.6
},
{
"year": "2024",
"value": 103.6
},
{
"year": "2023",
"value": 111.4
},
{
"year": "2022",
"value": 114.4
},
{
"year": "2021",
"value": 105.1
},
{
"year": "2020",
"value": 103.4
},
{
"year": "2019",
"value": 102.3
},
{
"year": "2018",
"value": 101.6
},
{
"year": "2017",
"value": 102
},
{
"year": "2016",
"value": 99.4
},
{
"year": "2015",
"value": 99.1
},
{
"year": "2014",
"value": 100
}
],
"variable_id": 217230,
"measure_unit_id": 1
},
"meta": {
"timestamp": "2026-06-15T11:14:31.989Z",
"request_id": "589efdb4-1fdf-4f34-b980-be32ae03d394"
},
"status": "ok",
"message": "Variable retrieved successfully",
"success": true
}