GET /api/v1/cities/{slug}/accidents
Road traffic accidents per city (accident atlas, Tier A)
Returns a city's annual accident aggregate from the offline-prepared accident-atlas SQLite store in the canonical envelope: total plus a breakdown by accident category (fatal/serious/slight) and by participant type (bicycle/pedestrian/car/motorcycle). Spatial resolution county/ county-free city. No upstream in the request path. Disabled -> 200 source_status="disabled". Batch not yet run -> 200 source_status="not_ingested" (never 5xx).
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/cities/hamburg/accidents"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/accidents");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/accidents")
res.raise_for_status()
print(res.json())