ट्रक ड्राइविंग प्रतिबंध 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
— कोटा श्रेणी: cheap
| पैरामीटर | विवरण |
|---|---|
country | ISO-2 देश कोड, या अल्पविराम से अलग की गई अधिकतम 3 की सूची, जैसे RO या DE,RO। v2 में अनिवार्य; 3 से अधिक होने पर 400 too_many_countries के साथ अस्वीकार किया जाता है — अनुरोध को विभाजित करें। |
date | YYYY-MM-DD प्रारूप में एक दिन। date_from/date_to के साथ संयोजित नहीं किया जा सकता। |
date_from | विंडो का प्रारंभ (YYYY-MM-DD, सहित)। यदि केवल date_to दिया गया हो तो डिफ़ॉल्ट आज है। |
date_to | अवधि का अंत (YYYY-MM-DD, सहित)। डिफ़ॉल्ट रूप से date_from + 7 दिन। अवधि अधिकतम 92 दिन तक हो सकती है — इससे लंबी सीमा चुपचाप काटी नहीं जाती, बल्कि 400 date_range_too_long के साथ अस्वीकार की जाती है। यह आगे की ओर देखने वाला कैलेंडर है: अवधि अधिकतम 7 दिन अतीत में शुरू हो सकती है (उससे आगे 400 date_too_old, जिसमें वह सबसे पुरानी तिथि बताई जाती है जो आप माँग सकते हैं) और आगे 2028-12-31 तक चलती है। इतिहास नहीं दिया जाता — उत्पाद बताता है कि अब से क्या लागू है, यह नहीं कि पिछले वसंत में क्या लागू था। |
lang | देशों के नामों और सारांश के लिए भाषा कोड (डिफ़ॉल्ट en) |
include_ua_heat | 1 = यूक्रेन का परिकलित ग्रीष्मकालीन ताप प्रतिबंध भी लौटाएँ (पूर्वानुमानित तापमान >+28 °C होने पर 24 t से भारी ट्रकों पर 10:00-22:00 तक प्रतिबंध), ओब्लास्ट के अनुसार। जब यूक्रेन अनुरोध के दायरे में हो (country=UA) तो यह स्वतः शामिल होता है — यह फ़्लैग इसे केवल किसी अन्य देश तक सीमित अनुरोध में जोड़ता है। यह मौसम पूर्वानुमान से परिकलित होता है, प्रतिबंध कैलेंडर से नहीं पढ़ा जाता, इसलिए यह आपकी तिथि अवधि के केवल उसी हिस्से का उत्तर देता है जहाँ तक पूर्वानुमान पहुँचता है: कभी अतीत के लिए नहीं और कभी ua_heat_ban.forecast_horizon (लगभग एक सप्ताह आगे) से आगे नहीं। पूरी तरह इस क्षितिज से परे पड़ने वाली अवधि कोई ताप पंक्ति नहीं लौटाती और summary में यह बता देती है — इसका अर्थ यह नहीं कि प्रतिबंध नहीं लगेगा |
रिस्पॉन्स फ़ील्ड — रिस्पॉन्स एनवेलप के data ऑब्जेक्ट के भीतर। [] सूची दर्शाता है, यानी data.items[].name हर एलिमेंट का name फ़ील्ड है। जिस फ़ील्ड का मान हमारे पास नहीं है वह null होता है, आता ही नहीं या खाली सूची होती है — प्लेसहोल्डर कभी नहीं।
| फ़ील्ड | विवरण |
|---|---|
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.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"
अपडेट किया गया