Transport for Washington, US API
Overview
Transport for Washington, US (WMATA API) provides real-time and scheduled data for Washington DC's Metro rail and bus system. You can access live train predictions, bus arrivals, rail station information, and service alerts. An API key is required — sign up for a free developer account at developer.wmata.com which allows 10 calls/second and 50,000 calls/day.
Beginner Tip
Register at developer.wmata.com for a free subscription key. Use the "Default Tier" subscription — it allows 10 calls/second and 50,000 calls/day, which is more than enough for personal projects.
Available Data
Example Response
{
"route": "Line 1",
"origin": "Station A",
"destination": "Station B",
"departure": "08:30",
"arrival": "09:15",
"status": "On Time",
"delays_min": 0
} Field Reference
Trains List of train arrival predictions for the requested station. Trains[].Car Number of cars on the train (e.g., 6 or 8). Trains[].Destination Final destination station name of the train. Trains[].Line Metro line color code (e.g., RD for Red, BL for Blue). Trains[].Min Minutes until arrival — BRD means boarding, ARR means arriving. Trains[].LocationName Name of the station being queried. Implementation Example
const url = "https://developer.wmata.com/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"Authorization": "Bearer YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Amadeus for Developers
Amadeus for Developers is an OAuth2-protected travel API offering flight search, hotel availability, airport information, and more from one of the largest global distribution systems.
apilayer aviationstack
Aviationstack by apilayer provides real-time flight status, schedules, and global aviation data including airports and airlines.
BIC-Boxtech
BIC-Boxtech provides technical specifications for shipping containers in the global fleet, including dimensions, tare weight, and capacity details.
Grab
The Grab API allows developers to integrate Grab services — including ride-hailing, food delivery, and payments — into their own applications across Southeast Asia.
Transport for Sao Paulo, Brazil
The SPTrans Olho Vivo API provides real-time bus tracking data for São Paulo's massive municipal bus system in Brazil, one of the largest in the world.