GET /api/v1/cities/{slug}/stations
City station catalog, all DB stations (StaDa, Tier A)
List of ALL DB stations within the city (mapped via the official municipality key: StaDa municipalityCode == city ags), not just the long-distance main station. Each carries eva (EVA number, feeds GET /stations/{eva}/departures), name, category (1-7), lat, lon, zip. Source: Deutsche Bahn AG / StaDa (CC BY 4.0). Without credentials OR toggle off -> 200 source_status="disabled"; no DB station in the city -> 200 source_status="no_data". Full coverage (all cities).
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/cities/hamburg/stations"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/stations");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/stations")
res.raise_for_status()
print(res.json())