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-separated
See the Routes & Stations guide.
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.
List static routes