GET /api/v1/cities/{slug}/flood
Flood warning levels per city (LHP, Tier A)
Returns the current flood warning levels of a city's curated gauges from the German cross-state flood portal (LHP) in the canonical envelope. The attribution carries the mandatory "Stand:" timestamp. Tier A. Partial coverage (curated gauges per city): only berlin, bonn, dresden, duesseldorf, duisburg, erfurt, essen, frankfurt-am-main, hamburg, koeln, leipzig, mainz, muenchen, nuernberg return data. Other registered cities honestly respond with 200 source_status="not_covered", data=null and meta.covered_cities (the list of covered cities). Other special cases: disabled -> 200 source_status="disabled"; dead upstream with no cache -> 503 with a hint.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/cities/hamburg/flood"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/flood");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/flood")
res.raise_for_status()
print(res.json())