GET /api/v1/cities/{slug}/fire-danger
Forest-fire and grassland-fire danger index per city (DWD, Tier A)
Returns the forest-fire danger index (level 1 very low to 5 very high) and the grassland-fire index of the nearest DWD station to a city in the canonical envelope. The index is STATION-based, NOT city-precise (station_name and distance_km in the payload identify the station). Attribution with modified=true (GeoNutzV). Tier A. Disabled -> 200 source_status="disabled".
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/cities/hamburg/fire-danger"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/fire-danger");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/fire-danger")
res.raise_for_status()
print(res.json())