mbta-transit.routes
mock data$0.001 / callMBTA Routes List
List Boston MBTA transit routes by type — subway (Red/Orange/Blue/Green lines), commuter rail (Providence, Fairmount, etc.), bus, and ferry. Returns route ID, long name, type label, direction names and destinations, fare class, and brand color. Route IDs returned here are used as filter inputs for mbta-transit.stops, mbta-transit.alerts, and mbta-transit.predictions. Filter by type: 0=Light Rail, 1=Heavy Rail/Subway, 2=Commuter Rail, 3=Bus, 4=Ferry. MassDOT Open Data License, no upstream cost.
Input schema
Sort order: "sort_order" (default MBTA order), "long_name" alphabetical, prefix "-" for descending
Filter by route type: 0=Light Rail, 1=Heavy Rail/Subway, 2=Commuter Rail, 3=Bus, 4=Ferry. Omit for all types.
Maximum number of routes to return (default 50, max 100)
Call via REST
curl -X POST https://unifyapi.pro/api/call/mbta-transit.routes \
-H "Authorization: Bearer uak_live_..." \
-H "Content-Type: application/json" \
-d '{"sort":"<sort>","type":"<type>","limit":0}'