Departures
Edit on GitHubGET /v1/departures/{station}. The live departure board. 3 units.
| Parameter | Default | Meaning |
|---|---|---|
limit |
15 | 1–100 |
from_time |
now | Only trains leaving at or after this time |
to_time |
— | Only trains leaving at or before this time |
calling_at |
— | Only trains that stop here later on |
Late trains stay on the board until their expected time passes.
type Departure = {
train: Train;
service_class: ServiceClass;
origin: Place;
destination: Place;
departs: Time; // from the station you asked about
platform: Platform;
calling_points: { station: Place; time: Time; platform: Platform }[];
destination_arrival: string | null; // booked arrival at its destination
coaches: number | null; // from Darwin, when it says
formation_changes: ({ type: "divides"; at: Place } | { type: "joins"; at: Place })[];
formed_from: { headcode: string; origin: Place; expected_arrival: string | null } | null;
delay_reason: string | null;
advertised: boolean; // false: Darwin asks for this stop to be kept off boards
};Example
curl 'https://api.traini.ac/v1/departures/Stroud?limit=1'{
"type": "ok",
"request": {
"station": { "query": "Stroud", "resolution": { "type": "station", "crs": "STD", "name": "Stroud" } },
"calling_at": null, "from_time": null, "to_time": null, "limit": 1
},
"data": [
{
"train": { "id": "671L50MK02", "uid": "GW001", "headcode": "1L50",
"operator": { "code": "GW", "name": "Great Western Railway" } },
"service_class": "passenger",
"origin": { "type": "station", "crs": "GCR", "name": "Gloucester" },
"destination": { "type": "station", "crs": "PAD", "name": "London Paddington" },
"departs": {
"scheduled": "2026-10-05T13:00:00+01:00",
"estimate": { "type": "forecast", "at": "2026-10-05T13:05:00+01:00", "source": "darwin" },
"delay_minutes": 5
},
"platform": { "type": "known", "number": "1", "source": "forecast" },
"calling_points": [
{ "station": { "type": "station", "crs": "KEM", "name": "Kemble" },
"time": { "scheduled": "2026-10-05T13:13:00+01:00", "estimate": { "type": "no_information" }, "delay_minutes": null },
"platform": { "type": "unknown" } },
…
],
"destination_arrival": "2026-10-05T14:26:00+01:00",
"coaches": null,
"formation_changes": [],
"formed_from": null,
"delay_reason": null,
"advertised": true
}
],
"generated_at": "2026-10-05T12:00:00+01:00"
}