Real-time NYC subway arrival predictions from the official MTA GTFS-realtime feeds
Real-time NYC subway arrival predictions from the official MTA GTFS-realtime feeds. Given a station name, a route/line (e.g. F, 4, N, L), and a direction (uptown/downtown), returns the next scheduled arrivals with live minutes-until-arrival, destination, and any active service alerts for that line. Use this for questions like 'next F train at 34 St', 'when is the next uptown 6 train', or 'NYC subway arrivals near me'.
1000 (raw units)
price
—
calls / 30d
—
unique payers
2026-09-20
updated
Provider
nyc-subway-x402.vercel.app · verified
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xf1AE59673FC799980d9C3735bA200620ccEa619b",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 300
}
]Use it
curl
curl "https://nyc-subway-x402.vercel.app/arrivals" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://nyc-subway-x402.vercel.app/arrivals");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://nyc-subway-x402.vercel.app/arrivals")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/15684.json, and this resource appears in /discovery/resources and /discovery/search.