Skip to main content
Bart logo
  • Category: developer tools
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 20
  • Triggers: 0
  • Slug: BART
  • Version: 20261101_00

Tools

Slug: BART_GET_API_VERSIONGet the current version of the BART API. This action retrieves version information for the BART (Bay Area Rapid Transit) API, including the current API version number, copyright information, and license details. This is useful for verifying API compatibility and ensuring you’re working with the expected API version. The BART API is currently at version 3.10 and supports both XML and JSON output formats. Use this action to confirm which version of the API you’re interfacing with and to access licensing information.

Input Parameters

boolean
If True, returns response in JSON format. If False, returns XML format. Defaults to True for easier parsing.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_AVAILABLE_SCHEDULESDEPRECATED: Retrieve available BART schedules (deprecated since Dec 2, 2019). This endpoint is deprecated and returns an empty schedules list. BART recommends using GTFS/GTFS-RT feeds for current schedule data instead. Use BART_GET_GTFS_STATIC_SCHEDULE_FEED for schedule information.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_ELEVATOR_STATUSTool to fetch current elevator status across all BART stations. Use when you need real-time elevator availability information for accessibility planning or route guidance.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_ESTIMATED_DEPARTURESTool to get real-time estimated departure times for a specified BART station. Returns live train departure predictions including minutes until departure, platform assignments, train lengths, line colors, bicycle accommodation, and delay information. Use this when you need current departure times for planning trips or checking train status.

Input Parameters

string ("n" | "s")
Direction filter for departures.
string
required
Four-letter BART station abbreviation code (e.g., ‘MONT’ for Montgomery St., ‘EMBR’ for Embarcadero, ‘12TH’ for 12th St. Oakland). Use ‘all’ to get departures for all stations. Common stations: EMBR, MONT, POWL, CIVC (SF); 12TH, LAKE, MCAR (Oakland); MLBR, SFIA (Peninsula).
string
Platform number to filter results (e.g., ‘1’, ‘2’, ‘3’, ‘4’)

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_FAREGet fare information between two BART stations including Clipper and cash prices. Returns multiple fare types (Clipper, cash, senior/disabled, youth, Clipper START) with their respective prices. Use this when you need to find out how much a BART trip costs between two stations.

Input Parameters

string
required
Destination station abbreviation (4 uppercase letters, e.g., ‘EMBR’ for Embarcadero, ‘ROCK’ for Rockridge, ‘SFIA’ for SFO Airport)
string
required
Origin station abbreviation (4 uppercase letters, e.g., ‘MONT’ for Montgomery St, ‘EMBR’ for Embarcadero, ‘12TH’ for 12th St Oakland)

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_GTFS_ALERTSFetch BART GTFS-RT service alerts as protobuf bytes for use with the static GTFS feed. The returned content is limited to the first 10,240 bytes and may be truncated.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_GTFS_RT_TRIP_UPDATESFetch BART GTFS-Realtime trip updates as raw protobuf bytes. Responses larger than 10 KiB are truncated and may not form a complete protobuf feed.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_GTFS_STATIC_SCHEDULE_FEEDFetch the BART static GTFS schedule feed ZIP and return its permalink and the first 1,024 bytes of its content.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_ROUTE_INFOTool to fetch detailed information about a specific BART route. Use when you know the route number (1–12) or need all routes configuration. Call after confirming the route ID.

Input Parameters

string
Optional date in mm/dd/yyyy format or ‘today’/‘now’ to select the schedule
string ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "all")
required
Route number (1–12) or ‘all’ to retrieve configuration for specific or all routes

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_ROUTE_SCHEDULETool to get detailed schedule information for a specific BART route showing all trains and their stops. Use when you need to see the complete schedule for a route including departure times, station stops, bike policies, and passenger load indicators. Call this after determining the specific route number (1-12).

Input Parameters

integer ("0" | "1")
Include legend in response: 0=off (default), 1=on
string
Date in MM/DD/YYYY format (e.g., ‘01/15/2026’) or ‘wd’ for weekday schedule, ‘sa’ for Saturday, ‘su’ for Sunday; defaults to current date
string ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12")
required
Route number (1-12): 1=Richmond-Daly City/Millbrae, 2=Pittsburg/Bay Point-SFO/Millbrae, 3=Richmond-Fremont, 4=Pittsburg/Bay Point-Daly City/Millbrae, 5=Daly City-Dublin/Pleasanton, 6=Daly City/Millbrae-East Dublin, 7=SFO/Millbrae-Antioch, 8=Berryessa/North San José-Daly City/Millbrae, 11=Richmond-Berryessa/North San José, 12=Dublin/Pleasanton-Daly City

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_SCHEDULE_ARRIVETool to retrieve schedule information based on a specified arrival time. Use when planning trips arriving by a given time.

Input Parameters

integer
Number of trips after the specified time (1-3)
integer
Number of trips before the specified time (0-3)
integer
Include legend flag: 0 omit, 1 include
string
Date as ‘MM/DD/YYYY’, ‘today’, or ‘now’ (defaults to today)
string
required
Destination station abbreviation (4 letters)
string
required
Origin station abbreviation (4 letters)
string
Arrival time in ‘h:mm AM/PM’ or ‘now’ (defaults to now)

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_SCHEDULE_DEPARTGet BART train schedules departing from an origin station to a destination station at a specified time. Returns multiple trip options with departure/arrival times, fares (Clipper, cash, senior/disabled, youth), transfer details, train information, and platform numbers. Use this when you need to plan BART trips with specific departure times or when users ask about train schedules between two stations.

Input Parameters

integer
Trips after specified time (1-3); default is 2
integer
Trips before specified time (0-3); default is 2
integer
Include legend: 0=no, 1=yes; default is 0
string
Date ‘MM/DD/YYYY’ or ‘today’/‘now’; defaults to current date
string
required
Destination station abbreviation code. Valid codes: 12TH, 16TH, 19TH, 24TH, ASHB, ANTC, BALB, BAYF, BERY, CAST, CIVC, COLS, COLM, CONC, DALY, DBRK, DUBL, DELN, PLZA, EMBR, FRMT, FTVL, GLEN, HAYW, LAFY, LAKE, MCAR, MLBR, MLPT, MONT, NBRK, NCON, OAKL, ORIN, PITT, PCTR, PHIL, POWL, RICH, ROCK, SBRN, SFIA, SANL, SHAY, SSAN, UCTY, WARM, WCRK, WDUB, WOAK
string
Set to ‘y’ to request JSON output
string
required
Origin station abbreviation code. Valid codes: 12TH, 16TH, 19TH, 24TH, ASHB, ANTC, BALB, BAYF, BERY, CAST, CIVC, COLS, COLM, CONC, DALY, DBRK, DUBL, DELN, PLZA, EMBR, FRMT, FTVL, GLEN, HAYW, LAFY, LAKE, MCAR, MLBR, MLPT, MONT, NBRK, NCON, OAKL, ORIN, PITT, PCTR, PHIL, POWL, RICH, ROCK, SBRN, SFIA, SANL, SHAY, SSAN, UCTY, WARM, WCRK, WDUB, WOAK
string
Departure time ‘h:mm am/pm’ or ‘now’; defaults to current time

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_SERVICE_ADVISORIESTool to fetch current BART service advisories. Use when you need up-to-date system-wide or station-level alerts before presenting or planning transit routes.

Input Parameters

string
Station code to filter advisories. Use ‘all’ for all advisories, ‘bart’ for system-wide only, or a station code (e.g., ‘EMBR’) for station-specific plus system-wide advisories.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_SPECIAL_SCHEDULESDEPRECATED: Get special schedule announcements for holidays or event modifications. This endpoint is deprecated as of June 26, 2020 and references a legacy system that is no longer available. The API returns a deprecation message instead of schedule data. Use BART_GET_GTFS_STATIC_SCHEDULE_FEED for current schedule information.

Input Parameters

integer
Include legend (0=off, 1=on)

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_STATION_ACCESSGet comprehensive station access information including parking, transit, bike facilities, and lockers. Returns detailed access information for a specific BART station including: entering/exiting instructions, parking availability and lot capacity, bike parking and bike station details, locker availability, car-sharing options, nearby destinations, and connected transit services. Use this when you need to help users understand how to access a BART station or what facilities are available.

Input Parameters

integer
Include legend explaining flag values (0=off, 1=on). When set to 1, the response will include a message section explaining what each flag value means.
string
required
Four-letter BART station abbreviation code (e.g., ‘EMBR’ for Embarcadero, ‘MONT’ for Montgomery St., ‘12TH’ for 12th St. Oakland). Use this to specify which station’s access information you want to retrieve.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_STATION_INFOGet detailed information for a specific BART station by its abbreviation code. Returns comprehensive station details including: name, location (address, city, county, coordinates), routes serving the station (northbound/southbound), platform information, nearby amenities (food, shopping, attractions), and general station description. Use this when you need detailed information about a specific BART station and you already have its 4-letter abbreviation code (e.g., ‘EMBR’ for Embarcadero, ‘MONT’ for Montgomery Street, ‘12TH’ for 12th Street Oakland).

Input Parameters

string
required
Four-letter BART station abbreviation code (e.g., ‘EMBR’ for Embarcadero, ‘MONT’ for Montgomery St., ‘12TH’ for 12th St. Oakland). Common stations: EMBR, MONT, POWL, CIVC (SF); 12TH, LAKE, MCAR (Oakland); MLBR, SFIA (Peninsula).

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_STATIONSGet a list of BART stations with names, abbreviation codes, geographic coordinates, and addresses. Use it to find station locations or codes for other API calls.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_STATION_SCHEDULEGet detailed scheduled departure information for a specific BART station. Returns all trains departing from the station including route line, destination, departure time, bike allowance, crowding level, and platform number. Use this when you need to see all departures from a specific station.

Input Parameters

integer
Include legend: 0=no, 1=yes; default is 0
string
Date ‘MM/DD/YYYY’ or ‘today’/‘now’; defaults to current date
string
required
Origin station abbreviation (4 uppercase letters, e.g., ‘POWL’ for Powell St., ‘EMBR’ for Embarcadero, ‘24TH’ for 24th St Mission)

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_GET_TRAIN_COUNTTool to fetch current count of trains active in the BART system. Use when you need real-time information about how many trains are currently operating.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BART_LIST_ROUTESList BART routes with basic information such as colors, directions, and route numbers. An optional date selects the schedule.

Input Parameters

string
Optional date in mm/dd/yyyy format or ‘today’/‘now’ to select the schedule

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not