GET /api/v1/cities/{slug}/water-level
Water level per city (PEGELONLINE, Tier A, partial coverage)
Returns the current water level of the nearest station to a city from PEGELONLINE in the canonical envelope. Partial coverage: only cities on federal waterways have a station, otherwise it returns 200 with source_status="no_data" (no 5xx). 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/water-level"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/water-level");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/water-level")
res.raise_for_status()
print(res.json())