SDK Reference
mta.bus.routeStops() — ordered stops on a route
Reference for GET /api/v1/bus/routes//stops. Get the ordered stops a bus route serves, optionally hydrated with arrivals.
GET
Get ordered bus stops for a route
Returns the ordered stops a bus route serves. Pass the route in the path (for example
See the Routes & Stations guide.
M23) and an optional direction filter. Set includeArrivals=true to attach live arrivals to each stop (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 bus stops for a route