SDK Reference
mta.stops.byIds() — batch stop lookup
Reference for GET /api/v1/stops. Resolve multiple stop IDs in a single request, preserving request order, optionally with served routes.
GET
Get stops by ID
Resolves many stops at once. 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.
ids list (for example A27,L06,308214) to hydrate a saved-stops list or a map viewport without one request per ID.
The response preserves one result per requested ID, in order: { requestedId, found, stop?, servedRoutes? }. When found is false, the ID didn’t resolve. Set includeRoutes=true to attach servedRoutes for each resolved stop. For nearby/geo search, use the Stops reference.
SDK
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Comma-separated stop IDs, such as A27,L06,308214.
Minimum string length:
1Include route metadata for each found stop.
Get stops by ID