Yuk mashinalari harakati taqiqlari API Online
European truck driving restrictions for one or more countries, including seasonal and holiday bans. Each ban carries its restriction type (General / Local / Sunday / Holiday / Seasonal), the exact scope or roads affected and the minimum weight, and each country a live status computed in its own timezone (active_window / next_window), plus a covered_countries list. ?country= accepts a comma-separated list of up to 3 codes; it is optional in v1 and required in v2. The response also reports `returned`, `total_available` and `truncated` so a capped answer is never mistaken for a complete one, plus `window` {from,to,days} naming the exact date range it covers. v1 always covers the next 7 days; v2 additionally accepts ?date= / ?date_from= + ?date_to= for any window up to 92 days, beginning at most 7 days in the past (this is a forward-looking calendar — older history is refused with 400 date_too_old) and running forward to 2028-12-31.
GET https://nakordoni.eu/api/v2/data/truck-bans
— kvota sinfi: cheap
| Parametr | Tavsif |
|---|---|
country | ISO-2 mamlakat kodi yoki vergul bilan ajratilgan, eng ko‘pi 3 ta elementli ro‘yxat, masalan RO yoki DE,RO. v2 da majburiy; 3 tadan ortig‘i 400 too_many_countries bilan rad etiladi — so‘rovni bo‘ling. |
date | YYYY-MM-DD formatida bitta kun. date_from/date_to bilan birga ishlatilmaydi. |
date_from | Oyna boshlanishi (YYYY-MM-DD, shu kun bilan). Faqat date_to berilsa, standart — bugun. |
date_to | Oraliqning oxiri (YYYY-MM-DD, shu kun bilan birga). Standart qiymat: date_from + 7 kun. Oraliq eng ko‘pi 92 kunni qamrab olishi mumkin — uzunrog‘i jimgina qisqartirilmasdan, 400 date_range_too_long bilan rad etiladi. Bu — oldinga qaraydigan taqvim: oraliq eng ko‘pi 7 kun o‘tmishda boshlanishi mumkin (undan nariga — so‘rash mumkin bo‘lgan eng erta sanani ko‘rsatuvchi 400 date_too_old) va oldinga 2028-12-31 gacha davom etadi. Tarix taqdim etilmaydi — mahsulot bundan buyon nima amal qilishini aytadi, o‘tgan bahorda nima amal qilganini emas. |
lang | Mamlakat nomlari va xulosa uchun til kodi (standart en) |
include_ua_heat | 1 = Ukrainaning hisoblangan yozgi issiqlik taqiqini ham qaytarish (bashorat qilingan harorat >+28 °C bo‘lganda 24 t dan og‘ir yuk mashinalariga 10:00-22:00 oralig‘ida taqiq), viloyatlar kesimida. Ukraina so‘rov qamroviga kirganda (country=UA) avtomatik qo‘shiladi — bu bayroq uni faqat boshqa mamlakat bilan cheklangan so‘rovga qo‘shadi. U ob-havo bashoratidan hisoblanadi, taqiqlar taqvimidan o‘qilmaydi, shu sababli sizning sana oralig‘ingizning faqat bashorat yetadigan qismiga javob beradi: hech qachon o‘tmishga va hech qachon ua_heat_ban.forecast_horizon dan nariga emas (taxminan bir hafta oldinga). Butunlay shu ufqdan tashqarida joylashgan oraliq issiqlik satrlarini qaytarmaydi va buni summary da bildiradi — bu taqiq bo‘lmaydi degani emas |
Javob maydonlari — javob konvertidagi data obyekti ichida. [] ro‘yxatni bildiradi, ya’ni data.items[].name har bir elementning name maydonidir. Qiymatimiz bo‘lmagan maydon null bo‘ladi, umuman bo‘lmaydi yoki bo‘sh ro‘yxat qaytadi — o‘rniga hech qachon soxta qiymat qo‘ymaymiz.
| Maydon | Tavsif |
|---|---|
data.current_bans[] | Bans in force right now, same fields as upcoming_bans. is_ban_active is the quick boolean for 'may a truck drive at this moment'. |
data.upcoming_bans[].date | Ban day, with time_from and time_until in local time. |
data.upcoming_bans[].country_code | Country the ban applies in, with country_name. |
data.upcoming_bans[].restriction_type | What kind of ban it is (weekend, holiday, heat…), with restriction_details in the requested language. |
data.upcoming_bans[].min_weight_tons | Weight from which the ban bites — a lighter truck is unaffected. |
data.upcoming_bans[].details_url | Official source page for that ban. |
data.bans_by_country | The same bans grouped by ISO-2 country, for rendering per country. |
data.window | The period covered: from, to, days and whether you requested it. |
data.total_bans | Bans in the window, with returned, total_available and truncated — true means narrow the window or page. |
data.covered_countries | Countries we track bans for; countries_not_covered names the ones you asked about that we do not. |
data.empty_reason | v2 only, present only on an empty answer for countries we cover: no_bans_in_window = we track these countries and none has a ban in your window (a correct "no ban", not missing data). |
data.summary | One-sentence plain-language summary, ready to show a driver. as_of is when it was assembled. |
data.ua_heat_ban | Ukraine's computed heat ban (see include_ua_heat): per-oblast status plus forecast_horizon, the last date the underlying weather forecast reaches. Heat rows are never returned past that date, so compare it with data.window before reading an empty answer as 'no ban'. |
curl "https://nakordoni.eu/api/v2/data/truck-bans?country=DE,RO&date_from=2026-12-20&date_to=2027-01-06" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
Yangilandi