Estimated time of departure

GET https://api.bart.gov/api/etd.aspx?orig=MONT&cmd=etd&key={{key}}&dir=s&json=y

The optional parameters 'plat' and 'dir' should not be used together. If they are, then the 'dir' parameter will be ignored and just the platform parameter will be used.

If 'ALL' is used for the orig station, then 'plat' and 'dir' cannot be used.

The tag was added on 8/28/2017. Delay information is provided in seconds off of original scheduled time.

If the combination of 'platform' or 'dir' results in no ETD data, a warning message will be displayed.

Request Params

KeyDatatypeRequiredDescription
origstringSpecifies the station. Stations are referenced by their abbreviations. You can also use 'ALL' to get all of the current ETD's. (Required)
cmdstringRequests current departure information. (Required)
keystringAPI registration key. (Required)
platnullThis will limit results to a specific platform. Valid platforms depend on the station, but can range from 1-4. (Optional)
dirstringThis will limit results to a specific direction. Valid directions are 'n' for Northbound and 's' for Southbound.
jsonstringReturns API output in JSON format. Default output is XML if parameter not specified. (Optional)