UnifyAPI
← Back to catalog

mbta-transit.routes

mock data$0.001 / call

MBTA 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.

Travelprovider: Mbta Transit#mbta-transit#travel

Input schema

sort

Sort order: "sort_order" (default MBTA order), "long_name" alphabetical, prefix "-" for descending

string
type

Filter by route type: 0=Light Rail, 1=Heavy Rail/Subway, 2=Commuter Rail, 3=Bus, 4=Ferry. Omit for all types.

string
limit

Maximum number of routes to return (default 50, max 100)

integer

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}'

Try it

Paste a UnifyAPI key (create one in the dashboard) and run a real call.