BART (San Francisco)
San Francisco Bay Area subway: stations, schedules and alerts
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API keySecretRequired
Where to find them
- Request a free key at api.bart.gov/api/register.aspx or use BART's public key (MW9S-E7SL-26DU-VV8V).
- Add json=y to every request to receive JSON.
Tools (1)
BART (San Francisco) API request
BART_SEND_REQUESTAuthenticated call to the BART (San Francisco) API (https://api.bart.gov/api). Any endpoint of the API is allowed. Examples: GET /etd.aspx?cmd=etd&orig=EMBR&json=y (next departures), GET /stn.aspx?cmd=stns&json=y, GET /sched.aspx?cmd=depart&orig=SFIA&dest=EMBR&json=y, GET /bsa.aspx?cmd=bsa&json=y (alerts), GET /route.aspx?cmd=routes&json=y.
Required scopes
No scopes required
Input
BART (San Francisco) API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically.

