Community. Driven. Weather. Data.Always Ad-FreeDeveloper FriendlyChecking statusDiscord
Become a supporter
Sign in
DocsDevelopersReference

MQTT alerts feed

Your account's own NWS alerts over MQTT-on-WebSocket, on topics that belong to you, with limits, account types and the January 1, 2027 end of the shared feed.


MQTT V2 gives every account its own topics. When a National Weather Service alert matches your account, WxAlerts publishes it to V2/{user_id}/NWS/... and only your credentials can read that. You do not choose counties or offices to subscribe to: you save places, and the alerts for those places arrive on your own topics.

To look alerts up on demand instead of following them live, use the alerts REST API. Lightning is on the same account, on a separate topic: see the lightning feed.

To write a first client, follow Subscribe to live alerts over MQTT. For what keeps one running, see Build a reliable MQTT client.

Get a credential

Any account, on any plan, makes its own MQTT credential on the Credentials page. See Make an MQTT credential or API key. The page shows your username, the password once, and your two topic filters. Your numeric user id is in those filters (V2/{user_id}/NWS/#), and it is the same number in every topic below.

Connecting

URL wss://mqtt.wxalerts.org/mqtt
Host and port mqtt.wxalerts.org, 443
Transport MQTT over WebSocket, path /mqtt, TLS
Username ha- and 12 characters, from the Credentials page
Password Shown once when you make or renew the credential

A credential can only subscribe, and only to your own topics. A publish is dropped. There is no plain MQTT port open to the internet: 1883 and 8883 are closed, so the WebSocket on 443 is the only way in.

Your client ID must be unique. Two clients sharing one take each other’s session over in a loop. Derive it from something stable and per-installation.

Topics

Topic QoS Retained What it carries
V2/{user_id}/NWS/{office}/{short_id} 1 no one alert, when it changes
V2/{user_id}/GLM/batch 0 no lightning, see the lightning feed

Subscribe to V2/{user_id}/NWS/# for every alert. Your credential’s filters, alert_topics and lightning_topics, are on the Credentials page and do not change when you add or remove a place.

  • {office} is the issuing office exactly as the alert carries it, four letters, such as KMOB or PAJK.
  • {short_id} is the eight character id the website uses in https://wxalerts.org/alerts/{short_id}/. It is the same on every message about one alert, so use it as your key. Open that address to see the alert on the website.

You receive the lower of the QoS the feed publishes at and the QoS you subscribe with, so subscribe at QoS 1.

Who gets an alert

Each account gets at most one message per change to an alert.

Account Receives an alert when
Regular one of your saved places is inside it
Meteorologist or EOC it was issued by one of the offices you chose, or one of your places is inside it
Commercial always, every alert

Per-place notification mutes do not apply to MQTT: the feed is the alert, unfiltered by hazard.

Meteorologist and EOC accounts choose their offices on the Places page, up to four, and each one after the first must border one already chosen. See Monitor a forecast office.

When an alert is cancelled for some of its area, an account whose places were in the released part, and in nothing that is still active, gets one message with status set to cancelled and places naming the places it no longer covers.

No retained messages, no backfill

Nothing in V2 is retained and there is no backfill. Your account hears an alert from the moment it matches, and a client that connects later hears only what changes after it connects. That includes a client that reconnects: alerts issued while it was away are not replayed. See No retained messages, and how to catch up for how to start from the current state.

The payload

{
  "v": 2,
  "id": "52HcPf5Z",
  "url": "https://wxalerts.org/alerts/52HcPf5Z/",
  "status": "active",
  "action": "NEW",
  "event": "Storm Warning",
  "office": "KSEW",
  "vtec": "KSEW.SR.W.0004.2026",
  "phenomena": "SR",
  "significance": "W",
  "etn": 4,
  "severity": "Severe",
  "urgency": "Expected",
  "certainty": "Likely",
  "headline": "Storm Warning issued November 22 at 9:18AM PST",
  "description": "Southwest winds 35 to 45 kt with gusts up to 55 kt. Seas 12 to 17 ft.",
  "instruction": "Mariners should alter plans to avoid these hazardous conditions.",
  "issued_at": "2026-11-22T17:18:00Z",
  "onset": "2026-11-22T20:00:00Z",
  "expires": "2026-11-23T01:30:00Z",
  "ends": "2026-11-23T10:00:00Z",
  "ugc": ["PZZ130"],
  "same": ["057130"],
  "geometry": { "type": "MultiPolygon", "coordinates": [] },
  "geometry_source": "ugc",
  "sources": ["nwws", "emwin", "api"],
  "origin": "nws",
  "places": ["Home", "Dock"],
  "published_at": "2026-11-22T17:19:07Z"
}

Times are RFC 3339 in UTC. A value that is absent is null, never left out.

  • status is active, cancelled or expired. It is cancelled for an account that only matched a zone the alert was released from.
  • action is the latest VTEC action (NEW, CON, EXT, CAN and so on), and null for an alert with no VTEC. It is not the state: go by status.
  • etn is the VTEC event tracking number as an integer, and null for an alert with no VTEC.
  • description and instruction are the full text of the alert, so you do not need to fetch it. Each is null when the alert has none, and instruction often is.
  • same is the SAME codes for the alert’s area, as six digit strings. It is [] when there are none.
  • sources is the feeds that had carried the alert when the message was built, with values such as nwws, nwws-cap, emwin and api. It is informational. Another feed delivering the same alert later does not produce a new message, so the list can be behind.
  • origin is the alerting authority. Every alert is nws today, but treat it as an open set and ignore a value you do not recognise.
  • places is the label of each of your places inside the alert, sorted and listed once. It is empty when you matched by office or as a commercial account with no place inside. In a cancelled message from a released zone it lists the places in the released zones.
  • published_at is when the alert change was recorded, not when it was sent, so a message delivered twice is byte for byte the same.
  • geometry is simplified: small holes and parts may be dropped, coordinates carry four decimals and there are at most 1,500 vertices. It is null when the alert has no shape or it cannot be brought under the limit. geometry_source says how it was built: polygon for a storm-based polygon, ugc for a union of forecast zones.
  • expires is not the end of the hazard. It is the NWS “expect an update by” time and is often in the past on a live alert. ends is the end.
  • url and the alerts API are still there if you want the alert on the website or to look it up later, but the message carries the text.

Ignore any field you do not know: fields are added without changing v.

A change that subscribers cannot see, such as the same alert arriving again from a second feed, is not published, so you get one message per real change.

Limits

Regular, meteorologist, EOC Commercial
Connect attempts per minute, per account 2 5
Live connections, per account 1 1
Credentials, per account 3 3
  • A connect attempt over the limit is refused until the minute moves on. Use a backoff, never a tight loop. A different client connecting while your account is at its live limit is refused; a client that reconnects with the same client ID takes over its own session and is allowed.
  • The broker remembers each answer to a login for one minute, so an identical reconnect inside that minute is not counted. A credential you revoke can still connect for up to a minute.
  • 20 subscriptions per client. The 21st is refused with a failure code in the SUBACK while the connection stays up.
  • At most 50 new WebSocket connections a second across all clients.

Commercial accounts

A commercial account is sent every alert and every lightning strike, with the higher connect limit above. It is granted by us rather than requested on the website: contact us if you need one.

The usual shape is a bridge. Run one client with your commercial credential, subscribe to V2/{user_id}/#, and republish each message to a broker you control, or to AWS IoT Core or another cloud MQTT service, where your own systems read it. The feed does not retain or replay, so keep the bridge running and monitor it, and see Build a reliable MQTT client for the reconnect rules.

The first feed (V1), deprecated

The V1 feed published every alert for everyone on public topics and carried it to anyone with the shared login. It is deprecated and ends on Friday, January 1, 2027, including its text product topics, which outside users will not have in V2. Until then it keeps working unchanged, so a client can run both while you move. V1 topics are not documented here any more; everything above is the replacement.

View this page as Markdown

May we use Microsoft Clarity to see how pages are used (clicks, scrolling and replays of a visit, with anything you type hidden), plus a random ID linking that to crash reports? Only to find bugs and confusing screens. Never advertising, never sold.