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 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.
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 <= 20Previous
RoutesReference for GET /api/v1/routes. List the catalog of subway and bus routes, with names, colors, and transit mode.
Next
Get ordered bus stops for a route