Command line tool to check BART Departure times using Python and the BART API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

BART Departure Times CLI Tool


Uses the public BART API to pull station information and check for trains leaving from the station chosen. Compatible with Python 3.*, Python 2 works but will output less presentable strings.


  • Execute with python3 to see a list of stations. Enter the number of the station from the list of stations that you would like to see departure times for.
  • Execute with python3 [STATION ABBREVIATION] to skip listing stations and output departure times for a specific station.
  • Execute python3 list to see a list of stations and their abbreviations

Note about API key

The BART API key used here is the No strings attached, public key available at This key is subject to change.