Open documentation ↗Overview
Bus stop information, route and schedule data, and bus positions.
Bus Route and Stop Methods is a transportation API from wmata.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 12 endpoints.
At a glance
- Authentication
- API key
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Transportation
- Base URL
http://api.wmata.com/Bus.svc- Version
- 1.0
- Endpoints
- 12
- OpenAPI
- Specification ↗
- Spec updated
- 2021-06-30
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "http://api.wmata.com/Bus.svc/BusPositions" \
-H "Accept: application/json" \
-H "X-API-Key: YOUR_API_KEY"const response = await fetch("http://api.wmata.com/Bus.svc/BusPositions", {
method: "GET",
headers: {
"Accept": "application/json",
"X-API-Key": "YOUR_API_KEY",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.request(
"GET",
"http://api.wmata.com/Bus.svc/BusPositions",
headers={
"Accept": "application/json",
"X-API-Key": "YOUR_API_KEY",
},
timeout=30,
)
print(response.json())Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /BusPositions | XML - Bus Position |
| GET | /RouteDetails | XML - Path Details |
| GET | /RouteSchedule | XML - Schedule |
| GET | /Routes | XML - Routes |
| GET | /StopSchedule | XML - Schedule at Stop |
| GET | /Stops | XML - Stop Search |
| GET | /json/jBusPositions | JSON - Bus Position |
| GET | /json/jRouteDetails | JSON - Path Details |
| GET | /json/jRouteSchedule | JSON - Schedule |
| GET | /json/jRoutes | JSON - Routes |
| GET | /json/jStopSchedule | JSON - Schedule at Stop |
| GET | /json/jStops | JSON - Stop Search |
Questions
Does the Bus Route and Stop Methods API need an API key?
Yes. The Bus Route and Stop Methods API uses API key authentication; the documentation explains how to get credentials.
Does the Bus Route and Stop Methods API support HTTPS?
Yes, the Bus Route and Stop Methods API is served over HTTPS.
How many endpoints does the Bus Route and Stop Methods API have?
Its OpenAPI description lists 12 endpoints in version 1.0. All of them are shown on this page.
What are alternatives to the Bus Route and Stop Methods API?
Other Transportation APIs include airportsapi, Transport for London, England, Uber, Transport for Spain, Amadeus for Developers.
Similar transportation APIs
Compare alternatives →airportsapi
TransportationGet name and website-URL for airports by ICAO code
Transport for London, England
TransportationDiscover TFL APIs
Uber
TransportationUber ride requests and price estimation
Transport for Spain
TransportationPublic trains of Spain
Amadeus for Developers
TransportationTravel Search - Limited usage
Boston MBTA Transit
TransportationStations and predicted arrivals for MBTA
Listed from APIs.guru (CC0).