# NWS US Weather Alerts API

Retrieve active US weather alerts for a state or territory to build a regional dashboard, display affected areas or review alert changes. Supply the area code in a GET query and receive a GeoJSON FeatureCollection with event names, severity, source instructions and timing fields; handle empty features and null geometry explicitly when displaying results on a map.

Documentation: https://openany.si/nws/nws-us-active-weather-alerts/
API ID: 83f861b9-80bd-4c97-bcb6-dc5682762ea2
Provider: nws
Contract revision: 6
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/nws/alerts/active
Page update time: 2026-12-04T06:27:46.018Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-04T06:27:46.018Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## 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.

## 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 |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "NWS US Weather Alerts API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "area": {
          "type": "string",
          "description": "Two-letter US state or territory code, such as CA.",
          "minLength": 1,
          "maxLength": 2
        }
      },
      "required": [
        "area"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "@context": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "object",
            "properties": {
              "@version": {
                "type": "string"
              },
              "@vocab": {
                "type": "string"
              },
              "wx": {
                "type": "string"
              }
            }
          }
        ]
      }
    },
    "features": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "geometry": {
            "type": "null"
          },
          "id": {
            "type": "string"
          },
          "properties": {
            "type": "object",
            "properties": {
              "@id": {
                "type": "string"
              },
              "@type": {
                "type": "string"
              },
              "affectedZones": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "areaDesc": {
                "type": "string"
              },
              "category": {
                "type": "string"
              },
              "certainty": {
                "type": "string"
              },
              "code": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "effective": {
                "type": "string"
              },
              "ends": {
                "type": "string"
              },
              "event": {
                "type": "string"
              },
              "eventCode": {
                "type": "object",
                "properties": {
                  "NationalWeatherService": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "SAME": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "expires": {
                "type": "string"
              },
              "geocode": {
                "type": "object",
                "properties": {
                  "SAME": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "UGC": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "headline": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "instruction": {
                "type": "string"
              },
              "language": {
                "type": "string"
              },
              "messageType": {
                "type": "string"
              },
              "note": {
                "type": "null"
              },
              "onset": {
                "type": "string"
              },
              "parameters": {
                "type": "object",
                "properties": {
                  "AWIPSidentifier": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "BLOCKCHANNEL": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "NWSheadline": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "VTEC": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "WMOidentifier": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "eventEndingTime": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "references": {
                "type": "array",
                "items": {}
              },
              "response": {
                "type": "string"
              },
              "scope": {
                "type": "string"
              },
              "sender": {
                "type": "string"
              },
              "senderName": {
                "type": "string"
              },
              "sent": {
                "type": "string"
              },
              "severity": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "urgency": {
                "type": "string"
              },
              "web": {
                "type": "string"
              }
            }
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "title": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "updated": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  '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'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "@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"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which locations does this endpoint cover?
It accepts a US state or territory code as area. It is not a worldwide weather-alert search.

### Can I filter by latitude and longitude?
This implementation declares area only. Upstream point and zone filters are not exposed in this request contract.

### Does an empty features array mean the request failed?
Not necessarily. An area can have no active alerts. Check the HTTP result and response structure separately from the number of alerts.

### Can I query expired alerts or an archive?
This operation lists active alerts and does not expose historical date inputs.

### Is a null geometry the same as no affected area?
No. Read areaDesc, affectedZones and available geocodes as appropriate; a null geometry can still accompany an alert with an affected-area description.

### Does the endpoint send push notifications?
No. It is a REST lookup. Your application must schedule refreshes and deliver notifications if required.

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
