511’s Open Data mission is to provide high-quality data to the public and private sectors to maximize the number of travelers benefiting from 511 data. Private sector partners include Google, Apple, Bing, Transit App, HERE, and many others.

511’s Open Data program also provides several APIs for developers to create applications, widgets, and other tools using 511 data. All data sources are provided free of charge via token request, however, acknowledgment of 511.org as the data provider is required.

Technical Help

Need help? Review our FAQs first. If you can’t find the answer to your question, you can send a support request to the 511 SF Bay Developer Resources Google group via this email: 511sfbaydeveloperresources@googlegroups.com. Membership is not required to submit a support request in this group

View the Open Data FAQs | Visit the Google Group

What’s New

Upcoming Service Changes Now Available in GTFS Feed 3 Days in Advance

511 SF Bay is now able to publish upcoming service changes to the GTFS data feed 3 days in advance. If you want to receive only active service information, please add the ‘status’ filter with the value ‘active’ to the url. For example: http://api.511.org/transit/datafeeds?api_key=[API_KEY]&operator_id=SF&status=active

Consolidated Regional GTFS-RT for the San Francisco Bay Area

511 SF Bay Open Data Portal has released its single consolidated Regional GTFS-Realtime (GTFS-RT) feeds for the region. Users can now download GTFS-RT Trip Updates, Vehicle Positions, and Alerts for all of San Francisco Bay Area’s real-time enabled transit agencies in single consolidated feeds using agency code ‘RG’. Data consumers can now download the GTFS-RT feeds using the following URLs:

Regional Trip Updates: https://api.511.org/Transit/TripUpdates?api_key=[API_KEY]&agency=RG
Regional Vehicle Positions: https://api.511.org/Transit/VehiclePositions?api_key=[API_KEY]&agency=RG
Regional Service Alerts: https://api.511.org/transit/servicealerts?api_key=[API_KEY]&agency=RG

Above GTFS-RT feeds provide companion real-time data for the single consolidated Regional GTFS (static data) feed 511 SF Bay has already been publishing at the data endpoint: http://api.511.org/transit/datafeeds?api_key=[API_KEY]&operator_id=RG

Transit agencies that are included in the Regional GTFS-RT have “Monitored” value set to ‘true’ in the response to the data endpoint: https://api.511.org/transit/operators?api_key=[API_KEY]

Historic Regional GTFS with the Option to Include Archived Arrival Observations

In addition to consolidated active Regional GTFS and GTFS-RT feeds, 511 SF Bay allow data consumers to download historic Regional GTFS data on a monthly basis, with or without the observed real-time arrivals times. The historic GTFS, with observed real-time arrivals times data, can be valuable for transit service analysis, transportation planning, and other research purposes.

Historic Regional GTFS without stop_observations.txt file: http://api.511.org/transit/datafeeds?api_key=[YOUR_API_KEY]&operator_id=RG&historic=2023-02

Historic Regional GTFS with stop_observations.txt file: http://api.511.org/transit/datafeeds?api_key=[YOUR_API_KEY]&operator_id=RG&historic=2023-02-so

Regional GTFS with Pathways and Fares v2 Data

The consolidated Regional GTFS feed now provides Pathways for all major transit stations/hubs/centers and Fares v2 data for all transit operators in the San Francisco Bay Area. When incorporated, transit trip planners can use Pathways to calculate more accurate transfer times and use Fares v2 to calculate exact fares including transfer discounts for an entire journey involving multiple transit services.

511 SF Bay is the first 511 system in the nation to produce detailed fares data across multiple transit services in a consolidated regional data feed using the GTFS Fares v2 extension data specification.

Canceled Trip Information Now Included in Stop Monitoring API

511 Stop Monitoring API has been enhanced to include canceled trip information, which was already part of GTFS-RT Trip Updates feed.

Past Traffic Event Data

Traffic Events API has been enhanced to retrieve information about up to 1000 past events using a new filter called ‘status.’ When status is set to ‘archived’ as shown in the following example URL, past archived events are provided:https://api.511.org/traffic/events/?api_key={your key}&status=archived

If data for more than 1000 past traffic events is needed, please send your request via email to 511sfbaydeveloperresources@googlegroups.com

Work Zone Data Exchange (WZDx) Feed for the San Francisco Bay Area

511 SF Bay Open Data Portal has released its Work Zone Data Exchange (WZDx) feed for the region. Users can now download up-to-date road closures and detours for local streets and highways related to planned work, for all participating jurisdictions in the San Francisco Bay Area. Data consumers can now download the WZDx feed using the following URL: https://api.511.org/traffic/wzdx?api_key=[API_KEY]