mbta-transit.predictions
mock data$0.002 / callMBTA Real-Time Predictions
Get real-time arrival and departure predictions for Boston MBTA stops — live vehicle tracking data for subway, bus, commuter rail, and ferry. Returns predicted arrival_time, departure_time (ISO 8601), direction, status (e.g. "Boarding"), schedule relationship (SCHEDULED/SKIPPED/NO_DATA), and associated route, stop, trip, and vehicle IDs. Requires at least one filter: stop ID (e.g. "place-sstat" for South Station, "place-pktrm" for Park Street) or route ID. Use direction_id to filter inbound (1) vs outbound (0). MassDOT Open Data License, real-time live data, no upstream cost.
Input schema
Stop or station ID for arrival/departure predictions (e.g. "place-sstat" for South Station, "place-pktrm" for Park Street). Use mbta-transit.stops to find stop IDs.
Maximum number of predictions to return (default 10, max 50). Each prediction is one scheduled stop for one vehicle.
Route ID to get predictions for (e.g. "Red", "Green-B", "1"). At least one of stop or route is required.
Filter by direction: 0=outbound (away from downtown/terminus), 1=inbound (toward downtown/terminus). See mbta-transit.routes for direction names.
Call via REST
curl -X POST https://unifyapi.pro/api/call/mbta-transit.predictions \
-H "Authorization: Bearer uak_live_..." \
-H "Content-Type: application/json" \
-d '{"stop":"<stop>","limit":0,"route":"<route>","direction_id":0}'