apyhub
Back
▣ STANDARD DATA · TRAVEL

Retrieve NOAA Weather Alerts API

What it does

NOAA Weather Alerts lets you fetch active weather alerts for a specified area using a two-character region code. Send an area query value and, optionally, a limit to control how many alerts are returned.

Use it when you need current hazard or warning data for a U.S. state or similar area code in a workflow, dashboard, or notification system. For example, you might poll for active alerts before showing a local weather panel, triggering internal safety messages, or routing location-specific updates to users.

The request is simple: area is required and must be exactly two characters, and limit defaults to 100 with a maximum of 500. The response is a JSON object whose shape is not further constrained in the schema, so you should treat it as a structured alerts payload and read the fields documented by the API response itself.

NOAA Weather Alerts is a practical fit for applications that need timely weather status by region without building a separate feed parser.

GET
NOAA active alerts by area
https://api.eu.apyhub.com/dosvak/noaa-active-alerts-by-area

QUICKSTART

GUIDE

Quickstart

Get active NOAA alerts for a two-letter area code like TX.

curl -X GET "https://api.eu.apyhub.com/dosvak/noaa-active-alerts-by-area?area=TX&limit=1" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

count is how many alerts came back, total is how many are active for the area — they differ whenever limit truncates the list.

{
  "area": "TX",
  "count": 1,
  "total": 8,
  "alerts": [
    {
      "id": "urn:oid:2.49.0.1.840.0.2d4509ca3ea52595a122e29064f9c7d40d83df64.001.1",
      "event": "Flood Advisory",
      "severity": "Minor",
      "urgency": "Expected",
      "area_desc": "Dona Ana, NM; El Paso, TX",
      "headline": "Flood Advisory issued September 23 at 1:34AM MDT until September 23 at 3:00AM MDT by NWS El Paso Tx/Santa Teresa NM",
      "effective": "2026-09-23T01:34:00-06:00",
      "expires": "2026-09-23T03:00:00-06:00",
      "sender_name": "NWS El Paso Tx/Santa Teresa NM"
    }
  ],
  "attribution": [
    {
      "source": "NOAA / National Weather Service",
      "dataset": "NWS weather alerts and point metadata",
      "license": "U.S. federal government data",
      "url": "https://www.weather.gov/documentation/services-web-api",
      "notice": "Contains NOAA/NWS data and metadata. This product is not endorsed by NOAA."
    }
  ]
}
TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.

About this endpoint

What it does

Retrieves currently active NOAA / National Weather Service alerts for a US state or marine area, newest first.

Query Parameter(s)

AttributeTypeMandatoryDescription
areaStringYesArea code with exactly 2 characters.
limitIntegerNoMaximum number of results to return. Default: 100. Minimum: 1. Maximum: 500.

Response

Returns a JSON object with the queried area, how many alerts came back versus how many are active, the alerts themselves, and the NOAA source attribution.

AttributeTypeDescription
areaStringThe area code that was queried.
countIntegerNumber of alerts returned in alerts, after limit is applied.
totalIntegerTotal alerts active for the area, before limit is applied.
alertsObject ArrayActive alerts. Empty when the area has none.
alerts[].idStringNWS alert identifier (URN).
alerts[].eventStringAlert type, e.g. Flood Advisory, Special Weather Statement.
alerts[].severityStringExtreme, Severe, Moderate, Minor, or Unknown.
alerts[].urgencyStringImmediate, Expected, Future, Past, or Unknown.
alerts[].area_descStringAffected zones. May span more than one state.
alerts[].headlineStringFull NWS headline, with issue and expiry times and the issuing office.
alerts[].effectiveStringWhen the alert took effect. ISO 8601 with local UTC offset.
alerts[].expiresStringWhen the alert expires. ISO 8601 with local UTC offset.
alerts[].sender_nameStringNWS office that issued the alert.
attributionObject ArraySource and licence notice for the data. Always present.
attribution[].sourceStringData provider.
attribution[].datasetStringDataset name.
attribution[].licenseStringLicence terms.
attribution[].urlStringLink to the upstream API documentation.
attribution[].noticeStringRequired disclaimer to surface alongside the data.

An area with no active alerts returns count: 0, total: 0, and an empty alerts array — not an error.

▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.