National Weather Service Alerts Feed avatar

National Weather Service Alerts Feed

Pricing

from $20.00 / 1,000 alert rows

Go to Apify Store
National Weather Service Alerts Feed

National Weather Service Alerts Feed

Pricing

from $20.00 / 1,000 alert rows

Rating

0.0

(0)

Developer

Jason Ramirez

Jason Ramirez

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

An Apify SDK v3 Actor that retrieves a snapshot of active US weather alerts from https://api.weather.gov/alerts/active. Intended users include construction and roofing schedulers, logistics and event operators, and insurance teams watching severe weather in their territories.

Provide exactly one location selector: states, point, or zones. A nationwide query is rejected. Provide a real contact email in userAgentContact; it is sent as NWS Alerts Feed {contact}. Addresses at example.com are rejected.

Input examples

Replace the contact below with your own address before running:

{
"states": ["CA", "OR"],
"userAgentContact": "operations@your-company.org",
"minSeverity": "Moderate",
"eventKeyword": "wind",
"limit": 100
}

Alternative location selectors, each used in place of states:

{ "point": { "lat": 34.05, "lon": -118.25 }, "userAgentContact": "operations@your-company.org" }
{ "zones": ["CAZ041"], "userAgentContact": "operations@your-company.org" }

limit defaults to 100 and accepts integers from 1 to 2000. minSeverity accepts Extreme, Severe, Moderate, or Minor. Ranking is Extreme > Severe > Moderate > Minor > Unknown. Without a severity filter, Unknown alerts remain eligible. eventKeyword is a case-insensitive substring of the event name. includeTest: true explicitly adds test status to the default actual status. Message types are alert and update. Requests use pages of up to 500 and follow pagination.next.

Dataset output

Each matching alert produces one normalized item. Repeated alert IDs are suppressed within a run.

FieldValue
alertIdproperties.id, falling back to feature.id
eventAlert event name or null
severityAPI severity or Unknown
certaintyAPI certainty or null
urgencyAPI urgency or null
headlineHeadline or null
descriptionDescription or null
instructionInstructions or null
effectiveEffective timestamp or null
onsetOnset timestamp or null
expiresExpiration timestamp or null
senderNameSender name or null
areasareaDesc string, default empty string
ugcCodesgeocode.UGC array, default empty array
retrievedAtRun snapshot timestamp in ISO format
sourceNational Weather Service

LAST_RUN_SUMMARY in the default key-value store contains runAt, filtersUsed, totalReportedByApi, emitted, complete, and notes. The reported total is read from totalFeatures or numberMatched if supplied; otherwise it is null. It is never inferred from a page's array length.

An empty complete run says no alerts matched at query time. A fetch failure after a successful page retains gathered rows, records a note and complete: false. A first-page failure records an incomplete summary and fails the run. A limit that prevents further scanning also marks the run incomplete. Dataset write failures fail the run.

Honest limits

Alerts are the Weather Service's own and change minute to minute. This is a snapshot at query time. Pagination is not an atomic snapshot, and changes between pages can affect results. Calm weather can yield an empty dataset. This code has offline fixture coverage; live API compatibility and the deployed Apify runtime have not been verified here. The API response shape is an assumption supplied in BRIEF.md. No pricing or demand claim is made.

The intended publication model is pay per event per emitted row. Store publication, pricing, billing event configuration, and any runtime billing integration remain owner work; this source does not charge events.

Local run

Use Node.js 22 or the supplied Dockerfile. From this directory:

npm install
mkdir -p storage/key_value_stores/default

Save a real input as storage/key_value_stores/default/INPUT.json, then run:

npm start

Run the fixture suite with npm test. Tests use injected fetch and storage sinks, never the network, and do not require installing the SDK. Production startup imports apify. Dependency installation and Docker execution were not performed in this build lane.