Rail line and station information, including locations, fares, times, and parking.
http://api.wmata.com/Rail.svc
Auth type
API Key Header
Auth header
api_key: YOUR_API_KEY
Rate limit
Not officially published
Pricing
Enterprise / contact sales
Free quota
None
Documentation
http://api.wmata.com/Rail.svc
Endpoint status
Server online — HTTP 404 — server is online but path returned an error (may require auth)6.64s
(checked Mar 29, 2026)
Builder score
D
36%
builder-friendly
API key in the request header (api_key)
api_key: YOUR_API_KEY
Free with National Rail API key. UK railway station data and live departures.
| Method | Path | Description |
|---|---|---|
| GET | /Lines |
XML - Lines |
| GET | /Path |
XML - Path Between Stations |
| GET | /SrcStationToDstStationInfo |
XML - Station to Station Information |
| GET | /StationEntrances |
XML - Station Entrances |
| GET | /StationInfo |
XML - Station Information |
| GET | /StationParking |
XML - Parking Information |
| GET | /StationTimes |
XML - Station Timings |
| GET | /Stations |
XML - Station List |
curl -X GET 'http://api.wmata.com/Rail.svc/Lines' \ -H 'api_key: YOUR_API_KEY'
{}
Data sourced from API Map. Always verify pricing and rate limits against the official Rail Station Information documentation.