SEPTA

FREE
By danopia
Updated 5 months ago
Travel
3.5/10
Popularity Score
313ms
Latency
100%
Success Rate

SEPTA API Documentation

Provides hackathon-style access to the SEPTA API.

Allows introspection of the SEPTA locations and routes, and provides basically-realtime data on delays, alerts, vehicles, and routes.

View API Details
Static
GETBus/Trolley Routes
GETBus/Trolley Schedules
GETRegional Rail Schedules
GETPlain-text Bus Schedules
GETGet Locations
Dynamic
GETBus/Trolley Locations
GETBus Detours
GETGet Alerts
GETNext to Arrive
GETTrainView
GETTwitter
GETBus/Trolley Routes
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
req1STRING
REQUIREDRoute number
Code Snippet
unirest.get("https://septa.p.rapidapi.com/hackathon/Stops/?req1=23")
.header("X-RapidAPI-Host", "septa.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://septa.p.rapidapi.com/hackathon/Stops/
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://septa.p.rapidapi.com/hackathon/Stops/?req1=23")
.header("X-RapidAPI-Host", "septa.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication