GET /api/v1/cities/{slug}/transit
Public-transit stops per city (DELFI and HVV GTFS)
Normalized public-transit stops for a city from the nationwide DELFI GTFS feed or the HVV feed in the canonical envelope. The data is prepared offline and kept as a per-city snapshot, so the request responds quickly without parsing the feed per request. Special cases: if both sources are disabled it returns 200 with source_status="disabled"; if no snapshot exists yet it returns 200 with source_status="not_ingested" and empty data, never a 5xx.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/cities/hamburg/transit"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/transit");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/transit")
res.raise_for_status()
print(res.json())