InfraNode.dev
MCP InfraNode is also available as an MCP server for AI assistants like Claude and ChatGPT.

GET /api/v1/live/{city}/transit/departures

Live public-transit departures per stop with delay (GTFS-RT, Tier B)

Returns a stop's live departures with current delay from the GTFS-RT feed (gtfs.de or Mobilithek-DELFI, CC-BY-SA = Tier B) in the live envelope (meta with as_of and refresh_seconds=45, the poller cadence). The request path reads ONLY from Redis: a background poller parses the feed once per cadence, so no 68 MB feed is parsed per request. RT-only semantics: only trips with a realtime update AND an absolute departure time are served; scheduled timetable times are NOT included. Past departures (older than a 90 s grace) and entries without a usable time are dropped; the remaining departures are sorted ascending by time (soonest first). meta additionally exposes raw_updates_total and filtered_out (honest raw counts, no silent truncation). Toggle off -> 200 source_status="disabled"; no update in Redis or everything filtered out -> 200 source_status="no_data"; invalid stop_id -> 400. Live data only, kept in the Redis cache (Tier B).

Parameters

Name In Required Type Description
city path yes string
stop_id query yes string DELFI stop ID in the pattern de:<AGS>:<id> (checked against an allowlist).

Code samples

curl "https://infranode.dev/api/v1/live/example/transit/departures?stop_id=example"

Try it

No live console is available for this endpoint. It is an operational or demo operation (for example a forced error) and is only documented here. Use the code samples above to call it directly.