# NYC MTA

> Read New York transit alerts, real-time train updates and subway elevator and escalator outages.

App · 10 actions. Web page: https://docs.lodol.com/docs/integrations/nyc-mta

## Actions

### Get railroad trip updates

Get railroad trip updates from the MTA's real-time feed.

**Inputs**

- Railroad (`railroad`, text, required): Choose the railroad to retrieve. One of: `lirr` (Long Island Rail Road), `metro_north` (Metro-North Railroad).

**Outputs**

- `data` (object): The response from NYC MTA.

**Example output**

```json
{
  "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 (`feed`, text, required): 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**

- `data` (object): The response from NYC MTA.

**Example output**

```json
{
  "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**

- `data` (object): The response from NYC MTA.

**Example output**

```json
{
  "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**

- `data` (list): The response from NYC MTA.

**Example output**

```json
{
  "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**

- `data` (object): The response from NYC MTA.

**Example output**

```json
{
  "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**

- `data` (object): The response from NYC MTA.

**Example output**

```json
{
  "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**

- `data` (object): The response from NYC MTA.

**Example output**

```json
{
  "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**

- `data` (object): The response from NYC MTA.

**Example output**

```json
{
  "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**

- `data` (list): The response from NYC MTA.

**Example output**

```json
{
  "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**

- `data` (list): The response from NYC MTA.

**Example output**

```json
{
  "data": [
    {
      "equipment": "example",
      "estimatedreturntoservice": "example",
      "outagedate": "example",
      "reason": "example",
      "station": "example"
    }
  ]
}
```
