Prerequisites
- Install
mta-jswithnpm install mta-js. - Set
MTA_API_KEYin your environment. - Requires
mta-js2.4.0 or later.
1
Explore NYC Ferry stops and routes
The static endpoints are built from NYC Ferry’s public GTFS feed:You can also request the ordered stops for one route:
2
Request live arrivals
Filter realtime trip updates by stop, route, or both:The optional
stop accepts a stop ID or an exact stop name, matched without case sensitivity, such as 87 or Wall St/Pier 11.Arrival records include static stop and route names, trip headsigns, estimated arrival time, and minutes until arrival.3
Check vehicles and service alerts
Vehicle positions can be filtered by route. Alerts are listed from the separate alert feed: