Real-Time Bus Predictions
Real-time bus 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 bus prediction methods.
Endpoints 2
- GETXML - Next Buses
/Predictions?StopID=1001195<h4 class="text-primary">Description</h4> <p>Returns next bus arrival times at a stop.</p> <h4 class="text-primary">Response Elements</h4> <table class="table… - GETJSON - Next Buses
/json/jPredictions?StopID=1001195<h4 class="text-primary">Description</h4> <p>Returns next bus arrival times at a stop.</p> <h4 class="text-primary">Response Elements</h4> <table class="table…
API details
- Base URL
https://api.wmata.com/NextBusService.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 - Links
- OpenAPI document
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the Real-Time Bus Predictions 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 Real-Time Bus Predictions 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 - Next Buses” (GET /Predictions?StopID=1001195), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Real-Time Bus Predictions?
Real-time bus prediction methods. It is listed under Logistics & shipping and has 2 endpoints.
Who publishes the Real-Time Bus 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 Bus Predictions?
Requests go to https://api.wmata.com/NextBusService.svc. Endpoint paths are added to this base URL.
How do I authenticate with the Real-Time Bus 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 Bus Predictions have?
2 operations on 2 paths (2 GET).
Is forking the Real-Time Bus Predictions free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.