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 are served; scheduled timetable times are NOT included. When an update carries an absolute departure time (e.g. Berlin/VBB) it is checked for the future (90 s grace) and sorted ascending; delay-only updates without an absolute time (the norm in the nationwide feed) are served WITH delay_s/delay_min and departure_time/minutes_until = null after the timed entries. stop_id may be parent or platform level (de:AGS:nr or de:AGS:nr:area:platform), both resolve. 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 Example Description
city path yes string berlin
stop_id query yes string de:11000:900003101::6 DELFI stop ID in the pattern de:<AGS>:<id> (checked against an allowlist). Valid ids per city come from GET /api/v1/cities/{slug}/transit, field stop_id. NOT the trip_stop_id of the station boards, which denotes one stop of one train run.

Code samples

curl "https://infranode.dev/api/v1/live/berlin/transit/departures?stop_id=de%3A11000%3A900003101%3A%3A6"

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.