OpenAny
Get API keyAPI Key
APIData

nws logo
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
USE THIS API

NWS US Weather Alerts API

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
Pricing
Connect your agent
On this page

Overview

Overview
NWS US Weather Alerts API

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

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
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

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Two-letter US state or territory code, such as CA.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
nwsCurrent
NWS US Weather Alerts API · GET · View API reference
$0 / call13
92.31%successP50301.5ms
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · nwsUSD / call
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.

calls

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
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
areaURL query parametersquerystringYes

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

Inferred from examples
  • @context(string | object)[]
    • @versionstring
    • @vocabstring
    • wxstring
  • featuresobject[]
    • geometrynull
    • idstring
    • propertiesobject
      • @idstring
      • @typestring
      • affectedZonesstring[]
      • areaDescstring
      • categorystring
      • certaintystring
      • codestring
      • descriptionstring
      • effectivestring
      • endsstring
      • eventstring
      • eventCodeobject
        • NationalWeatherServicestring[]
        • SAMEstring[]
      • expiresstring
      • geocodeobject
        • SAMEstring[]
        • UGCstring[]
      • headlinestring
      • idstring
      • instructionstring
      • languagestring
      • messageTypestring
      • notenull
      • onsetstring
      • parametersobject
        • AWIPSidentifierstring[]
        • BLOCKCHANNELstring[]
        • NWSheadlinestring[]
        • VTECstring[]
        • WMOidentifierstring[]
        • eventEndingTimestring[]
      • referencesunknown[]
      • responsestring
      • scopestring
      • senderstring
      • senderNamestring
      • sentstring
      • severitystring
      • statusstring
      • urgencystring
      • webstring
    • typestring
  • titlestring
  • typestring
  • updatedstring

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect 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.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 · cURL
    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'
  3. 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"
    }

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.

Use NWS US Weather Alerts API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.