# Rail Station Information API

> Rail line and station information, including locations, fares, times, and parking.

Rail Station Information is a transportation API from wmata.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 16 endpoints.

## At a glance

- Category: [Transportation](https://www.openparable.com/apis/category/transportation)
- Provider: wmata.com
- Authentication: API key
- HTTPS: Yes
- CORS: Not stated
- Base URL: http://api.wmata.com/Rail.svc
- Documentation: https://wmata.com/
- OpenAPI description: https://api.apis.guru/v2/specs/wmata.com/rail-station/1.0/swagger.json
- Version: 1.0
- Specification updated: 2021-06-21

## Example request

```bash
curl -X GET "http://api.wmata.com/Rail.svc/Lines" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
```

## Endpoints

- `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
- `GET /json/jLines` — JSON - Lines
- `GET /json/jPath` — JSON - Path Between Stations
- `GET /json/jSrcStationToDstStationInfo` — JSON - Station to Station Information
- `GET /json/jStationEntrances` — JSON - Station Entrances
- `GET /json/jStationInfo` — JSON - Station Information
- `GET /json/jStationParking` — JSON - Parking Information
- `GET /json/jStationTimes` — JSON - Station Timings
- `GET /json/jStations` — JSON - Station List

## Questions

### Does the Rail Station Information API need an API key?

Yes. The Rail Station Information API uses API key authentication; the documentation explains how to get credentials.

### Does the Rail Station Information API support HTTPS?

Yes, the Rail Station Information API is served over HTTPS.

### How many endpoints does the Rail Station Information API have?

Its OpenAPI description lists 16 endpoints in version 1.0. All of them are shown on this page.

### What are alternatives to the Rail Station Information API?

Other Transportation APIs include airportsapi, Transport for London, England, Uber, Transport for Spain, Amadeus for Developers.

## Similar transportation APIs

- [airportsapi](https://www.openparable.com/apis/airportsapi): Get name and website-URL for airports by ICAO code
- [Transport for London, England](https://www.openparable.com/apis/transport-for-london-england): Discover TFL APIs
- [Uber](https://www.openparable.com/apis/uber): Uber ride requests and price estimation
- [Transport for Spain](https://www.openparable.com/apis/transport-for-spain): Public trains of Spain
- [Amadeus for Developers](https://www.openparable.com/apis/amadeus-for-developers): Travel Search - Limited usage
- [Boston MBTA Transit](https://www.openparable.com/apis/boston-mbta-transit): Stations and predicted arrivals for MBTA
- [ADS-B Exchange](https://www.openparable.com/apis/ads-b-exchange): Access real-time and historical data of any and all airborne aircraft
- [Sabre for Developers](https://www.openparable.com/apis/sabre-for-developers): Travel Search - Limited usage
- [GoToTraining](https://www.openparable.com/apis/gototraining): The GoToTraining API enables developers to use the stable and robust GoToTraining functionality as the basis for online trainings in a proprietary learning management system. The GoToTraining APIs provide the ability to access the scheduling, registration, management, and reporting functions of GoToTraining from external applications. With the ability to tightly integrate GoToTraining into your learning infrastructure, you can offer your learners a seamless user experience and provide them with a market leading virtual classroom environment.
- [Transport for The Netherlands](https://www.openparable.com/apis/transport-for-the-netherlands): Discover APIs, learn how to use them, try them out interactively, and sign up to acquire keys.
- [Transport for Hessen, Germany](https://www.openparable.com/apis/transport-for-hessen-germany): RMV API (Public Transport in Hessen)
- [Transport for Auckland, New Zealand](https://www.openparable.com/apis/transport-for-auckland-new-zealand): The Auckland Transport developer portal allows you to explore the diverse range of APIs and transport data from Auckland Transport and NZTA.

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/rail-station-information (OpenParable). Cite the canonical URL above.
