GET /api/v1/cities/{slug}/vehicle-registrations
Car stock and electric share per city (KBA, Tier A)
Returns a city's car stock and electric share from the offline-prepared KBA SQLite store in the canonical envelope. The spatial resolution is the registration district (= county or county-free city) and is honestly reported via district/district_key. No upstream in the request path; the request only reads the prepared store. 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/vehicle-registrations"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/vehicle-registrations");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/vehicle-registrations")
res.raise_for_status()
print(res.json())