National Weather Service Alerts Feed
Pricing
from $20.00 / 1,000 alert rows
National Weather Service Alerts Feed
Pricing
from $20.00 / 1,000 alert rows
Rating
0.0
(0)
Developer
Jason Ramirez
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 days ago
Last modified
Categories
Features
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.
| Field | Value |
|---|---|
| alertId | properties.id, falling back to feature.id |
| event | Alert event name or null |
| severity | API severity or Unknown |
| certainty | API certainty or null |
| urgency | API urgency or null |
| headline | Headline or null |
| description | Description or null |
| instruction | Instructions or null |
| effective | Effective timestamp or null |
| onset | Onset timestamp or null |
| expires | Expiration timestamp or null |
| senderName | Sender name or null |
| areas | areaDesc string, default empty string |
| ugcCodes | geocode.UGC array, default empty array |
| retrievedAt | Run snapshot timestamp in ISO format |
| source | National 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 installmkdir -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.