GET /api/v1/cities/{slug}/road-events
Inner-city roadworks and closures per city (Tier A)
Returns a city's inner-city roadworks and closures from the keyless per-city sources (Berlin VIZ, Hamburg, Cologne, Munich, MobiData BW, Dortmund, SPERRINFOSYS Saxony) in the canonical envelope. Partial coverage (curated connectors): only berlin, hamburg, koeln, muenchen, stuttgart, dortmund, bremen, dresden, leipzig return data. A city without a connector honestly responds with 200 source_status="not_covered", data=null and meta.covered_cities (the list of covered cities), clearly distinct from no_data (connector present, but currently no events). 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/road-events"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/road-events");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/road-events")
res.raise_for_status()
print(res.json())