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 (filtered via the municipality warncell = "1"+AGS). Returns max_level (0 = none, 1-4 = DWD level), count and the individual warnings. Heat/special warnings (DWD code >= 50) do NOT count towards max_level and are listed separately in special_warnings. Source: Deutscher Wetterdienst (GeoNutzV).
Parameters
| Name | In | Required | Type | 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())