BART (Bay Area Rapid Transit) provides train service throughout the San Francisco Bay Area.
Go to siteWith the BART API, you can access real-time arrival information for BART trains, as well as schedule information. This makes it possible to build applications that can help people plan their trips on BART, or track the status of a train in real-time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bart: {
type: "app",
app: "bart",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.bart.gov/api/version.aspx?key=${this.bart.$auth.api_key}&json=y`,
})
},
})
BART uses API keys for authentication. When you connect your BART account, Pipedream securely stores the keys so you can easily authenticate to BART APIs in both code and no-code steps.
Your API Key is sent to your email when you sign up to BART