Routes

GET http://api.bart.gov/api/route.aspx?cmd=routes&key={{key}}&json=y

Route Information sometimes changes with schedule changes as routes are reconfigured. This may affect the name and abbreviation of the route.

The optional date and sched parameters should not be used together. If they are, the date will be ignored, and the sched parameter will be used.

WARNING: the current color value is incorrect, it should be a text value (e.g. ORANGE). Please use the hexcolor value until the color value has been changed.

Request Params

KeyDatatypeRequiredDescription
cmdstringRequests information regarding current lines. (Required)
keystringAPI registration key. (Required)
schednullSpecifies a specific schedule to use. Defaults to current schedule. (Optional)
datenullSpecifies a specific date to use. This will determine the appropriate schedule for that date, and give back information about the lines for that schedule. Date can also be specified as "today" or "now". (Optional)
jsonstringReturns API output in JSON format. Default output is XML if parameter not specified. (Optional)