Developers

Real-Time Subway Data (Red, Orange, Blue)

The MBTA uses track circuit occupancy information, schedule information, and dispatcher input to track Red, Orange, and Blue Line trains.  The software uses the same information our dispatchers use to track train movements and make operational decisions in real-time. We have two generations of the subway feed, and developers should use the newer feed. It is more accurate, provides more information, and includes predictions of terminal departures – trips that have not yet started. 

What about the Green Line?

Unfortunately, the Green Line does not have the same type of train tracking technology as other lines.  As Green Line riders ourselves, we feel your pain!  Our teams are currently working to design a tracking system but expect it to be a few years before we can make something public.

Use of the Feed

Access to the MBTA Real-Time Subway Feed is governed by the language in the MassDOT Developers License Agreement in addition to the following conditions:

• The MBTA reserves the right to suspend the feed, modify the feed, or modify elements of the feed at any time in the MBTA's sole and absolute discretion.

• The MBTA will not guarantee any technical support of any kind to users.

• No user may execute polling commands more often than every 10 seconds. A user that polls more often than that or otherwise overtaxes the MBTA's system may be suspended or terminated from the data feed.

Using the Real-Time Subway Feed 2.0, Released 2012

We have made real-time heavy rail data available as CSV and as JSON.  

Please provide feedback to developer@mbta.com.  

Using the Real-Time Subway Feed 1.0 (Deprecated)

Use of the original real-time subway feed is deprecated – developers are encouraged to use the new feed (above) instead. It is more accurate and contains more information. No timeline has been announced regarding the end of support for this feed.

Description of Data

Table of Platform Keys

Red Line -  Text | JSON | XML 

Orange Line - Text | JSON | XML 

Blue Line - Text | JSON | XML 

Red Line Sample