# 2s.io Weather Alerts

> 2s.io Weather Alerts is a paid API for AI agents from 2s.io, paid per call via x402, $0.0012/call, status unknown (last checked 2026-09-16).

Returns live US severe-weather watches, warnings, and advisories from the National Weather Service for a specific lat/lon point or US state/marine zone.

## Facts

- Endpoint: GET https://2s.io/api/weather/alerts
- Price: $0.0012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-weather-alerts-9e3ebf12
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jK5Q7_-MFeeo_ICEl_qMQ

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 2s-io-weather-alerts-9e3ebf12
```

Example prompt: Pull up all active NWS watches, warnings, and advisories for the point 29.7604,-95.3698 — show me up to 50 results, and only include Severe or worse severity.

## When to prefer this

Use this endpoint when you need real-time, authoritative US severe-weather alert data directly from NOAA/NWS — especially for safety-critical applications, location-aware weather apps, or automated monitoring of hazardous conditions. Prefer it over general weather APIs when you specifically need official watch/warning/advisory status with onset/expiry times and NWS-issued protective-action text.

## Known failure modes

- Invalid or out-of-range lat/lon returns an error or empty results
- Both point and area provided simultaneously returns a validation error
- Area code not recognized as a valid US state or marine zone returns empty or error
- No active alerts for the given location returns an empty alerts array
- limit out of range (< 1 or > 100) returns a validation error
- Invalid severity or urgency enum value returns a validation error

## How this service works

Live US severe-weather alerts from the National Weather Service. Pass a point ("lat,lon") to get every active watch, warning, and advisory for that exact location, or an area (2-letter US state or marine zone code) for area-wide alerts. Optionally filter by severity or urgency. Each alert returns the event type, severity, urgency, certainty, headline, affected-area description, issuing office, recommended public response, onset / expiry / end times, and the full hazard description plus protective-action instructions. Results are sorted most-severe first and capped by limit, with the true total reported. Public-domain NOAA / National Weather Service data, refreshed in real time.

## Output

An array of active weather alerts sorted most-severe first, each containing event type, severity, urgency, certainty, headline, affected area description, issuing NWS office, recommended public response, onset/expiry/end timestamps, full hazard description, and protective-action instructions. Also includes the true total count of matching alerts.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "area": "FL",
   "limit": 20
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "area": {
       "type": "string",
       "description": "2-letter US state / territory or NWS marine area code, e.g. \"FL\", \"TX\", \"PK\". Returns all active alerts for that area. Provide point OR area, not both."
      },
      "limit": {
       "type": "integer",
       "default": 20,
       "maximum": 100,
       "minimum": 1,
       "description": "Max alerts to return (1-100, default 20). Most-severe first."
      },
      "point": {
       "type": "string",
       "description": "Exact location as \"lat,lon\" in decimal degrees, e.g. \"25.7617,-80.1918\". Returns alerts covering that point. Provide point OR area, not both."
      },
      "urgency": {
       "enum": [
        "Immediate",
        "Expected",
        "Future",
        "Past",
        "Unknown"
       ],
       "type": "string",
       "description": "Filter to a single urgency level."
      },
      "severity": {
       "enum": [
        "Extreme",
        "Severe",
        "Moderate",
        "Minor",
        "Unknown"
       ],
       "type": "string",
       "description": "Filter to a single severity level."
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-weather-alerts-9e3ebf12/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
