Regional transit REST
Get NJ Transit rail departures
Get upcoming realtime rail departures for a station, including train status, delay, track, and optional stop lists.
GET
mta-js
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
NJ Transit RailData station code, such as NY for New York Penn Station.
Minimum string length:
1Optional RailData line code for the 19-record schedule endpoint, such as NEC/NJCL line codes where available.
Minimum string length:
1Include stop lists for each train. When true, the backend uses RailData getTrainSchedule.
Required range:
1 <= x <= 50Response
200 - application/json
Response for status 200
Allowed value:
"nj-transit-rail"