BART

App · Travel & Places · 14 actions

Read the Bay Area's rail network through BART's free, keyless public API: live departure boards with delays and platforms, service advisories and elevator outages, how many trains are running right now, the station and route directories with each station's access details, published timetables for a station or a whole line, and trip planning with platforms and fares in every class. No account or API key is required. Disclaimer: this is an independent app built on BART's public API. It is not affiliated with, endorsed by, or sponsored by the San Francisco Bay Area Rapid Transit District; BART and its marks are the property of that district.

Actions

ActionWhat it does
Get a route's timetableRead the whole day's timetable for one route, train by train and stop by stop.
Get a station's timetableRead the published timetable for one station on one day: every scheduled train through it, where each one is headed, when it leaves and from which platform.
Get elevator statusList the station elevators currently out of service, which is what decides whether a step-free journey is possible today.
Get real-time departuresRead the live departure board for a station: every train due, how many minutes away it is, which platform and direction it leaves from, how many cars it has, whether it takes bikes and how late it is running.
Get route detailsGet one route in full, including every station it calls at in travel order.
Get service advisoriesRead what BART is currently reporting about its service: delays, disruptions and anything else riders are being told.
Get station access detailsFind out how to get into, out of and around one station: which elevators reach the trains and what to do when one is out, parking and when it fills up, bike racks, lockers, bike stations and bike share, car share, and the connecting transit that serves it.
Get station detailsGet one station in full.
Get the fare between two stationsLook up what it costs to travel between two stations without planning a journey to get it.
Get the number of trains runningCount the BART trains in service right now.
List routesList every route BART is running, with the color each line is known by and the direction it runs in.
List stationsList every BART station with its address, city, county and coordinates.
Plan a tripPlan a journey between two stations leaving at a given time.
Plan a trip arriving by a timePlan a journey worked backwards from when the traveler has to be there, which is what answers 'what is the last train that still gets me to the airport by six?'.

Get a route's timetable

Read the whole day's timetable for one route, train by train and stop by stop. This is the largest answer BART gives, so it is meant for building or checking a schedule rather than for asking when the next train is: Get real-time departures answers that in a single row. Stations a train passes without calling at are left out of its stop list. Leave the date empty for today.

Inputs

RouteroutetextRequired
Which route to look up. Pick one, or reference a route number from a previous step. A route is one direction of one line, so the northbound and southbound halves are separate routes.
Datestarting_atdate
Which day's timetable to read. Leave empty for today. BART returns the whole day's service, for days from about 10 days back to the end of its published timetable, roughly two months ahead, and refuses any other day.

Outputs

countnumber
How many trains that comes to.
datetext
The day the timetable is for, mm/dd/yyyy.
routetext
The route number that was read.
trainslist
Every train on the route that day, in order.
Example output
{
  "count": 1,
  "date": "11/04/2026",
  "route": "1",
  "trains": [
    {
      "index": "1",
      "stop_count": 3,
      "stops": [
        {
          "carries_bikes": true,
          "depart_time": "04:47 AM",
          "load": "0",
          "station": "CONC"
        },
        {
          "carries_bikes": true,
          "depart_time": "05:32 AM",
          "load": "0",
          "station": "EMBR"
        },
        {
          "carries_bikes": true,
          "depart_time": "06:05 AM",
          "load": "0",
          "station": "SFIA"
        }
      ]
    }
  ]
}

Get a station's timetable

Read the published timetable for one station on one day: every scheduled train through it, where each one is headed, when it leaves and from which platform. This is the plan rather than the live board, so it answers 'what runs from here on a Sunday?' where Get real-time departures answers 'what is coming now'. Leave the date empty for today.

Inputs

StationstationtextRequired
Which station to look up. Pick one, or reference a station abbreviation such as EMBR from a previous step.
Datedatedate
Which day to read. Leave empty for today. BART answers for days from about 10 days back to the end of its published timetable, roughly two months ahead. It refuses an earlier day, and a later one either refuses or, for a station's timetable, answers with no trains.

Outputs

countnumber
How many trains that comes to.
datetext
The day the timetable is for, mm/dd/yyyy.
stationobject
The station the timetable is for.
trainslist
Every scheduled train through the station that day.
Example output
{
  "count": 2,
  "date": "11/04/2026",
  "station": {
    "abbreviation": "EMBR",
    "name": "Embarcadero"
  },
  "trains": [
    {
      "carries_bikes": true,
      "depart_time": "04:58 AM",
      "head_station": "OAK Airport / Berryessa",
      "line": "ROUTE 6",
      "load": "0",
      "platform": "2"
    },
    {
      "carries_bikes": true,
      "depart_time": "05:05 AM",
      "head_station": "SF / Daly City",
      "line": "ROUTE 5",
      "load": "0",
      "platform": "1"
    }
  ]
}

Get elevator status

List the station elevators currently out of service, which is what decides whether a step-free journey is possible today. BART reports them all in one sentence; it is kept as BART wrote it and also read into one row per elevator with its station's abbreviation, so count is how many are out and a workflow can check its own station. has_outages is the flag to branch on.

Inputs

None.

Outputs

advisorieslist
BART's own report, in the same shape as a service advisory: one entry whose description lists every lift out of service. Empty when they are all working.
countnumber
How many elevators are out of service.
datetext
BART's own date, mm/dd/yyyy.
has_outagestrue/false
True when at least one elevator is out of service.
outageslist
The same report read into one row per lift out of service, each with its station's abbreviation.
retrieved_attext
The same moment as an ISO 8601 instant.
timetext
BART's own Pacific clock time.
Example output
{
  "advisories": [
    {
      "description": "There are 2 elevators out of service at this time: 16TH: Station; LAKE: Station",
      "expires": null,
      "id": "11041215",
      "posted": null,
      "sms_text": "2 elevs out of svc: 16TH: stn; LAKE: stn",
      "station": "BART",
      "type": "ELEVATOR"
    }
  ],
  "count": 2,
  "date": "11/04/2026",
  "has_outages": true,
  "outages": [
    {
      "location": "Station",
      "station": "16TH"
    },
    {
      "location": "Station",
      "station": "LAKE"
    }
  ],
  "retrieved_at": "2026-11-04T12:14:32-08:00",
  "time": "12:14:32 PM PST"
}

Get real-time departures

Read the live departure board for a station: every train due, how many minutes away it is, which platform and direction it leaves from, how many cars it has, whether it takes bikes and how late it is running. BART groups its estimates by destination, so they are flattened here into one row per train and sorted by how soon it goes, which makes departures[0] the next train out whatever line it is on. A train at the platform reports 0 minutes with leaving_now set, rather than the word BART sends. Filter by platform, direction or both to narrow the board, or pick 'Every station (ALL)' to read the whole system in one request. When there is nothing due, the departures list is empty and BART's own explanation is in warning.

Inputs

StationstationtextRequired
Which station's board to read. Pick one, pick 'Every station (ALL)' to read the whole system in a single request, or reference a station abbreviation from a previous step. The platform and direction filters work with ALL too.
Platformplatformtext
Only return trains leaving from this platform. Leave empty for the whole station. Platform numbers are the station's own, so which platform is which depends on the station; Get station details lists a station's platforms for each direction.One of: 1 (Platform 1), 2 (Platform 2), 3 (Platform 3), 4 (Platform 4).
Directiondirectiontext
Only return trains heading this way. Leave empty for both directions. BART reports direction as north or south whatever the line actually does on a map. Works together with the platform filter: both apply.One of: n (Northbound), s (Southbound).

Outputs

countnumber
How many trains were returned.
datetext
BART's own date, mm/dd/yyyy.
departureslist
Every train that was returned, flattened out of BART's per-destination grouping and sorted by how soon it leaves, so departures[0] is the next train out.
retrieved_attext
The same moment as an ISO 8601 instant, so it can be compared with times from other steps.
station_countnumber
How many stations' boards were returned.
stationslist
The same trains grouped by station, which is the shape a departure board needs. One entry when one station was asked for; every station when ALL was.
timetext
BART's own Pacific clock time, e.g. '12:14:32 PM PST'.
warningtext
What BART said when it had nothing to report, e.g. 'No data matched your criteria.' Null when trains were returned.
Example output
{
  "count": 2,
  "date": "11/04/2026",
  "departures": [
    {
      "carries_bikes": true,
      "cars": 10,
      "delay_minutes": 4,
      "delay_seconds": 241,
      "destination": "Dublin/Pleasanton",
      "destination_abbreviation": "DUBL",
      "direction": "North",
      "is_cancelled": false,
      "is_delayed": true,
      "is_extra_train": false,
      "is_limited": false,
      "is_scheduled_estimate": false,
      "leaving_now": true,
      "line_color": "BLUE",
      "line_hex_color": "#0099cc",
      "minutes_away": 0,
      "minutes_text": "Leaving",
      "platform": "2",
      "station": "Embarcadero",
      "station_abbreviation": "EMBR"
    },
    {
      "carries_bikes": true,
      "cars": 10,
      "delay_minutes": 0,
      "delay_seconds": 0,
      "destination": "SF Airport",
      "destination_abbreviation": "SFIA",
      "direction": "South",
      "is_cancelled": false,
      "is_delayed": false,
      "is_extra_train": false,
      "is_limited": false,
      "is_scheduled_estimate": false,
      "leaving_now": false,
      "line_color": "YELLOW",
      "line_hex_color": "#ffff33",
      "minutes_away": 1,
      "minutes_text": "1",
      "platform": "1",
      "station": "Embarcadero",
      "station_abbreviation": "EMBR"
    }
  ],
  "retrieved_at": "2026-11-04T12:14:32-08:00",
  "station_count": 1,
  "stations": [
    {
      "abbreviation": "EMBR",
      "count": 2,
      "departures": [
        {
          "carries_bikes": true,
          "cars": 10,
          "delay_minutes": 4,
          "delay_seconds": 241,
          "destination": "Dublin/Pleasanton",
          "destination_abbreviation": "DUBL",
          "direction": "North",
          "is_cancelled": false,
          "is_delayed": true,
          "is_extra_train": false,
          "is_limited": false,
          "is_scheduled_estimate": false,
          "leaving_now": true,
          "line_color": "BLUE",
          "line_hex_color": "#0099cc",
          "minutes_away": 0,
          "minutes_text": "Leaving",
          "platform": "2",
          "station": "Embarcadero",
          "station_abbreviation": "EMBR"
        },
        {
          "carries_bikes": true,
          "cars": 10,
          "delay_minutes": 0,
          "delay_seconds": 0,
          "destination": "SF Airport",
          "destination_abbreviation": "SFIA",
          "direction": "South",
          "is_cancelled": false,
          "is_delayed": false,
          "is_extra_train": false,
          "is_limited": false,
          "is_scheduled_estimate": false,
          "leaving_now": false,
          "line_color": "YELLOW",
          "line_hex_color": "#ffff33",
          "minutes_away": 1,
          "minutes_text": "1",
          "platform": "1",
          "station": "Embarcadero",
          "station_abbreviation": "EMBR"
        }
      ],
      "name": "Embarcadero",
      "warning": null
    }
  ],
  "time": "12:14:32 PM PST",
  "warning": null
}

Get route details

Get one route in full, including every station it calls at in travel order. The station list is the reason to call this: it is the only place BART publishes which stops are on a line, which is what answers 'can I get there without changing?'.

Inputs

RouteroutetextRequired
Which route to look up. Pick one, or reference a route number from a previous step. A route is one direction of one line, so the northbound and southbound halves are separate routes.
Datedatedate
Which day's routes to read. Leave empty for today. A day beyond BART's published timetable answers with the routes running now.

Outputs

routeobject
The route, with every station it calls at.
Example output
{
  "route": {
    "abbreviation": "ANTC-MLBR",
    "color": "YELLOW",
    "destination": "MLBR",
    "direction": "South",
    "hex_color": "#FFFF33",
    "name": "Antioch to SF Int'l Airport SFO/Millbrae",
    "number": "1",
    "origin": "ANTC",
    "route_id": "ROUTE 1",
    "station_count": 28,
    "stations": [
      "ANTC",
      "PCTR",
      "PITT",
      "NCON",
      "CONC",
      "PHIL",
      "WCRK",
      "LAFY",
      "ORIN",
      "ROCK",
      "MCAR",
      "19TH",
      "12TH",
      "WOAK",
      "EMBR",
      "MONT",
      "POWL",
      "CIVC",
      "16TH",
      "24TH",
      "GLEN",
      "BALB",
      "DALY",
      "COLM",
      "SSAN",
      "SBRN",
      "SFIA",
      "MLBR"
    ]
  }
}

Get service advisories

Read what BART is currently reporting about its service: delays, disruptions and anything else riders are being told. BART never answers this with an empty list, so when nothing is wrong it sends a single 'no delays reported' placeholder; that entry is recognized and dropped here, which means an empty advisories list really does mean normal service and has_advisories is the flag to branch on.

Inputs

None.

Outputs

advisorieslist
Everything BART is currently reporting. Empty when service is normal: BART's 'no delays reported' placeholder is dropped, so an empty list really means nothing is wrong.
countnumber
How many advisories are in force.
datetext
BART's own date, mm/dd/yyyy.
has_advisoriestrue/false
True when something is actually being reported. Branch on this rather than on the count of a list that always used to hold one row.
retrieved_attext
The same moment as an ISO 8601 instant.
timetext
BART's own Pacific clock time.
Example output
{
  "advisories": [
    {
      "description": "Expect 30-minute delays starting at 9pm each night on Sunday-Thursday for riders traveling between Millbrae, SFO, and Daly City stations due to planned train control modernization construction work.",
      "expires": null,
      "id": "560",
      "posted": "Wed Nov 04 2026 06:36 AM PST",
      "sms_text": "Expect 30 min delays starting at 9pm each night on sunday-thursday for riders traveling between MLBR, SFO, and DALY stns due to planned train control modernization construction work.",
      "station": "BART",
      "type": "DELAY"
    }
  ],
  "count": 1,
  "date": "11/04/2026",
  "has_advisories": true,
  "retrieved_at": "2026-11-04T12:14:32-08:00",
  "time": "12:14:32 PM PST"
}

Get station access details

Find out how to get into, out of and around one station: which elevators reach the trains and what to do when one is out, parking and when it fills up, bike racks, lockers, bike stations and bike share, car share, and the connecting transit that serves it. Parking, bikes, lockers and bike share each come back twice, as a true/false flag and as BART's own description, so a workflow can branch on the flag and show the words. BART writes the descriptions as HTML.

Inputs

StationstationtextRequired
Which station to look up. Pick one, or reference a station abbreviation such as EMBR from a previous step.

Outputs

stationobject
How to get into, out of and around the station.
Example output
{
  "station": {
    "abbreviation": "EMBR",
    "bike_share": "<p>A BayWheels station is located at 3 Beale St. (Beale & Market).</p>",
    "bike_station_text": "<p>The Embarcadero Bike Station has a self-service bicycle parking facility.</p>",
    "car_share": "<p><a href=\"http://www.zipcar.com/\">Zipcar</a></p>",
    "destinations": null,
    "elevators": "<p>Two different elevators are needed to travel between the street and the trains.</p><ul><li>Take the street elevator (at Main Street and Market Street) to access the station concourse.</li><li>Take the platform elevator to access all trains.</li></ul>",
    "entering": "<h2>Elevator Outage Options - Embarcadero Station</h2><p>In case of an elevator outage, use the following options or contact the station agent for assistance.</p>",
    "exiting": null,
    "fill_time": null,
    "has_bike_racks": false,
    "has_bike_share": true,
    "has_bike_station": true,
    "has_lockers": false,
    "has_parking": false,
    "link": "http://www.bart.gov/stations/EMBR",
    "lockers": "<p>Embarcadero Station does not offer any lockers. </p>",
    "name": "Embarcadero",
    "parking": "<p>There's no parking at Embarcadero Station. San Francisco BART stations with parking include Glen Park and Daly City.</p>",
    "transit_information": "<p>Embarcadero Station is served by San Francisco Muni and the California Street Cable Car.</p>"
  }
}

Get station details

Get one station in full. This is the only lookup that carries the platform layout and the routes calling at the station in each direction, both of which the station list leaves out, along with BART's own description of the place and what is worth knowing nearby.

Inputs

StationstationtextRequired
Which station to look up. Pick one, or reference a station abbreviation such as EMBR from a previous step.

Outputs

stationobject
The station, with its platforms, routes and surroundings.
Example output
{
  "station": {
    "abbreviation": "EMBR",
    "address": "298 Market Street",
    "attraction": "More station area attractions from <a href=\"http://www.yelp.com/search?find_desc=+&ns=1&rpp=10&find_loc=298 Market Street, San Francisco, CA 94105\">yelp.com</a>",
    "city": "San Francisco",
    "county": "sanfrancisco",
    "cross_street": "Nearby Cross: Beale St.",
    "food": "Nearby restaurant reviews from <a href=\"http://www.yelp.com/search?find_desc=Restaurant+&ns=1&rpp=10&find_loc=298 Market Street, San Francisco, CA 94105\">yelp.com</a>",
    "intro": "Located in San Francisco's Financial District at the foot of Market Street, Embarcadero Station is close to the Ferry Building, Embarcadero Center, Salesforce Transit Center and the California Street cable car. Public restrooms are available.",
    "latitude": 37.792874,
    "link": "http://www.bart.gov/stations/EMBR",
    "longitude": -122.39702,
    "name": "Embarcadero",
    "north_platforms": [
      "2"
    ],
    "north_routes": [
      "ROUTE 2",
      "ROUTE 6",
      "ROUTE 8",
      "ROUTE 12"
    ],
    "platform_info": null,
    "shopping": "Local shopping from <a href=\"http://www.yelp.com/search?find_desc=Shopping+&ns=1&rpp=10&find_loc=298 Market Street, San Francisco, CA 94105\">yelp.com</a>",
    "south_platforms": [
      "1"
    ],
    "south_routes": [
      "ROUTE 1",
      "ROUTE 5",
      "ROUTE 7",
      "ROUTE 11"
    ],
    "state": "CA",
    "zipcode": "94111"
  }
}

Get the fare between two stations

Look up what it costs to travel between two stations without planning a journey to get it. The standard Clipper fare comes back alongside every class BART prices the same trip at (Clipper, Clipper START, Senior/Disabled and Youth), cheapest first, so a workflow can quote the right price for who is traveling.

Inputs

From stationorigintextRequired
Where the journey starts. Pick a station, or reference an abbreviation such as EMBR from a previous step.
To stationdestinationtextRequired
Where the journey ends. Must be a different station from the one it starts at.
Datedatedate
Which day to read. Leave empty for today. BART answers for days from about 10 days back to the end of its published timetable, roughly two months ahead. It refuses an earlier day, and a later one either refuses or, for a station's timetable, answers with no trains.

Outputs

clipper_farenumber
BART's discount Clipper fare: the Senior/Disabled Clipper price, not the standard one, which is fare.
destinationtext
Where it ends, as a station abbreviation.
farenumber
The standard Clipper fare, in US dollars.
fareslist
Every fare class for this journey, cheapest first.
origintext
Where the journey starts, as a station abbreviation.
Example output
{
  "clipper_fare": 1.65,
  "destination": "12TH",
  "fare": 4.5,
  "fares": [
    {
      "amount": 1.65,
      "class": "rtcclipper",
      "name": "Senior/Disabled Clipper"
    },
    {
      "amount": 2.25,
      "class": "start",
      "name": "Clipper START"
    },
    {
      "amount": 2.25,
      "class": "student",
      "name": "Youth Clipper"
    },
    {
      "amount": 4.5,
      "class": "clipper",
      "name": "Clipper"
    }
  ],
  "origin": "EMBR"
}

Get the number of trains running

Count the BART trains in service right now. It is the cheapest read of the system's health there is: the number falls towards zero overnight and drops sharply during a major disruption, so a workflow can watch it without opening a single departure board.

Inputs

None.

Outputs

datetext
BART's own date, mm/dd/yyyy.
retrieved_attext
The same moment as an ISO 8601 instant.
timetext
BART's own Pacific clock time.
train_countnumber
How many BART trains are in service right now. It falls towards zero overnight and during a major disruption.
Example output
{
  "date": "11/04/2026",
  "retrieved_at": "2026-11-04T12:14:32-08:00",
  "time": "12:14:32 PM PST",
  "train_count": 59
}

List routes

List every route BART is running, with the color each line is known by and the direction it runs in. A line is two routes, one per direction, so the northbound and southbound halves appear separately and direction is what tells them apart. The route number on each row is what the route actions take.

Inputs

Datedatedate
Which day's routes to read. Leave empty for today. A day beyond BART's published timetable answers with the routes running now.

Outputs

countnumber
How many routes that comes to.
routeslist
Every route BART is running.
Example output
{
  "count": 2,
  "routes": [
    {
      "abbreviation": "ANTC-SFIA",
      "color": "YELLOW",
      "direction": "South",
      "hex_color": "#FFFF33",
      "name": "Antioch to SF Int'l Airport SFO/Millbrae",
      "number": "1",
      "route_id": "ROUTE 1"
    },
    {
      "abbreviation": "SFIA-ANTC",
      "color": "YELLOW",
      "direction": "North",
      "hex_color": "#FFFF33",
      "name": "Millbrae/SF Int'l SFO to Antioch",
      "number": "2",
      "route_id": "ROUTE 2"
    }
  ]
}

List stations

List every BART station with its address, city, county and coordinates. The whole system comes back in one request and it only changes when BART opens or renames a station, so this is where a workflow resolves a name or a location to the abbreviation every other action takes.

Inputs

None.

Outputs

countnumber
How many stations there are.
stationslist
Every BART station, in the order BART lists them.
Example output
{
  "count": 2,
  "stations": [
    {
      "abbreviation": "12TH",
      "address": "1245 Broadway",
      "city": "Oakland",
      "county": "alameda",
      "latitude": 37.803768,
      "longitude": -122.27145,
      "name": "12th St./Oakland City Center",
      "state": "CA",
      "zipcode": "94612"
    },
    {
      "abbreviation": "16TH",
      "address": "2000 Mission Street",
      "city": "San Francisco",
      "county": "sanfrancisco",
      "latitude": 37.765062,
      "longitude": -122.419694,
      "name": "16th St./Mission",
      "state": "CA",
      "zipcode": "94110"
    }
  ]
}

Plan a trip

Plan a journey between two stations leaving at a given time. Each suggestion carries when it leaves and arrives, how long it takes, what it costs in every fare class BART prices it at, and the trains that make it up leg by leg with their platforms, plus a transfer count BART does not send. The suggestions come back earliest first. Leave the time empty to plan from now; use Trips before and Trips after to take in the departures either side of it.

Inputs

From stationorigintextRequired
Where the journey starts. Pick a station, or reference an abbreviation such as EMBR from a previous step.
To stationdestinationtextRequired
Where the journey ends. Must be a different station from the one it starts at.
Depart atdeparture_timedate and time
When the traveler wants to leave. Leave empty to plan from now. BART runs on Pacific time and the value is converted for you, so a time carried in from an earlier step does not have to be in that zone. BART plans trips from 10 days back to 8 weeks ahead and refuses any other day.
Trips beforebeforenumber
How many earlier departures to include as well, from 0 to 4. BART returns 2 when this is left empty. Trips before and after can add up to 6 at most.From 0 to 4.
Trips afterafternumber
How many later departures to include as well, from 0 to 4. BART returns 2 when this is left empty, and always at least 1, so 0 returns 1. Trips before and after can add up to 6 at most.From 0 to 4.

Outputs

countnumber
How many journeys came back.
datetext
The day BART planned for, e.g. 'Nov 4, 2026'.
destinationtext
The station they end at.
origintext
The station the journeys start from.
timetext
The time BART planned from, e.g. '12:15 PM'.
tripslist
The journeys BART suggests, earliest first. More than one comes back because the Trips before and Trips after fields ask for the departures either side of the requested time.
Example output
{
  "count": 1,
  "date": "Nov 4, 2026",
  "destination": "12TH",
  "origin": "EMBR",
  "time": "12:15 PM",
  "trips": [
    {
      "arrive_date": "11/04/2026",
      "arrive_time": "12:32 PM",
      "arrives_at": "2026-11-04T12:32:00-08:00",
      "clipper_fare": 1.65,
      "depart_date": "11/04/2026",
      "depart_time": "12:20 PM",
      "departs_at": "2026-11-04T12:20:00-08:00",
      "destination": "12TH",
      "duration_minutes": 12,
      "fare": 4.5,
      "fares": [
        {
          "amount": 1.65,
          "class": "rtcclipper",
          "name": "Senior/Disabled Clipper"
        },
        {
          "amount": 2.25,
          "class": "start",
          "name": "Clipper START"
        },
        {
          "amount": 2.25,
          "class": "student",
          "name": "Youth Clipper"
        },
        {
          "amount": 4.5,
          "class": "clipper",
          "name": "Clipper"
        }
      ],
      "legs": [
        {
          "arrive_date": "11/04/2026",
          "arrive_time": "12:32 PM",
          "arrives_at": "2026-11-04T12:32:00-08:00",
          "carries_bikes": true,
          "depart_date": "11/04/2026",
          "depart_time": "12:20 PM",
          "departs_at": "2026-11-04T12:20:00-08:00",
          "destination": "12TH",
          "destination_platform": "3",
          "head_station": "Antioch",
          "line": "ROUTE 2",
          "load": "0",
          "order": 1,
          "origin": "EMBR",
          "origin_platform": "2"
        }
      ],
      "origin": "EMBR",
      "transfer_count": 0
    }
  ]
}

Plan a trip arriving by a time

Plan a journey worked backwards from when the traveler has to be there, which is what answers 'what is the last train that still gets me to the airport by six?'. The answer is shaped exactly like Plan a trip, so a workflow can read either the same way.

Inputs

From stationorigintextRequired
Where the journey starts. Pick a station, or reference an abbreviation such as EMBR from a previous step.
To stationdestinationtextRequired
Where the journey ends. Must be a different station from the one it starts at.
Arrive byarrival_timedate and time
When the traveler has to be there. Leave empty to plan from now. Converted to Pacific time for you, the same as the departure field, and within the same 10 days back to 8 weeks ahead.
Trips beforebeforenumber
How many earlier departures to include as well, from 0 to 4. BART returns 2 when this is left empty. Trips before and after can add up to 6 at most.From 0 to 4.
Trips afterafternumber
How many later departures to include as well, from 0 to 4. BART returns 2 when this is left empty, and always at least 1, so 0 returns 1. Trips before and after can add up to 6 at most.From 0 to 4.

Outputs

countnumber
How many journeys came back.
datetext
The day BART planned for, e.g. 'Nov 4, 2026'.
destinationtext
The station they end at.
origintext
The station the journeys start from.
timetext
The time BART planned from, e.g. '12:15 PM'.
tripslist
The journeys BART suggests, earliest first. More than one comes back because the Trips before and Trips after fields ask for the departures either side of the requested time.
Example output
{
  "count": 1,
  "date": "Nov 4, 2026",
  "destination": "12TH",
  "origin": "EMBR",
  "time": "12:15 PM",
  "trips": [
    {
      "arrive_date": "11/04/2026",
      "arrive_time": "12:32 PM",
      "arrives_at": "2026-11-04T12:32:00-08:00",
      "clipper_fare": 1.65,
      "depart_date": "11/04/2026",
      "depart_time": "12:20 PM",
      "departs_at": "2026-11-04T12:20:00-08:00",
      "destination": "12TH",
      "duration_minutes": 12,
      "fare": 4.5,
      "fares": [
        {
          "amount": 1.65,
          "class": "rtcclipper",
          "name": "Senior/Disabled Clipper"
        },
        {
          "amount": 2.25,
          "class": "start",
          "name": "Clipper START"
        },
        {
          "amount": 2.25,
          "class": "student",
          "name": "Youth Clipper"
        },
        {
          "amount": 4.5,
          "class": "clipper",
          "name": "Clipper"
        }
      ],
      "legs": [
        {
          "arrive_date": "11/04/2026",
          "arrive_time": "12:32 PM",
          "arrives_at": "2026-11-04T12:32:00-08:00",
          "carries_bikes": true,
          "depart_date": "11/04/2026",
          "depart_time": "12:20 PM",
          "departs_at": "2026-11-04T12:20:00-08:00",
          "destination": "12TH",
          "destination_platform": "3",
          "head_station": "Antioch",
          "line": "ROUTE 2",
          "load": "0",
          "order": 1,
          "origin": "EMBR",
          "origin_platform": "2"
        }
      ],
      "origin": "EMBR",
      "transfer_count": 0
    }
  ]
}

On this page