/v1/search
Search BDL variables by name
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/poland-stats-api/v1/search" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/poland-stats-api/v1/search", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/poland-stats-api/v1/search");
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/search",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"count": 25,
"query": "unemployment",
"total": 172563,
"variables": [
{
"id": 6,
"name": "total",
"level": 6,
"subject_id": "P1312",
"measure_unit_id": 26
},
{
"id": 7,
"name": "males",
"level": 6,
"subject_id": "P1312",
"measure_unit_id": 26
},
{
"id": 8,
"name": "females",
"level": 6,
"subject_id": "P1312",
"measure_unit_id": 26
},
{
"id": 34032,
"name": "total — total",
"level": 6,
"subject_id": "P1313",
"measure_unit_id": 26
},
{
"id": 9,
"name": "total — under 25 years",
"level": 6,
"subject_id": "P1313",
"measure_unit_id": 26
},
{
"id": 10,
"name": "total — 25-29",
"level": 6,
"subject_id": "P1313",
"measure_unit_id": 26
},
{
"id": 11,
"name": "total — 30-39",
"level": 6,
"subject_id": "P1313",
"measure_unit_id": 26
},
{
"id": 12,
"name": "total — 40-59",
"level": 6,
"subject_id": "P1313",
"measure_unit_id": 26
},
{
"id": 259865,
"name": "total — 40-49",
"level": 6,
"subject_id": "P1313",
"measure_unit_id": 26
},
{
"id": 259862,
"name": "total — 50-59",
"level": 6,
"subject_id": "P1313",
"measure_unit_id": 26
},
{
"id": 13,
"name": "total — 60 and more",
"level": 6,
"subject_id": "P1313",
"measure_unit_id": 26
},
{
"id": 34033,
"name": "males — total",
"level": 6,
"subject_id": "P1313",
"measure_unit_id": 26
},
{
"id": 20016,
"name": "males — under 25 years",
"level": 6,
"subject_id": "P1313",
"measure_unit_id": 26
},
{
"id": 20017,
"name": "males — 25-29",
"level": 6,
"subject_id": "P1313",
"measure_unit_id": 26
},
{
"id": 20018,
…