GET /api/v1/live/{city}/traffic-flow
Live traffic flow per city (Mobilithek DATEX-II)
Returns a city's minute-fresh traffic flow from the Mobilithek (DATEX-II) in the live envelope. The meta block additionally carries as_of (data timestamp) and refresh_seconds (update cadence). As long as the certificate and subscription are not set up -> 200 source_status="disabled" (never 5xx); no data packet -> 200 source_status="no_data".
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
city | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/live/example/traffic-flow"const res = await fetch("https://infranode.dev/api/v1/live/example/traffic-flow");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/live/example/traffic-flow")
res.raise_for_status()
print(res.json()) Try it
No live console is available for this endpoint. It is an operational or demo operation (for example a forced error or key mint) and is only documented here. Use the code samples above to call it directly.