Schedule Information API

Command: scheds

Inputs

Parameter Description
cmd=scheds Requests detailed information about the current BART Schedules. (Required)
key=<key> API registration key. (Required)
json=y Returns API output in JSON format. Default output is XML if parameter not specified. (Optional)

Notes

This information is primarily useful when a new schedule has been announced and released. The API will automatically use the appropriate schedule based on the date specified in the call once a new schedule has been released.

Results

XML Sample

<?xml version="1.0" encoding="utf-8"?>
<root>
  <uri>
    <![CDATA[https://api.bart.gov/api/sched.aspx?cmd=scheds]]>
  </uri>
  <schedules>
    <schedule id="41" effectivedate="03/28/2016" />
    <schedule id="42" effectivedate="03/25/2017" />
    <schedule id="43" effectivedate="06/12/2017" />
  </schedules>
  <message></message>
</root>

JSON Sample

{
   "?xml":{
      "@version":"1.0",
      "@encoding":"utf-8"
   },
   "root":{
      "uri":{
         "#cdata-section":"https://api.bart.gov/api/sched.aspx?cmd=scheds&json=y"
      },
      "schedules":{
         "schedule":[
            {
               "@id":"41",
               "@effectivedate":"03/28/2016"
            },
            {
               "@id":"42",
               "@effectivedate":"03/25/2017"
            },
            {
               "@id":"43",
               "@effectivedate":"06/12/2017"
            }
         ]
      },
      "message":""
   }
}

Notes

None.

Usage

XML: https://api.bart.gov/api/sched.aspx?cmd=scheds&key=INSERT-KEY
JSON: https://api.bart.gov/api/sched.aspx?cmd=scheds&key=INSERT-KEY&json=y