# US National Weather Service Active Alerts by State or Location

> US National Weather Service Active Alerts by State or Location is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-28).

Returns active NWS weather alerts (warnings, watches, advisories) for a US state or lat/lon coordinate, including event type, severity, urgency, affected areas, expiry, and safety instructions.

## Facts

- Endpoint: GET https://saylorinnovations.com/api/weather/us-alerts?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-national-weather-service-active-alerts-by-state-or-location-9e2b6bf3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZavXAMaZnJNE0CsG2ey9D

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-national-weather-service-active-alerts-by-state-or-location-9e2b6bf3
```

Example prompt: Are there any active NWS weather alerts or warnings in Texas right now? Show me up to 20 results.

## When to prefer this

Use this endpoint when you need real-time, official US National Weather Service alert data for a specific state or geographic coordinate. Prefer it for emergency preparedness workflows, travel safety checks, or any automation that needs structured alert metadata (severity, urgency, expiry, affected zones) rather than raw forecast text. It is especially useful when you need to filter or display alerts programmatically.

## Known failure modes

- Invalid or missing state code returns an error
- Lat/lon outside the US may return no alerts or an error
- Limit value outside 1-50 range may be rejected or clamped
- No active alerts returns an empty alerts array with total_active of 0
- NWS upstream outage may cause timeout or empty response

## How this service works

US National Weather Service active alerts by state or lat/lon - event, severity, urgency, affected areas, expiry and instructions for warnings and watches

## Output

Returns a JSON object with a scope descriptor, an array of active NWS alerts (each containing event name, severity, urgency, affected areas/zones, expiry timestamp, and public safety instructions), a data source label, and a count of total active alerts matching the query.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "state"
     ],
     "properties": {
      "limit": {
       "type": "string",
       "description": "optional 1-50 (default 20)"
      },
      "state": {
       "type": "string",
       "description": "Two-letter US state code (or give lat and lon instead)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "scope",
      "alerts"
     ],
     "properties": {
      "scope": {
       "type": "object",
       "description": "Scope the result covers"
      },
      "alerts": {
       "type": "array",
       "description": "Active alerts"
      },
      "source": {
       "type": "string",
       "description": "Data source the values come from"
      },
      "total_active": {
       "type": "number",
       "description": "Total active"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-national-weather-service-active-alerts-by-state-or-location-9e2b6bf3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
