Product
Jentic OSThe workplace. An in-house AI platform for every employeeJentic OneSafe access. Agents reach your systems without holding keysJentic AIRThe foundation. Gets your existing platforms ready for AI
Pricing
Developers

GET STARTED

API DirectoryBrowse 10,000+ APIs Ready For AI Agent IntegrationDocumentationGuides and API reference

TOOLS

API ScoringCheck your AI Readiness using our scorecardArazzo UIVisualize Arazzo Workflows As Interactive DocumentationArazzo EditorBuild And Edit Multi-Step API Workflows Visually

COMMUNITY

GitHubOpen source projects and examplesOpen StandardsBuilt on open specs. Never locked in.
Resources
Company
About UsOur mission and teamCareersJoin our teamContactGet in touch
Try it now
Jentic OSJentic OneJentic AIR
Pricing
API DirectoryDocumentationAPI ScoringArazzo UIArazzo EditorGitHubOpen Standards
Resources
About UsCareersContact
Try it now
JenticJentic
Products
  • Jentic OS
  • Jentic One
  • Jentic AIR
For Developers
  • API Directory
  • Documentation
  • GitHub
Company
  • About Jentic
  • Careers
  • Contact Us
  • Trust Centre
ISO/IEC 27001:2022 certification badge issued by Prescient SecurityISO/IEC 27001:2022 certification badge issued by Prescient Security

Information Security Management System

Certified to ISO/IEC 27001:2022 by Prescient Security

Terms & Conditions•Privacy Policy•
© 2026 Jentic Technology Ltd. All rights reserved.
Switch to light modeSwitch to dark mode
APIs / Maps Geolocation / BART Legacy API
BART Legacy API logo

Bart Gov BART Legacy API

Agent-ready OpenAPI document · curated by JenticMaps GeolocationPlaces SearchapiKey6 EndpointsREST

Know of an official OpenAPI document? Contribute it →

For Agents

Look up BART real-time departures, stations, routes, schedules, and service advisories for Bay Area public transit. Used by agents that build commute assistants and transit dashboards.

Use for: Get the next train departures from Embarcadero station, List all BART stations in the system, Find a route between Berkeley and SFO airport, Check the schedule for trains arriving at Civic Center

Not supported: Does not handle ticket purchase, fare payment, or BART parking reservations - use for transit data, schedules, and advisories only.

Jentic publishes the only available OpenAPI specification for the BART Legacy API, keeping it validated and agent-ready. The Bay Area Rapid Transit (BART) Legacy API exposes real-time train departure estimates, station information, route data, schedule data, and service advisories for the San Francisco Bay Area's rapid transit network. A public testing key (MW9S-E7SL-26DU-VV8V) is documented for development. Useful for transit-aware mobile apps, commute assistants, and data-driven research into Bay Area transit operations.

Jentic One on GithubView OpenAPI Document

Install Jentic One Beta

Connect the BART Legacy API to your agent

Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the BART Legacy API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.

Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.

1

Step 1: Jentic One Host machine

# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fbart.gov%2Fbart" | sh
2

Step 2: Agent machine

# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fbart.gov%2Fbart" | sh
jentic register       # connects your agent to your Jentic One instance

Jentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.

Capabilities

What an agent can do with BART Legacy API.

Retrieve real-time estimated departures for any BART station

List all BART stations with platform, address, and coordinate metadata

Look up route definitions and the stations served on each route

Pull schedule information and plan trips between two stations

Read service advisories, elevator status, and current train counts

Check the BART API version for compatibility checks

Use Cases

Patterns agents use BART Legacy API for, with concrete tasks.

★ Commute Assistant Notifications

Drive a personalised commute assistant that surfaces the next BART departures from the user's home or work station and warns about service advisories before they leave the office. The /etd.aspx endpoint returns real-time estimated departures by station, while /bsa.aspx exposes service advisories and elevator status. Suitable for mobile commute apps, smart-display widgets, and chat-based assistants.

Call GET /etd.aspx with orig=EMBR and key=<api_key> and return the next two southbound departures with destination and minutes.

Trip Planning for Bay Area Visitors

Power trip planning experiences for visitors and locals using BART's schedule and route endpoints. /sched.aspx supports trip planning between two stations on a given date and time, returning legs, transfer points, and durations. Pair with /stn.aspx for station addresses and coordinates so that a map UI can display the journey end to end.

Call GET /sched.aspx with orig=BERK, dest=SFIA, and a target departure time, then return the suggested itinerary with departure, arrival, and any transfer.

Transit Operations and Accessibility Dashboards

Build internal or public-facing dashboards that monitor BART operations including elevator status, service advisories, and active train counts. /bsa.aspx provides advisory text and elevator updates that are critical for accessibility-focused users. Combine with /route.aspx and /stn.aspx for a full system view, refreshing on a short interval to surface incidents quickly.

Call GET /bsa.aspx for elevator advisories and post any out-of-service elevator updates to a Slack channel within five minutes.

AI Agent Bay Area Transit Assistant via Jentic

Run an AI assistant that answers transit questions like 'when's the next train to SFO from Powell' through Jentic. The agent searches Jentic for an intent like 'get next bart departures', loads the BART operation, and executes the call with the API key held in your Jentic One instance. Useful for chat copilots embedded in city guide apps or workplace assistants.

Search Jentic for 'get bart real-time departures', execute /etd.aspx with orig=POWL, and return the next train heading toward SFIA with minutes until departure.

Key Endpoints

6 endpoints — jentic publishes the only available openapi specification for the bart legacy api, keeping it validated and agent-ready.

METHOD

PATH

DESCRIPTION

GET

/etd.aspx

Get real-time estimated departures

GET

/stn.aspx

List stations

GET

/route.aspx

Get route information

GET

/sched.aspx

Get schedule information or plan a trip

GET

/bsa.aspx

Get service advisories, elevator status, or train count

GET

/version.aspx

Get API version metadata

GET

/etd.aspx

Get real-time estimated departures

GET

/stn.aspx

List stations

GET

/route.aspx

Get route information

GET

/sched.aspx

Get schedule information or plan a trip

GET

/bsa.aspx

Get service advisories, elevator status, or train count

GET

/version.aspx

Get API version metadata

Why Jentic?

What agents get from Jentic-routed access to this vendor.

Setup

Setup

Wiring the BART Legacy API by hand means appending your key as a query parameter, learning the .aspx endpoints for departures, stations, routes, and advisories, and parsing the legacy response formats yourself. Through Jentic you install once, import the BART Legacy API from the API Directory, store the key once, and your agent calls it.

Permission scoping

Permission scoping

BART carries its station abbreviations and time parameters as query parameters rather than as a resource in the URL path, so scope the agent to the operations it needs, such as getting real-time departures or a schedule. You choose that operation set, and since this API is read-only there are no write operations to add.

Credential management

Credential isolation

Your BART API key is stored once, encrypted, by your own Jentic One instance and injected as the key query parameter at execution time. It never enters the agent's prompt, logs, or context.

Intent-based discovery

Intent-based discovery

Agents search Jentic by intent such as 'get the next train from a BART station' or 'plan a BART trip', and Jentic returns the matching BART operation with its input schema, including station abbreviations and time parameters, so the agent calls the right endpoint without browsing the reference docs.

Related APIs

Alternatives and complements available in the Jentic catalogue.

Alternative

Transit App

→

Multi-agency transit data for trip planning and real-time arrivals.

Choose Transit App when coverage beyond BART matters; choose the BART Legacy API when only Bay Area Rapid Transit data is needed.

Complementary

MTA

→

New York transit data for cross-city or multi-network apps.

Pair with the BART Legacy API when an app spans both Bay Area and New York metro coverage.

FAQs

Specific to using BART Legacy API through Jentic.

Why is there no official OpenAPI spec for the BART Legacy API?

BART does not publish an OpenAPI specification for its legacy data API. Jentic generates and maintains this spec so that AI agents and developers can call it via structured tooling. It is validated against the live API and kept up to date. Get started with Jentic One, the self-hosted execution layer.

What authentication does the BART Legacy API use?

The API uses an API key passed as the key query parameter on every request. BART publishes a public testing key (MW9S-E7SL-26DU-VV8V) for development. When called through Jentic, the API key is held in your Jentic One instance and injected at execution time.

Can I get real-time train departures with the BART API?

Yes. Call GET /etd.aspx with the originating station abbreviation (for example, orig=EMBR) and the API key. The response includes estimated departures by destination with minutes until arrival.

What are the rate limits for the BART Legacy API?

BART does not publish formal rate limits for the legacy API; the public testing key is intended for low-volume development use. For production traffic, request a dedicated key from BART and cache station and route metadata locally to reduce repeat calls.

How do I plan a BART trip through Jentic?

Install the Jentic SDK with pip install jentic, search for 'plan a bart trip', and execute /sched.aspx with origin and destination station codes. Jentic injects the API key as a query parameter and returns the itinerary JSON, which the agent can summarise as a text reply.

Does the BART API expose elevator status?

Yes. The /bsa.aspx endpoint surfaces service advisories, elevator status, and current train count. It is the primary data source for accessibility-focused features and operational monitoring.

Can I limit what my agent is allowed to do with the BART Legacy API?

Yes. Because you run Jentic One yourself, your own rules decide which BART operations your agent may call, so you can grant only the ones it needs, such as getting real-time departures from /etd.aspx or planning a trip with /sched.aspx, while leaving out station, route, or advisory lookups. Since the BART Legacy API is read-only, there are no write operations to expose, so a scoped agent can only read the transit data you allow. Your BART API key is stored by your own Jentic One instance and injected as the key query parameter at execution time, so it never reaches the agent's prompt or logs.

GET STARTED

Start building with BART Legacy API

Explore with Jentic One
View OpenAPI Document