🚧 Work in progress 🚧
This website uses the MTA's API. They send the data in GTFS format using protobufs. I found this intimidating when I was starting out, and had to solve several hard-to-debug issues when I was getting it set up.
Since I already am converting all of that data to JSON format, I wanted to make that a publically available API, and have written the backend with that in mind. I just have to figure out some stuff with how to actually sign up and assign API keys and rate limit.
If you want to make a subway related project, please email me at api.info@whentrain.nyc and I can give you access. My name is Price!
If you're in a hurry, you can take a look at how my code handles protobufs here. You could even download that repo and run it yourself with your own MTA API key if you want to get started right away.
Due to lag time in the MTA real-time feeds, information may not be accurate. Location data is checked only when you request and never sent to the server.