RapidAPI logo

Sign Up

Log In

SEPTA

FREE
By danopia
Updated 3 months ago
Travel
7.1/10
Popularity Score
307ms
Latency
98%
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
Request 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
Log inSign up

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