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 = также возвращать рассчитанный украинский летний запрет из-за жары (грузовикам >24 т движение запрещено с 10:00 до 22:00, когда прогнозируемая температура >+28 °C), в разрезе областей. Добавляется автоматически, когда Украина входит в область запроса (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.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"
Обновлено