GET /api/v1/cities/{slug}/crime-stats
Police crime statistics per city (BKA PKS, Tier A)
Returns a city's police crime statistics per county from the offline- prepared BKA PKS SQLite store in the canonical envelope: per main offence group (e.g. total offences, violent crime, residential burglary) the recorded cases, the frequency per 100,000 inhabitants and the clearance rate in percent, plus the reporting year (reference_year) and version. Licence DL-DE/BY 2.0 (Tier A). Spatial resolution county/county-free city. No upstream in the request path. Blocked/empty values -> null. 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/crime-stats"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/crime-stats");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/crime-stats")
res.raise_for_status()
print(res.json())