Wmata

Real-Time Rail Predictions

Real-time rail prediction methods.

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

Real-time rail prediction methods.

Endpoints 2

  • GETXML - Next Trains/GetPrediction/:StationCodes<h4 class="text-primary">Description</h4> <p>Returns next train arrival information for one or more stations. Will return an empty set of results when no…
  • GETJSON - Next Trains/json/GetPrediction/:StationCodes<h4 class="text-primary">Description</h4> <p>Returns next train arrival information for one or more stations. Will return an empty set of results when no…

API details

Base URL
https://api.wmata.com/StationPrediction.svc
Authentication
An API key in the api_key header
An API key in the api_key query parameter
Operations
2 operations on 2 pathsGET 2
Description format
Swagger 2.0, API version 1.0
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the Real-Time Rail Predictions in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Real-Time Rail Predictions collection, without the publisher's secrets.
  3. 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.
  4. Send a requestPick an endpoint, for example “XML - Next Trains” (GET /GetPrediction/:StationCodes), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Real-Time Rail Predictions?

Real-time rail prediction methods. It is listed under Logistics & shipping and has 2 endpoints.

Who publishes the Real-Time Rail Predictions?

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 Real-Time Rail Predictions?

Requests go to https://api.wmata.com/StationPrediction.svc. Endpoint paths are added to this base URL.

How do I authenticate with the Real-Time Rail Predictions?

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 Real-Time Rail Predictions have?

2 operations on 2 paths (2 GET).

Is forking the Real-Time Rail Predictions free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.