NWS US Weather Alerts API
Get NWS US Weather Alerts data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Nws, pass parameters such as area, and retrieve structured data including alert resource identifier, alert event type, alert headline, reported alert severity, and affected-area description to build a state alert board, add regional context, and track alert changes.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 13Selected implementation · last 30 days
- Success rate · 30d
- 92.31%Selected implementation · last 30 days
NWS US Weather Alerts API
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Overview
NWS US Weather Alerts API
Provide area as a two-letter US state or territory code. The GeoJSON FeatureCollection contains alert features, with event details and effective or expiry times under each feature's properties.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | Required query: area, for example CA. |
| Selected implementation | nws · NWS US Active Weather Alerts |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Build a state alert board: Group current alert records by event and severity.
- Add regional context: Display affected-area descriptions with source timestamps.
- Track alert changes: Keep alert identifiers and review updated records in your own polling workflow.
Returned Data
| Field | Meaning |
|---|---|
features[].id |
Alert resource identifier |
features[].properties.event |
Alert event type |
features[].properties.headline |
Alert headline |
features[].properties.severity |
Reported alert severity |
features[].properties.areaDesc |
Affected-area description |
features[].properties.effective |
Effective time |
features[].properties.expires |
Expiry time for the alert message |
features[].properties.instruction |
Source instructions when provided |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
curl --request GET --get \
https://api.openany.si/v1/agent-apis/nws/alerts/active \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
--data-urlencode area=CA
Request and Response Examples
The response example is a documentation reference and may be abbreviated. The request below is a calling template; use the published contract and returned response for the selected implementation.
Published NWS US Weather Alerts API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
nwsCurrent NWS US Weather Alerts API · GET · View API reference | $0 / call | 13 | 92.31%successP50301.5ms |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 5. Price update time: not supplied.
Total $0
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/nws/alerts/active- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
area | URL query parametersquery | string | Yes | Two-letter US state or territory code, such as CA. minLength: 1 · maxLength: 2 |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
@context(string | object)[]@versionstring@vocabstringwxstring
featuresobject[]geometrynullidstringpropertiesobject@idstring@typestringaffectedZonesstring[]areaDescstringcategorystringcertaintystringcodestringdescriptionstringeffectivestringendsstringeventstringeventCodeobjectNationalWeatherServicestring[]SAMEstring[]
expiresstringgeocodeobjectSAMEstring[]UGCstring[]
headlinestringidstringinstructionstringlanguagestringmessageTypestringnotenullonsetstringparametersobjectAWIPSidentifierstring[]BLOCKCHANNELstring[]NWSheadlinestring[]VTECstring[]WMOidentifierstring[]eventEndingTimestring[]
referencesunknown[]responsestringscopestringsenderstringsenderNamestringsentstringseveritystringstatusstringurgencystringwebstring
typestring
titlestringtypestringupdatedstring
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example (source abbreviated)
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
area- Two-letter US state or territory code, such as CA.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/nws/alerts/active?area=CA' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "@context": [ "https://geojson.org/geojson-ld/geojson-context.jsonld", { "@version": "1.1", "@vocab": "https://api.weather.gov/ontology#", "wx": "https://api.weather.gov/ontology#" } ], "features": [ { "geometry": null, "id": "https://api.weather.gov/alerts/urn:oid:2.49.0.1.840.0.36d27685614e35fbcc8682a9c2e37f391c244f9f.001.1", "properties": { "@id": "https://api.weather.gov/alerts/urn:oid:2.49.0.1.840.0.36d27685614e35fbcc8682a9c2e37f391c244f9f.001.1", "@type": "wx:Alert", "affectedZones": [ "https://api.weather.gov/zones/forecast/CAZ338" ], "areaDesc": "Mojave Desert Slopes", "category": "Met", "certainty": "Likely", "code": "IPAWSv1.0", "description": "* WHAT...West winds 15 to 25 mph with gusts up to 45 mph expected.\n\n* WHERE...Mojave Desert Slopes.\n\n* WHEN...From 4 PM this afternoon to 6 AM PST Wednesday.\n\n* IMPACTS...Gusty winds will blow around unsecured objects. Tree\nlimbs could be blown down and a few power outages may result.\n\n* ADDITIONAL DETAILS...Highways impacted include State Routes 14, 58,\nand 178, as well as U.S. 395.", "effective": "2026-11-03T03:01:00-08:00", "ends": "2026-11-04T06:00:00-08:00", "event": "Wind Advisory", "eventCode": { "NationalWeatherService": [ "WIY" ], "SAME": [ "NWS" ] }, "expires": "2026-11-03T11:15:00-08:00", "geocode": { "SAME": [ "006029" ], "UGC": [ "CAZ338" ] }, "headline": "Wind Advisory issued November 3 at 3:01AM PST until November 4 at 6:00AM PST by NWS Hanford CA", "id": "urn:oid:2.49.0.1.840.0.36d27685614e35fbcc8682a9c2e37f391c244f9f.001.1", "instruction": "Winds this strong can make driving difficult, especially for high\nprofile vehicles. Use extra caution.", "language": "en-US", "messageType": "Alert", "note": null, "onset": "2026-11-03T16:00:00-08:00", "parameters": { "AWIPSidentifier": [ "NPWHNX" ], "BLOCKCHANNEL": [ "EAS", "NWEM", "CMAS" ], "NWSheadline": [ "WIND ADVISORY IN EFFECT FROM 4 PM THIS AFTERNOON TO 6 AM PST WEDNESDAY" ], "VTEC": [ "/O.NEW.KHNX.WI.Y.0033.261104T0000Z-261104T1400Z/" ], "WMOidentifier": [ "WWUS76 KHNX 031101" ], "eventEndingTime": [ "2026-11-04T06:00:00-08:00" ] }, "references": [], "response": "Execute", "scope": "Public", "sender": "w-nws.webmaster@noaa.gov", "senderName": "NWS Hanford CA", "sent": "2026-11-03T03:01:00-08:00", "severity": "Moderate", "status": "Actual", "urgency": "Expected", "web": "http://www.weather.gov" }, "type": "Feature" } ], "title": "Current watches, warnings, and advisories for California", "type": "FeatureCollection", "updated": "2026-11-03T14:38:40+00:00" }