# MTA API: Get service status

> Gets current MTA line statuses and active alerts for subway, bus, Long Island Rail Road, or Metro-North lines, optionally for one line. Bus and rail status reflects published alerts; no alert means Good service.

Unofficial. Not affiliated with or endorsed by MTA.

- Page: https://fous.com/methods/mta.info/get-service-status
- Method: `mta.info/get_service_status`, version 1
- Website: mta.info
- Returns: line name, mode, status, page link, active alerts with stations and times
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `line` | string | no |  | Line or route name, such as A, M15, or Hudson Line. |
| `mode` | string | no |  | Transit mode, such as subway or lirr. One of "subway", "bus", "lirr", "metro_north", "all". Default "subway". |

## Output

From a run on Oct 31, 2026, shortened. Its input:

```json
{}
```

Its output:

```json
{
  "lines": [
    {
      "mode": "subway",
      "alerts": [
        {
          "alert_id": "lmm:alert:269468:26",
          "headline": "[A] [S] trains are delayed in both directions while the South Channel Bridge opens for marine traffic to pass.",
          "active_to": null,
          "active_from": "2026-09-29T00:56:04-04:00",
          "description": null,
          "affected_stations": []
        },
        {
          "alert_id": "lmm:planned_work:34339",
          "headline": "[A] is rerouted in Manhattan and Downtown Brooklyn",
          "active_to": "2026-09-29T05:00:00-04:00",
          "active_from": "2026-09-28T21:30:00-04:00",
          "description": "No [A] service in both directions at 50 St, 42 St-Port Authority, 34 St-Penn Station, 23 St, 14 St, Spring St, Canal St, Chambers St, World Trade Center, Fulton St and High St [A] runs local between 168 St and 59 St-Columbus Circle and between Jay St-MetroTech and Euclid Av. [A] is rerouted in both …",
          "affected_stations": [
            "59 St-Columbus Circle",
            "50 St",
            "42 St-Port Authority Bus Terminal"
          ]
        }
      ],
      "status": "Delays",
      "line_name": "A",
      "page_link": "https://www.mta.info/schedules/subway/a-train"
    },
    {
      "mode": "subway",
      "alerts": [],
      "status": "Good service",
      "line_name": "C",
      "page_link": "https://www.mta.info/schedules/subway/c-train"
    },
    {
      "mode": "subway",
      "alerts": [
        {
          "alert_id": "lmm:alert:269467:26",
          "headline": "[E][F] trains are running with delays in both directions while we perform track maintenance in Queens.",
          "active_to": null,
          "active_from": "2026-09-29T00:34:43-04:00",
          "description": null,
          "affected_stations": []
        },
        {
          "alert_id": "lmm:planned_work:34338",
          "headline": "[E] is rerouted in Manhattan",
          "active_to": "2026-09-29T05:00:00-04:00",
          "active_from": "2026-09-28T21:30:00-04:00",
          "description": "No [E] service in both directions at 7 Av, 50 St, 42 St-Port Authority, 34 St-Penn Station, 23 St, 14 St, Spring St, Canal St and World Trade Center. [E] runs via the [F] in both directions between 47-50 Sts and 2 Av, the last stop. See a map of this service change. Travel Alternatives: For 7 Av, ta…",
          "affected_stations": [
            "7 Av",
            "50 St",
            "42 St-Port Authority Bus Terminal"
          ]
        },
        {
          "alert_id": "lmm:planned_work:33366",
          "headline": "Enter 5 Av/53 St [E][F] Station at 5 Av only Madison Av entrance will be exit only",
          "active_to": "2027-03-28T01:00:20-04:00",
          "active_from": "2026-04-16T06:00:00-04:00",
          "description": "What's happening? We're replacing escalators",
          "affected_stations": [
            "5 Av/53 St"
          ]
        }
      ],
      "status": "Delays",
      "line_name": "E",
      "page_link": "https://www.mta.info/schedules/subway/e-train"
    }
  ],
  "status_page_link": "https://www.mta.info/"
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"mta.info/get_service_status","input":{}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- Is the L train running normally right now or are there delays?
- Check mta.info for any current alerts on the Hudson Line of Metro-North.
- What's the status of the M15 bus — any detours or service changes today?
- Are there any disruptions on the Long Island Rail Road Babylon Branch this evening?
- Pull up current service status for all NYC subway lines from mta.info and list the ones that aren't running good service.

## Input schema

```json
{
  "type": "object",
  "properties": {
    "line": {
      "type": "string",
      "description": "Line or route name, such as A, M15, or Hudson Line."
    },
    "mode": {
      "enum": [
        "subway",
        "bus",
        "lirr",
        "metro_north",
        "all"
      ],
      "type": "string",
      "default": "subway",
      "description": "Transit mode, such as subway or lirr."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "status_page_link",
    "lines"
  ],
  "properties": {
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "line_name",
          "mode",
          "status",
          "page_link",
          "alerts"
        ],
        "properties": {
          "mode": {
            "type": "string"
          },
          "alerts": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "headline",
                "description",
                "affected_stations",
                "active_from",
                "active_to",
                "alert_id"
              ],
              "properties": {
                "alert_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "headline": {
                  "type": "string"
                },
                "active_to": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "active_from": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "affected_stations": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "status": {
            "type": "string"
          },
          "line_name": {
            "type": "string"
          },
          "page_link": {
            "type": "string"
          }
        }
      }
    },
    "status_page_link": {
      "type": "string"
    }
  }
}
```

## See more

- [Transport for London API: Get line status](https://fous.com/methods/tfl.gov.uk/get-line-status.md): Gets the current or future-day service status for London Tube, Elizabeth line, DLR, Overground, tram or a named bus route. Multiple notices on one line are combined into the most disruptive status.
- [Atlassian API: Get service status](https://fous.com/methods/atlassian.com/get-service-status.md): Gets the official overall status, components, active incidents and scheduled maintenance for a service from its Atlassian Statuspage summary feed.
- [FlightAware API: Check flight status](https://fous.com/methods/flightaware.com/check-flight-status.md): Checks the public FlightAware status of an airline flight (airline name or code plus number) on a departure date, by default today at the departure airport: airports, scheduled, estimated and actual gate times in local time, delays, gates, terminals, aircraft and distance. A date older than FlightAware's public two-week list is looked up on the flight's history page when FlightAware still shows it.
- [TSA Wait Times API: Get security wait time](https://fous.com/methods/tsawaittimes.com/get-security-wait-time.md): Looks up today's crowd-sourced security wait estimate and hourly pattern for a US airport by name, city or code, with PreCheck status and checkpoints.
- [USPTO API: Get trademark status](https://fous.com/methods/uspto.gov/get-trademark-status.md): Gets the current status and prosecution history of one U.S. trademark by name, serial number or registration number. For a name, it picks the newest live matching mark (or the one matching the owner) and lists the other matches.
- [NPS API: List park alerts](https://fous.com/methods/nps.gov/list-park-alerts.md): Lists current alerts for a named National Park Service park from its Current Conditions page, in the order shown on the page.
- [The New York Times API: List headlines](https://fous.com/methods/nytimes.com/list-headlines.md): Lists current New York Times headlines with summaries, authors, images and publication times, in the order shown on the chosen section page (top stories or a section). Video-only items, ads and promotions are left out; times come from the section's feed and may be missing.
- [Flightradar24 API: Check flight status](https://fous.com/methods/flightradar24.com/check-flight-status.md): Checks a flight's public status and times on Flightradar24 by flight number and the departure date at the origin airport.
