# Bart

BART (Bay Area Rapid Transit) provides public transportation services in the San Francisco Bay Area.

- **Category:** developer tools
- **Auth:** API_KEY
- **Composio Managed App Available?** N/A
- **Tools:** 20
- **Triggers:** 0
- **Slug:** `BART`
- **Version:** 20260227_00

## Tools

### Get BART API Version

**Slug:** `BART_GET_API_VERSION`

Get 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `json_format` | boolean | No | If True, returns response in JSON format. If False, returns XML format. Defaults to True for easier parsing. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get BART Available Schedules

**Slug:** `BART_GET_AVAILABLE_SCHEDULES`

DEPRECATED: 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Elevator Status

**Slug:** `BART_GET_ELEVATOR_STATUS`

Tool 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Estimated Departures

**Slug:** `BART_GET_ESTIMATED_DEPARTURES`

Tool 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `dir` | string ("n" | "s") | No | Direction filter for departures. |
| `orig` | string | Yes | 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). |
| `plat` | string | No | Platform number to filter results (e.g., '1', '2', '3', '4') |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get BART Fare

**Slug:** `BART_GET_FARE`

Get 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `dest` | string | Yes | Destination station abbreviation (4 uppercase letters, e.g., 'EMBR' for Embarcadero, 'ROCK' for Rockridge, 'SFIA' for SFO Airport) |
| `orig` | string | Yes | Origin station abbreviation (4 uppercase letters, e.g., 'MONT' for Montgomery St, 'EMBR' for Embarcadero, '12TH' for 12th St Oakland) |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get GTFS-RT Service Alerts

**Slug:** `BART_GET_GTFS_ALERTS`

Tool to fetch GTFS-RT service alerts in protobuf format for integration with GTFS static feed. Use when you need real-time service advisories, disruptions, or alert information.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get GTFS-RT Trip Updates

**Slug:** `BART_GET_GTFS_RT_TRIP_UPDATES`

Tool to fetch real-time trip updates in GTFS-Realtime format. Use when you need the latest live trip information as raw protobuf.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Download GTFS Static Schedule Feed

**Slug:** `BART_GET_GTFS_STATIC_SCHEDULE_FEED`

Downloads the BART static GTFS (General Transit Feed Specification) schedule feed as a ZIP archive. The GTFS feed contains comprehensive transit data including stations, routes, trip schedules, fares, and service calendars in standardized CSV format. Use this to access complete BART schedule information for route planning, analysis, or integration with transit applications.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Route Info

**Slug:** `BART_GET_ROUTE_INFO`

Tool 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `date` | string | No | Optional date in mm/dd/yyyy format or 'today'/'now' to select the schedule |
| `route` | string ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "all") | Yes | Route number (1–12) or 'all' to retrieve configuration for specific or all routes |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Route Schedule

**Slug:** `BART_GET_ROUTE_SCHEDULE`

Tool 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `l` | integer ("0" | "1") | No | Include legend in response: 0=off (default), 1=on |
| `date` | string | No | 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 |
| `route` | string ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12") | Yes | 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get BART Schedule Arrive

**Slug:** `BART_GET_SCHEDULE_ARRIVE`

Tool to retrieve schedule information based on a specified arrival time. Use when planning trips arriving by a given time.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `a` | integer | No | Number of trips after the specified time (1-3) |
| `b` | integer | No | Number of trips before the specified time (0-3) |
| `l` | integer | No | Include legend flag: 0 omit, 1 include |
| `date` | string | No | Date as 'MM/DD/YYYY', 'today', or 'now' (defaults to today) |
| `dest` | string | Yes | Destination station abbreviation (4 letters) |
| `orig` | string | Yes | Origin station abbreviation (4 letters) |
| `time` | string | No | Arrival time in 'h:mm AM/PM' or 'now' (defaults to now) |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get BART Schedule Depart

**Slug:** `BART_GET_SCHEDULE_DEPART`

Get 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `a` | integer | No | Trips after specified time (1-3); default is 2 |
| `b` | integer | No | Trips before specified time (0-3); default is 2 |
| `l` | integer | No | Include legend: 0=no, 1=yes; default is 0 |
| `date` | string | No | Date 'MM/DD/YYYY' or 'today'/'now'; defaults to current date |
| `dest` | string | Yes | 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 |
| `json` | string | No | Set to 'y' to request JSON output |
| `orig` | string | Yes | 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 |
| `time` | string | No | Departure time 'h:mm am/pm' or 'now'; defaults to current time |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Service Advisories

**Slug:** `BART_GET_SERVICE_ADVISORIES`

Tool 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `orig` | string | No | 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Special Schedules

**Slug:** `BART_GET_SPECIAL_SCHEDULES`

DEPRECATED: 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `l` | integer | No | Include legend (0=off, 1=on) |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Station Access

**Slug:** `BART_GET_STATION_ACCESS`

Get 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `l` | integer | No | 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. |
| `orig` | string | Yes | 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Station Info

**Slug:** `BART_GET_STATION_INFO`

Get 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `orig` | string | Yes | 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get BART Stations

**Slug:** `BART_GET_STATIONS`

Get a list of all BART stations with their complete information. This action retrieves information about all BART (Bay Area Rapid Transit) stations including station names, abbreviation codes, geographic coordinates (latitude/longitude), and full addresses. This is useful for finding station locations, getting station codes for other API calls, or building station lookup tools.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Station Schedule

**Slug:** `BART_GET_STATION_SCHEDULE`

Get 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `l` | integer | No | Include legend: 0=no, 1=yes; default is 0 |
| `date` | string | No | Date 'MM/DD/YYYY' or 'today'/'now'; defaults to current date |
| `orig` | string | Yes | Origin station abbreviation (4 uppercase letters, e.g., 'POWL' for Powell St., 'EMBR' for Embarcadero, '24TH' for 24th St Mission) |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Train Count

**Slug:** `BART_GET_TRAIN_COUNT`

Tool 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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List BART Routes

**Slug:** `BART_LIST_ROUTES`

Tool to get a list of all current BART routes/lines with basic information. Use when you need to see all available routes, their colors, directions, or route numbers.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `date` | string | No | Optional date in mm/dd/yyyy format or 'today'/'now' to select the schedule |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
