# NWS Active Weather Alerts by US State/Area Code

> NWS Active Weather Alerts by US State/Area Code is a paid API for AI agents from toolmint-nws-alerts.toolmint.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-12-02).

Returns active National Weather Service weather alerts for a specified US state or territory using its 2-letter area code

## Facts

- Endpoint: GET https://toolmint-nws-alerts.toolmint.workers.dev/alerts/area/:area?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nws-active-weather-alerts-by-us-state-area-code-29c7a540
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fHK3yRK7H1ewe3mizfNUA

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 nws-active-weather-alerts-by-us-state-area-code-29c7a540
```

Example prompt: Pull all active NWS weather alerts for Texas right now — show me up to 50 alerts.

## When to prefer this

Use this endpoint when you need to retrieve active NWS weather alerts scoped to an entire US state or territory by its standard 2-letter code (e.g. TX, CA, FL). Prefer this over the lat/lon-based sibling endpoint when the user's interest covers a full state rather than a specific geographic point. It is ideal for statewide monitoring, emergency dashboards, travel safety checks, and automated alerting workflows.

## Known failure modes

- Invalid or unsupported 2-letter area code returns an error or empty result
- No active alerts for the area returns an empty alerts array
- NWS upstream API downtime causes delayed or failed responses
- Limit parameter out of range (outside 1-100) may return an error
- Payment failure due to insufficient USDC balance blocks the request

## How this service works

Active NWS weather alerts for a US state/area code (path: /alerts/area/TX)

## Output

Returns a list of active NWS weather alert objects for the specified state/territory, each including alert type (warning, watch, advisory), event name, affected zones, severity, urgency, start/end times, headline, and description. Up to the requested limit (default 25, max 100) are returned.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "area"
     ],
     "properties": {
      "area": {
       "type": "string",
       "description": "US state/territory 2-letter code (e.g. TX, CA)"
      },
      "limit": {
       "type": "integer",
       "default": 25,
       "description": "Max alerts (1-100)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nws-active-weather-alerts-by-us-state-area-code-29c7a540/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolmint-nws-alerts.toolmint.workers.dev](https://www.zero.xyz/host/toolmint-nws-alerts.toolmint.workers.dev/llms.txt)
