Departures API: next departures, live where the operator publishes it
The next departures from a stop or a whole station, with live times, delays, cancellations and skipped stops where the operator publishes realtime, and the timetable where it does not.
The request
GET /v1/stops/{id}/departures with a stop id from stop search. A station id gives the departures from all its platforms. limit is 1 to 50 (default 10).
Request
curl -H "X-API-Key: $TRANSIT_API_KEY" \
"https://dromovia.com/v1/stops/tisseo:stop_area:SA_1707/departures?limit=3"Response (excerpt)
{
"data": {
"stop": {
"id": "tisseo:stop_area:SA_1707",
"name": "Jean Jaurès",
"kind": "station",
"lat": 43.60592336728775,
"lon": 1.4490828635802229,
"timezone": "Europe/Paris"
},
"realtime_status": "live",
"departures": [
{
"stop": {
"id": "tisseo:stop_point:SP_4021",
"name": "Jean Jaurès",
"platform": null
},
"line": {
"id": "tisseo:line:174",
"name": "L9",
"long_name": "L'Union Grande Halle / Saint-Orens Centre Commercial",
"mode": "bus",
"color": "#ff671b"
},
"headsign": "St-Orens Ctre Cial",
"trip_id": "tisseo:2428389",
"service_date": "2026-11-28",
"scheduled_departure": "2026-11-28T14:37:00Z",
"realtime_departure": null,
"delay_seconds": null,
"status": "skipped",
"realtime": true
},
{
"stop": {
"id": "tisseo:stop_point:SP_147",
"name": "Jean Jaurès",
"platform": null
},
"line": {
"id": "tisseo:line:61",
"name": "A",
"long_name": "Basso Cambo / Balma - Gramont",
"mode": "metro",
"color": "#db001b"
},
"headsign": "Basso Cambo",
"trip_id": "tisseo:2323604",
"service_date": "2026-11-28",
"scheduled_departure": "2026-11-28T14:38:24Z",
"realtime_departure": null,
"delay_seconds": null,
"status": "scheduled",
"realtime": false
}
]
},
"sources": [
{
"feed_id": "tisseo",
"licence": "ODbL-1.0",
"licence_url": "https://opendatacommons.org/licenses/odbl/1-0/",
"attribution": "Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr",
"attribution_url": "https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain",
"fetched_at": "2026-11-28T14:37:00Z",
"static_fetched_at": "2026-11-28T14:37:00Z",
"realtime_fetched_at": "2026-11-28T14:37:00Z"
}
]
}What each departure carries
line: name, long name, mode and colour, ready for a badge;headsignandstop.platformwhen the operator publishes them;scheduled_departureand, with realtime,realtime_departureanddelay_seconds(UTC; show them in the network's local time);status:on_time,delayed,early,cancelled,skipped,addedorscheduled.
Timetable API too
Networks without realtime still answer, from the timetable, with every departure marked scheduled. Today 46 networks of 97 are timetable only; the network list says which.
Building a departure board
Poll every 30 to 60 seconds per screen: realtime is refreshed on the server on each operator's own interval (see each network's page), and the per-minute limit of your plan covers many screens. Display the attribution from sources on the board.
Related
- GTFS Realtime API — where the live times come from
- Service alerts API — disruptions to show next to the board
- /getting-started — first request in curl, JavaScript and Python