All requests must include your API key in the header.
| Param | Type | Description |
|---|---|---|
| line | string | The subway line to fetch. Options: G, L, 1, 7, etc. Defaults to G. |
| stopId | string | The GTFS Stop ID to filter by (e.g., G22). Defaults to Nassau Av (G22). |
Returns simple arrays of arrival times (in minutes from now).
{
"station": "Nassau Av",
"line": "G",
"timestamp": 1706650000,
"northbound": [2, 14, 21],
"southbound": [0, 8, 15]
}
401 Unauthorized - Missing or invalid API key.429 Too Many Requests - Daily limit exceeded (Free Tier).502 Bad Gateway - Upstream MTA API failure (we auto-retry).