Skip to main content
GET
Get ordered subway stations for a route
Returns the ordered stations a subway route serves. Pass the route in the path (for example 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

See the Routes & Stations guide.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

route
string
required
Minimum string length: 1

Query Parameters

direction
string
Minimum string length: 1
includeArrivals
boolean
limitArrivals
number
Required range: 1 <= x <= 10
limitStops
number

Maximum total stops to hydrate when includeArrivals=true.

Required range: 1 <= x <= 20
includeRaw
boolean

Response

200 - application/json

Response for status 200

route
object
required
mode
enum<string>
required
Available options:
subway,
bus
directions
object[]
required