NYC MTA
App · 10 actions
Read New York transit alerts, real-time train updates and subway elevator and escalator outages.
Actions
| Action | What it does |
|---|---|
| Get railroad trip updates | Get railroad trip updates from the MTA's real-time feed. |
| Get subway trip updates | Get subway trip updates from the MTA's real-time feed. |
| List bus alerts | List bus alerts in NYC MTA. |
| List elevator and escalator outages | List elevator and escalator outages in NYC MTA. |
| List Long Island Rail Road alerts | List Long Island Rail Road alerts in NYC MTA. |
| List Metro-North alerts | List Metro-North alerts in NYC MTA. |
| List service alerts | List service alerts in NYC MTA. |
| List subway alerts | List subway alerts in NYC MTA. |
| List subway elevators and escalators | List subway elevators and escalators in NYC MTA. |
| List upcoming elevator and escalator outages | List upcoming elevator and escalator outages in NYC MTA. |
Get railroad trip updates
Get railroad trip updates from the MTA's real-time feed.
Inputs
- Railroad
railroadtextRequired - Choose the railroad to retrieve.One of:
lirr(Long Island Rail Road),metro_north(Metro-North Railroad).
Outputs
dataobject- The response from NYC MTA.
Example output
{
"data": {
"entity": [
{
"id": "example",
"trip_update": {
"stop_time_update": [
{}
],
"trip": {}
},
"vehicle": {
"current_status": "example",
"position": {},
"stop_id": "example",
"timestamp": "example",
"trip": {}
}
}
],
"header": {
"gtfs_realtime_version": "example",
"timestamp": "example"
}
}
}Get subway trip updates
Get subway trip updates from the MTA's real-time feed.
Inputs
- Subway lines
feedtextRequired - Choose the subway lines to retrieve.One of:
gtfs(1, 2, 3, 4, 5, 6, 7 and Grand Central Shuttle),gtfs-ace(A, C and E),gtfs-bdfm(B, D, F and M),gtfs-g(G),gtfs-jz(J and Z),gtfs-l(L),gtfs-nqrw(N, Q, R and W),gtfs-si(Staten Island Railway).
Outputs
dataobject- The response from NYC MTA.
Example output
{
"data": {
"entity": [
{
"id": "example",
"trip_update": {
"stop_time_update": [
{}
],
"trip": {}
},
"vehicle": {
"current_status": "example",
"position": {},
"stop_id": "example",
"timestamp": "example",
"trip": {}
}
}
],
"header": {
"gtfs_realtime_version": "example",
"timestamp": "example"
}
}
}List bus alerts
List bus alerts in NYC MTA.
Inputs
None.
Outputs
dataobject- The response from NYC MTA.
Example output
{
"data": {
"entity": [
{
"alert": {
"active_period": [
{
"end": 1,
"start": 1
}
],
"description_text": {},
"header_text": {},
"informed_entity": [
{
"agency_id": "example",
"route_id": "example",
"stop_id": "example"
}
]
},
"id": "example"
}
],
"header": {}
}
}List elevator and escalator outages
List elevator and escalator outages in NYC MTA.
Inputs
None.
Outputs
datalist- The response from NYC MTA.
Example output
{
"data": [
{
"equipment": "example",
"estimatedreturntoservice": "example",
"outagedate": "example",
"reason": "example",
"station": "example"
}
]
}List Long Island Rail Road alerts
List Long Island Rail Road alerts in NYC MTA.
Inputs
None.
Outputs
dataobject- The response from NYC MTA.
Example output
{
"data": {
"entity": [
{
"alert": {
"active_period": [
{
"end": 1,
"start": 1
}
],
"description_text": {},
"header_text": {},
"informed_entity": [
{
"agency_id": "example",
"route_id": "example",
"stop_id": "example"
}
]
},
"id": "example"
}
],
"header": {}
}
}List Metro-North alerts
List Metro-North alerts in NYC MTA.
Inputs
None.
Outputs
dataobject- The response from NYC MTA.
Example output
{
"data": {
"entity": [
{
"alert": {
"active_period": [
{
"end": 1,
"start": 1
}
],
"description_text": {},
"header_text": {},
"informed_entity": [
{
"agency_id": "example",
"route_id": "example",
"stop_id": "example"
}
]
},
"id": "example"
}
],
"header": {}
}
}List service alerts
List service alerts in NYC MTA.
Inputs
None.
Outputs
dataobject- The response from NYC MTA.
Example output
{
"data": {
"entity": [
{
"alert": {
"active_period": [
{
"end": 1,
"start": 1
}
],
"description_text": {},
"header_text": {},
"informed_entity": [
{
"agency_id": "example",
"route_id": "example",
"stop_id": "example"
}
]
},
"id": "example"
}
],
"header": {}
}
}List subway alerts
List subway alerts in NYC MTA.
Inputs
None.
Outputs
dataobject- The response from NYC MTA.
Example output
{
"data": {
"entity": [
{
"alert": {
"active_period": [
{
"end": 1,
"start": 1
}
],
"description_text": {},
"header_text": {},
"informed_entity": [
{
"agency_id": "example",
"route_id": "example",
"stop_id": "example"
}
]
},
"id": "example"
}
],
"header": {}
}
}List subway elevators and escalators
List subway elevators and escalators in NYC MTA.
Inputs
None.
Outputs
datalist- The response from NYC MTA.
Example output
{
"data": [
{
"equipmentno": "example",
"equipmenttype": "example",
"station": "example"
}
]
}List upcoming elevator and escalator outages
List upcoming elevator and escalator outages in NYC MTA.
Inputs
None.
Outputs
datalist- The response from NYC MTA.
Example output
{
"data": [
{
"equipment": "example",
"estimatedreturntoservice": "example",
"outagedate": "example",
"reason": "example",
"station": "example"
}
]
}