Skip to main content
GET
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. alerts properties id string required The unique identifier for this alert, assigned by the MTA. headerText string required A short summary of the alert, suitable for display in a list or notification. descriptionText string required The full alert body with details about affected service and any alternative instructions. affectedRoutes string[] required An array of route IDs impacted by this alert (for example, ['A', 'C', 'E']). severity string required The severity level of the alert. See the severity table below for possible values and their meanings. startTime number required The Unix timestamp (in seconds) when the alert becomes or became active. endTime number | null required The Unix timestamp (in seconds) when the alert is scheduled to end, or null if no end time has been set.

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,
path,
nj-transit-rail,
lirr,
metro-north
header
string
description
string
url
string
effect
string
raw
any