BART API

Examples

New: Examples now include JSON output!

The following links show examples of the various commands that are available through the BART API.

Command Description
Advisory information
Advisories (XML)
Advisories (JSON)
Returns the current BART Service Advisories (BSA).
Train Count (XML)
Train Count (JSON)
Returns the current count of trains in service.
Elevator Information (XML)
Elevator Information (JSON)
Returns the current elevator status.
Help (XML)
Help (JSON)
Returns the available API Advisory Information commands.
Real-Time Information
Real-Time Estimates (XML)
Real-Time Estimates (JSON)
Returns the Estimated Time of Departure (ETD) for the specified station.
Filtered Real-Time Estimates (XML)
Filtered Real-Time Estimates (JSON)
Returns the Estimated Time of Departure (ETD) for the specified station limited to a single direction (Northbound or Southbound).
Help (XML)
Help (JSON)
Returns the available API Real-Time Information commands.
Route Information
Routes (XML)
Routes (JSON)
Returns a list of current BART Routes.
Route Information (XML)
Route Information (JSON)
Returns detailed information about a specific route.
Help (XML)
Help (JSON)
Returns the available API Route Information commands.
Schedule Information
Arrive By (XML)
Arrive By (JSON)
Returns schedule information based on specified arrive time.
Depart By (XML)
Depart By (JSON)
Returns schedule information based on specified depart time.
Fare (XML)
Fare (JSON)
Returns the fare information between two stations.
Holidays (XML)
Holidays (JSON)
Returns information about BART holidays.
Route Schedule (XML)
Route Schedule (JSON)
Returns a complete schedule for the specified route
Available Schedules (XML)
Available Schedules (JSON)
Returns a list of released BART Schedules and their effective date.
Special Schedules (XML)
Special Schedules (JSON)
Returns any currently active special schedule announcements.
Station Schedule (XML)
Station Schedule (JSON)
Returns a complete schedule for the specified station.
Help (XML)
Help (JSON)
Returns the available API Schedule Information commands.
Station Information
Station List (XML)
Station List (JSON)
Returns a list of all BART stations.
Station Information (XML)
Station Information (JSON)
Returns detailed information about the specified station.
Station Access Information (XML)
Station Access Information (JSON)
Returns information about access to the specified station, along with nearby attractions.
Help (XML)
Help (JSON)
Returns the available API Station Information commands.
Version Information
API Version (XML)
API Version (JSON)
Returns current API version information.