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. 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())