Skip to main content
GET
Get current service alerts
The mta.alerts namespace surfaces active MTA service alerts pulled from the agency’s GTFS-Realtime alerts feed. Use mta.alerts.current to retrieve delays, planned service changes, and route suspensions for either the subway or bus network, filtered to only what’s happening right now.

mta.alerts.current(params)

Returns all active service alerts for the specified transit mode. Alerts include human-readable header and description text, affected routes, a severity classification, and the time window during which the alert applies.

Parameters

mode
string
required
The transit mode to fetch alerts for. Accepted values are 'subway' or 'bus'. Pass 'subway' to get alerts affecting subway routes, or 'bus' to get alerts affecting bus routes.

TypeScript signature

Response fields

alerts
object[]
required
An array of active service alerts for the requested mode, ordered by startTime descending. Returns an empty array if there are no active alerts.

Severity values

The severity field uses the following string values, from least to most severe:
'NO_SERVICE' alerts often accompany planned weekend work or emergency shutdowns. Filter on this severity value to surface outages that require riders to seek alternative routes.

Code example

Example response

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

mode
enum<string>
Available options:
subway,
bus,
lirr,
metro-north
route
string
Minimum string length: 1
stopId
string
Minimum string length: 1
includeRaw
boolean

Response

200 - application/json

Response for status 200

id
string
required
routes
object[]
required
stops
object[]
required
activePeriods
object[]
required
source
string
required
mode
enum<string>
Available options:
subway,
bus,
lirr,
metro-north
header
string
description
string
url
string
effect
string
raw
any