SDK Reference
mta.subway.routeStations() — ordered stations on a route
Reference for GET /api/v1/subway/routes//stations. Get the ordered stations a subway route serves, optionally hydrated with arrivals.
GET
Get ordered subway stations for a route
Returns the ordered stations a subway route serves. Pass the route in the path (for exampleDocumentation Index
Fetch the complete documentation index at: https://mtaapi.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
L) and an optional direction to order stations in the rider’s direction of travel. Set includeArrivals=true to attach live arrivals to each station (bounded by limitArrivals and limitStops).
The response is a RouteStopsResponse: { route, mode, directions: [{ direction, headsigns?, stops: [...] }] }, where each stop carries an optional arrivals array when hydrated.
SDK
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Minimum string length:
1Query Parameters
Minimum string length:
1Required range:
1 <= x <= 10Maximum total stops to hydrate when includeArrivals=true.
Required range:
1 <= x <= 20Previous
Bus Arrival BoardReference for GET /api/v1/bus/arrival-board. Find nearby bus stops and group their upcoming arrivals by route in a single request.
Next
Get ordered subway stations for a route