# US Weather Alerts by State

> US Weather Alerts by State is a paid API for AI agents from pennydatahq.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-23).

Returns active National Weather Service weather and hydrological alerts for a given US state or territory, sorted most severe first.

## Facts

- Endpoint: GET https://pennydatahq.com/api/us-weather-alerts/:state?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-weather-alerts-by-state-5c72a5d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8Qt6pQXG8fbJluINgrqS7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability us-weather-alerts-by-state-5c72a5d7
```

Example prompt: What active weather alerts does the National Weather Service currently have for Texas — give me everything sorted by severity?

## When to prefer this

Use this endpoint when you need structured, severity-sorted, real-time weather alert data for a specific US state or territory sourced directly from the National Weather Service. It is ideal for agents that need to check for active hazardous weather conditions without parsing raw NWS feeds. Prefer this over general weather APIs when you specifically need official NWS alert/warning/watch data with urgency and certainty metadata rather than forecast data.

## Known failure modes

- Invalid or unrecognized state code returns an error or empty result
- No active alerts for a state returns count of 0 and an empty alerts array
- NWS upstream outage or delay may cause stale or missing data (reflected in updated timestamp)
- Public safety and law enforcement alert types are intentionally excluded and will not appear even if active
- More than 50 simultaneous alerts in a state will result in truncation to the top 50 most severe

## How this service works

Active weather and hydrological alerts for a US state or territory from the National Weather Service: event, severity, urgency, certainty, areas, issuing office, times, headline and instruction, most severe first, as JSON. Public safety and law enforcement alert types are not returned.

## Output

A JSON object containing the two-letter state code queried, the upstream NWS update timestamp, a count of alerts returned (up to 50, filtered to weather and hydrological event types only), and an array of alert objects each including event name, severity, urgency, certainty, affected areas, issuing office, onset, expires, ends, headline, and instruction text — sorted from most severe (Extreme) to least severe (Unknown).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "state"
     ],
     "properties": {
      "state": {
       "type": "string",
       "description": "2-letter US state or territory code (50 states, DC, PR, GU, VI, AS, MP), any case, for example HI."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "state",
      "updated",
      "count",
      "alerts"
     ],
     "properties": {
      "count": {
       "type": "integer",
       "description": "Number of alerts returned (allowed event types only, at most 50)"
      },
      "state": {
       "type": "string"
      },
      "alerts": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "ends": {
          "type": [
           "string",
           "null"
          ]
         },
         "areas": {
          "type": [
           "string",
           "null"
          ]
         },
         "event": {
          "type": "string"
         },
         "onset": {
          "type": [
           "string",
           "null"
          ]
         },
         "office": {
          "type": [
           "string",
           "null"
          ]
         },
         "expires": {
          "type": [
           "string",
           "null"
          ]
         },
         "urgency": {
          "type": [
           "string",
           "null"
          ]
         },
         "headline": {
          "type": [
           "string",
           "null"
          ]
         },
         "severity": {
          "type": [
           "string",
           "null"
          ]
         },
         "certainty": {
          "type": [
           "string",
           "null"
          ]
         },
         "instruction": {
          "type": [
           "string",
           "null"
          ]
         }
        }
       },
       "d
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-weather-alerts-by-state-5c72a5d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennydatahq.com](https://www.zero.xyz/host/pennydatahq.com/llms.txt)
