SDK Reference
mta.subway.arrivalBoard() — nearby subway departure board
Reference for GET /api/v1/subway/arrival-board. Find nearby subway stations and group their upcoming arrivals by direction in a single request.
GET
Get a nearby subway arrival board
Returns the nearest subway stations to aDocumentation Index
Fetch the complete documentation index at: https://mtaapi.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
lat / lon, with each station’s upcoming arrivals already grouped by direction. It combines nearby-station discovery and arrivals into one request — ideal for a lobby departure board or a “stations near me” screen.
Control the board with limitStations (max 20, default 5) and limitArrivals per direction (max 10, default 3). Pass an optional route to restrict every station to a single line. Each entry is { station, distanceMeters, directions: [{ direction, headsign?, arrivals[] }] }.
SDK
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Required range:
-90 <= x <= 90Required range:
-180 <= x <= 180Minimum string length:
1Required range:
x >= 1Required range:
1 <= x <= 20Required range:
1 <= x <= 10Previous
Subway Route StationsReference for GET /api/v1/subway/routes/{route}/stations. Get the ordered stations a subway route serves, optionally hydrated with arrivals.
Next
Get a nearby subway arrival board