InfraNode.dev
MCP InfraNode is also available as an MCP server for AI assistants like Claude and ChatGPT.

Road accident API for German cities

How many injury accidents a year brought to a city, and how many of them involved cyclists or pedestrians: the accident atlas of the German statistical offices answers that, and this API makes it available per city in a single GET request. No key, with the reference year attached to every figure.

What data you get

Per city the endpoint returns the reference year, the total number of accidents involving personal injury and the split by accident category: accidents with fatalities, with serious injuries and with slight injuries. It also returns the accidents involving a bicycle, a pedestrian, a car or a motorcycle, plus the official district key. Accidents are counted, not people: one accident with three injured is one case.

  • Reference year
  • Accidents with personal injury in total
  • Accidents with fatalities
  • Accidents with serious injuries
  • Accidents with slight injuries
  • Accidents involving a bicycle
  • Accidents involving a pedestrian
  • Accidents involving a car
  • Accidents involving a motorcycle
  • Official district key

Source: German federal and state statistical offices, accident atlas. License: DL-DE/BY 2.0. Source, license URL and timestamp are included in every API response in the meta and attribution block.

How to fetch it

A simple GET request, no key and no sign-up:

curl https://infranode.dev/api/v1/cities/koeln/accidents

For another city, just put the slug from the cities list into the path.

No key, no sign-up, free.

Covered cities

All cities in the register. The aggregation runs per five digit district key: if a city is not a district of its own, the value applies to the surrounding district. The three accident categories add up exactly to the total because every accident has exactly one category.

Available for all 84 covered cities. The exact per-city status is on the coverage and status page, the full list of cities on the cities overview.

Straight to the largest covered cities: Berlin , Hamburg , München , Köln , Frankfurt am Main , Stuttgart , Düsseldorf , Leipzig , Dortmund , Essen .

Endpoint reference

All parameters, fields and response examples are in the API reference for this endpoint. InfraNode is also available as an MCP server for AI assistants.

Frequently asked questions

Are these accidents or casualties?
Accidents. The category follows the most severe outcome: an accident with one fatality and two slight injuries counts as an accident with fatalities. Casualty counts are not part of this aggregation.
Why are there no individual accidents with coordinates?
The accident atlas carries one point per accident, and InfraNode aggregates that into the yearly total per district. This keeps responses small and prevents individual accidents from being traceable through the API.
Does the value apply to the city or the district?
For district-free cities it applies to the city. Otherwise it is the value of the surrounding district, and the district key in the response makes that explicit.
How current are the numbers?
The accident atlas is published annually. Every response carries the reference year, so the period the numbers cover is always visible.

More data types