SDK Reference
mta.routes.list() — list subway and bus routes
Reference for GET /api/v1/routes. List the catalog of subway and bus routes, with names, colors, and transit mode.
GET
List static routes
Returns the catalog of routes in the hosted stops snapshot. Pass a comma-separatedDocumentation Index
Fetch the complete documentation index at: https://mtaapi.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
modes filter (for example subway,bus) to scope the list, or omit it for every mode.
Each entry is a Route plus a mode: { id, shortName?, longName?, color?, textColor?, type?, mode }. Use it to populate a route picker or hydrate route metadata client-side.
SDK
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Comma-separated transit modes to include, such as subway,bus.
Previous
Stops by IDReference for GET /api/v1/stops. Resolve multiple stop IDs in a single request, preserving request order, optionally with served routes.
Next
List static routes