Rail Station Information
Rail line and station information, including locations, fares, times, and parking.
Logistics & shipping#openapi#transport
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Rail line and station information, including locations, fares, times, and parking.
Endpoints 16
- GETXML - Lines
/Lines<h4 class="text-primary">Description</h4> <p>Returns information about all rail lines.</p> <h4 class="text-primary">Response Elements</h4> <table class="table… - GETXML - Path Between Stations
/Path?FromStationCode=N06&ToStationCode=G05<h4 class="text-primary">Description</h4> <p>Returns a set of ordered stations and distances between two stations on the <em>same line</em>.</p> <p>Note that… - GETXML - Station to Station Information
/SrcStationToDstStationInfo?FromStationCode=E10&ToStationCode=J03<h4 class="text-primary">Description</h4> <p>Returns a distance, fare information, and estimated travel time between any two stations, including those on… - GETXML - Station Entrances
/StationEntrances?Lat=38.8978168&Lon=-77.0404246&Radius=500<h4 class="text-primary">Description</h4> <p>Returns a list of nearby station entrances based on latitude, longitude, and radius (meters). Omit search… - GETXML - Station Information
/StationInfo?StationCode=A01<h4 class="text-primary">Description</h4> <p>Returns station location and address information based on a given StationCode.</p> <h4… - GETXML - Parking Information
/StationParking?StationCode=E08<h4 class="text-primary">Description</h4> <p>Returns parking information at a station based on a given StationCode. Omit the StationCode to return parking… - GETXML - Station Timings
/StationTimes?StationCode=E10<h4 class="text-primary">Description</h4> <p>Returns opening and scheduled first/last train times based on a given StationCode. Omit the StationCode to return… - GETXML - Station List
/Stations?LineCode=RD<h4 class="text-primary">Description</h4> <p>Returns a list of station location and address information based on a given LineCode. Omit the LineCode to return… - GETJSON - Lines
/json/jLines<h4 class="text-primary">Description</h4> <p>Returns information about all rail lines.</p> <h4 class="text-primary">Response Elements</h4> <table class="table… - GETJSON - Path Between Stations
/json/jPath?FromStationCode=N06&ToStationCode=G05<h4 class="text-primary">Description</h4> <p>Returns a set of ordered stations and distances between two stations on the <em>same line</em>.</p> <p>Note that… - GETJSON - Station to Station Information
/json/jSrcStationToDstStationInfo?FromStationCode=E10&ToStationCode=J03<h4 class="text-primary">Description</h4> <p>Returns a distance, fare information, and estimated travel time between any two stations, including those on… - GETJSON - Station Entrances
/json/jStationEntrances?Lat=38.8978168&Lon=-77.0404246&Radius=500<h4 class="text-primary">Description</h4> <p>Returns a list of nearby station entrances based on latitude, longitude, and radius (meters). Omit search… - GETJSON - Station Information
/json/jStationInfo?StationCode=A01<h4 class="text-primary">Description</h4> <p>Returns station location and address information based on a given StationCode.</p> <h4… - GETJSON - Parking Information
/json/jStationParking?StationCode=E08<h4 class="text-primary">Description</h4> <p>Returns parking information at a station based on a given StationCode. Omit the StationCode to return parking… - GETJSON - Station Timings
/json/jStationTimes?StationCode=E10<h4 class="text-primary">Description</h4> <p>Returns opening and scheduled first/last train times based on a given StationCode. Omit the StationCode to return… - GETJSON - Station List
/json/jStations?LineCode=RD<h4 class="text-primary">Description</h4> <p>Returns a list of station location and address information based on a given LineCode. Omit the LineCode to return…
API details
- Base URL
https://api.wmata.com/Rail.svc- Authentication
- An API key in the api_key header
An API key in the api_key query parameter - Operations
- 16 operations on 16 pathsGET 16
- Description format
- Swagger 2.0, API version
1.0 - Links
- OpenAPI document
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the Rail Station Information in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Rail Station Information collection, without the publisher's secrets.
- Add your credentialsThis API uses an API key in the api_key header. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “XML - Lines” (GET /Lines), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Rail Station Information?
Rail line and station information, including locations, fares, times, and parking. It is listed under Logistics & shipping and has 16 endpoints.
Who publishes the Rail Station Information?
It is listed from Wmata's public API description (an OpenAPI document), not published by Wmata on Swastik Codes. Anyone who controls wmata.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Rail Station Information?
Requests go to https://api.wmata.com/Rail.svc. Endpoint paths are added to this base URL.
How do I authenticate with the Rail Station Information?
It accepts 2 methods: an API key in the api_key header; an API key in the api_key query parameter.
How many endpoints does the Rail Station Information have?
16 operations on 16 paths (16 GET).
Is forking the Rail Station Information free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.