GET /api/v1/cities/{slug}/weather-warnings
Official DWD weather warnings per city (Tier A)
Active official weather warnings from the German Weather Service (DWD) for the city, fetched via the keyless Bright Sky alerts API (city matched by coordinates from the city registry). Returns max_level (0 = none, 1-4 = level derived from the CAP severity), count and the individual warnings (start/end as ISO 8601 timestamps). Heat and UV health warnings do NOT count towards max_level and are listed separately in special_warnings. Source: Deutscher Wetterdienst (GeoNutzV).
Parameters
| Name | In | Required | Type | Example | Description |
|---|---|---|---|---|---|
slug | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/cities/hamburg/weather-warnings"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/weather-warnings");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/weather-warnings")
res.raise_for_status()
print(res.json())