Real-Time Estimate - Departure
GET {{bartBaseUrl}}/etd.aspx?cmd=etd&orig={{originStation}}&json=y
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
cmd | string | BART API command | |
orig | string | Abbreviated station name | |
json | string | JSON response |
RESPONSES
status: OK
{"?xml":{"@version":"1.0","@encoding":"utf-8"},"root":{"@id":"1","uri":{"#cdata-section":"http://api.bart.gov/api/etd.aspx?cmd=etd\u0026orig=BALB\u0026json=y"},"date":"04/27/2020","time":"12:36:01 PM PDT","station":[{"name":"Balboa Park","abbr":"BALB","etd":[{"destination":"Antioch","abbreviation":"ANTC","limited":"0","estimate":[{"minutes":"8","platform":"2","direction":"North","length":"10","color":"YELLOW","hexcolor":"#ffff33","bikeflag":"1","delay":"0"},{"minutes":"38","platform":"2","direction":"North","length":"10","color":"YELLOW","hexcolor":"#ffff33","bikeflag":"1","delay":"0"}]},{"destination":"Daly City","abbreviation":"DALY","limited":"0","estimate":[{"minutes":"6","platform":"1","direction":"South","length":"10","color":"BLUE","hexcolor":"#0099cc","bikeflag":"1","delay":"0"},{"minutes":"17","platform":"1","direction":"South","length":"10","color":"GREEN","hexcolor":"#339933","bikeflag":"1","delay":"0"},{"minutes":"36","platform":"1","direction":"South","length":"10","color":"BLUE","hexcolor":"#0099cc","bikeflag":"1","delay":"0"}]},{"destination":"Dublin/Pleasanton","abbreviation":"DUBL","limited":"0","estimate":[{"minutes":"21","platform":"2","direction":"North","length":"10","color":"BLUE","hexcolor":"#0099cc","bikeflag":"1","delay":"0"}]},{"destination":"Millbrae","abbreviation":"MLBR","limited":"0","estimate":[{"minutes":"26","platform":"1","direction":"South","length":"10","color":"RED","hexcolor":"#ff0000","bikeflag":"1","delay":"0"},{"minutes":"56","platform":"1","direction":"South","length":"10","color":"RED","hexcolor":"#ff0000","bikeflag":"1","delay":"0"},{"minutes":"86","platform":"1","direction":"South","length":"10","color":"RED","hexcolor":"#ff0000","bikeflag":"1","delay":"0"}]},{"destination":"Richmond","abbreviation":"RICH","limited":"0","estimate":[{"minutes":"2","platform":"2","direction":"North","length":"10","color":"RED","hexcolor":"#ff0000","bikeflag":"1","delay":"0"},{"minutes":"31","platform":"2","direction":"North","length":"10","color":"RED","hexcolor":"#ff0000","bikeflag":"1","delay":"0"}]},{"destination":"SF Airport","abbreviation":"SFIA","limited":"0","estimate":[{"minutes":"20","platform":"1","direction":"South","length":"10","color":"YELLOW","hexcolor":"#ffff33","bikeflag":"1","delay":"0"},{"minutes":"50","platform":"1","direction":"South","length":"10","color":"YELLOW","hexcolor":"#ffff33","bikeflag":"1","delay":"0"},{"minutes":"80","platform":"1","direction":"South","length":"10","color":"YELLOW","hexcolor":"#ffff33","bikeflag":"1","delay":"0"}]},{"destination":"Warm Springs","abbreviation":"WARM","limited":"0","estimate":[{"minutes":"11","platform":"2","direction":"North","length":"10","color":"GREEN","hexcolor":"#339933","bikeflag":"1","delay":"0"},{"minutes":"41","platform":"2","direction":"North","length":"10","color":"GREEN","hexcolor":"#339933","bikeflag":"1","delay":"0"}]}]}],"message":""}}