{"api":{"id":"api_56f03a48471c6a64eb27efc2","slug":"mbta-stops-and-predictions","name":"MBTA Stops and Predictions API","description":"Boston MBTA stops and live departures. Give a stop to get its next predicted arrivals and departures by route and direction, or give a point or a mode to list stops with name, town and coordinates.","kind":"ready_made","visibility":"public","domain":"api-v3.mbta.com","source_url":"https://api-v3.mbta.com/predictions","category":"travel","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":11,"created_at":"2026-12-06T04:45:48.376Z","updated_at":"2026-12-06T04:45:48.376Z","runnable":true},"version":"1.0","contract_hash":"7c0de9041ecb92c93f80854fc6f2c37c7f5d4daf1faaf785f3ac4bdb8b2d7025","fields":[{"name":"id","type":"string","description":"The MBTA's own id of the prediction or the stop.","required":true,"coverage":1,"example":"prediction-78063916-5104-1-89"},{"name":"kind","type":"string","description":"prediction or stop.","required":false,"coverage":1,"example":"prediction"},{"name":"stop_id","type":"string","description":"Stop id.","required":false,"coverage":1,"example":"5104"},{"name":"name","type":"string","description":"Stop name.","required":false,"coverage":1,"example":"Davis"},{"name":"municipality","type":"string","description":"Town or city of the stop.","required":false,"coverage":1,"example":"Somerville"},{"name":"latitude","type":"number","description":"Latitude of the stop.","required":false,"coverage":1,"example":42.396646},{"name":"longitude","type":"number","description":"Longitude of the stop.","required":false,"coverage":1,"example":-71.121879},{"name":"route","type":"string","description":"Route name or number of a prediction, such as Red Line or 89.","required":false,"coverage":1,"example":"89"},{"name":"direction","type":"string","description":"Direction of a prediction, such as Inbound or Outbound.","required":false,"coverage":1,"example":"Inbound"},{"name":"departure_at","type":"datetime","description":"Predicted departure (UTC).","required":false,"coverage":1,"example":"2026-12-06T04:52:00.000Z"},{"name":"arrival_at","type":"datetime","description":"Predicted arrival (UTC).","required":false,"coverage":0.6,"example":"2026-12-06T04:30:44.000Z"}],"inputs":[{"name":"stop","type":"string","description":"Stop or station id to list live predictions for, such as place-davis or 70063. Several ids can be separated by commas.","example":"place-davis"},{"name":"route_type","type":"integer","description":"Kind of service: 0 light rail, 1 subway, 2 commuter rail, 3 bus, 4 ferry. Narrows predictions or stops.","example":1,"enum":[0,1,2,3,4]},{"name":"near_lat","type":"string","description":"Latitude of a point to list nearby stops around, used with near_lon.","example":"42.3967"},{"name":"near_lon","type":"string","description":"Longitude of a point to list nearby stops around, used with near_lat.","example":"-71.1218"}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"arrival_at":{"description":"Predicted arrival (UTC).","format":"date-time","type":"string"},"departure_at":{"description":"Predicted departure (UTC).","format":"date-time","type":"string"},"direction":{"description":"Direction of a prediction, such as Inbound or Outbound.","type":"string"},"id":{"description":"The MBTA's own id of the prediction or the stop.","type":"string"},"kind":{"description":"prediction or stop.","type":"string"},"latitude":{"description":"Latitude of the stop.","type":"number"},"longitude":{"description":"Longitude of the stop.","type":"number"},"municipality":{"description":"Town or city of the stop.","type":"string"},"name":{"description":"Stop name.","type":"string"},"route":{"description":"Route name or number of a prediction, such as Red Line or 89.","type":"string"},"stop_id":{"description":"Stop id.","type":"string"}},"required":["id"],"title":"MBTA Stops and Predictions API","type":"object"},"samples":[{"id":"prediction-78063916-5104-1-89","kind":"prediction","stop_id":"5104","name":"Davis","municipality":"Somerville","latitude":42.396646,"longitude":-71.121879,"route":"89","direction":"Inbound","departure_at":"2026-12-06T04:52:00.000Z","arrival_at":null},{"id":"prediction-78063335-5104-1-94","kind":"prediction","stop_id":"5104","name":"Davis","municipality":"Somerville","latitude":42.396646,"longitude":-71.121879,"route":"94","direction":"Outbound","departure_at":"2026-12-06T04:54:00.000Z","arrival_at":null},{"id":"prediction-77909714-70064-210-Red","kind":"prediction","stop_id":"70064","name":"Davis","municipality":"Somerville","latitude":42.39674,"longitude":-71.121815,"route":"Red Line","direction":"North","departure_at":"2026-12-06T04:31:37.000Z","arrival_at":"2026-12-06T04:30:44.000Z"}],"validation":{"checked_at":"2026-12-06T04:45:48.335Z","field_coverage":{"arrival_at":0.33,"departure_at":1,"direction":1,"id":1,"kind":1,"latitude":1,"longitude":1,"municipality":1,"name":1,"route":1,"stop_id":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T04:45:48.376Z","activated_at":"2026-12-06T04:45:48.376Z","active":true,"contract_hash":"7c0de9041ecb92c93f80854fc6f2c37c7f5d4daf1faaf785f3ac4bdb8b2d7025","fields_count":11}]}