Station 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) |
Notes
None.
Results
XML Sample
<?xml version="1.0" encoding="iso-8859-1" ?> <root> <uri><![CDATA[ https://api.bart.gov/api/stn.aspx?cmd=help ]]></uri> <message> <help><![CDATA[ Commands: help, stninfo, stnaccess, stns ]]></help> </message> </root>
JSON Sample
{ "?xml":{ "@version":"1.0", "@encoding":"utf-8" }, "root":{ "uri":{ "#cdata-section":"https://api.bart.gov/api/stn.aspx?cmd=help&json=y" }, "message":{ "help":{ "#cdata-section":"Commands: help, stninfo, stnaccess, stns " } } } }
Notes
None.
Usage
XML: https://api.bart.gov/api/stn.aspx?cmd=help&key=INSERT-KEY
JSON: https://api.bart.gov/api/stn.aspx?cmd=help&key=INSERT-KEY&json=y