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 example
See the Routes & Stations guide.
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 <= 20Get ordered subway stations for a route