Schedule Information API

Command: help

Inputs

Parameter Description
cmd=help Requests help for bsa commands (Required)
key=<key> API registration key (Required)
json=y Returns API output in JSON format. Default output is XML if parameter not specified. (Optional)

Results

XML Sample

<?xml version="1.0" encoding="iso-8859-1" ?> 
<root>
  <uri><![CDATA[ https://api.bart.gov/api/sched.aspx?cmd=help ]]></uri>
  <message>
    <help><![CDATA[ Commands: arrive, depart, fare, help, holiday, routesched, scheds, special, stnsched ]]></help>
  </message>
</root>

JSON Sample

{
   "?xml":{
      "@version":"1.0",
      "@encoding":"utf-8"
   },
   "root":{
      "uri":{
         "#cdata-section":"https://api.bart.gov/api/sched.aspx?cmd=help&json=y"
      },
      "message":{
         "help":{
            "#cdata-section":"Commands: arrive, depart, fare, help, holiday, routesched, scheds, special, stnsched "
         }
      }
   }
}

Notes

None.

Usage

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