# Penny Data: US Weather Alerts by State

> Penny Data: 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 current active weather alerts for a given US state from the National Weather Service, as JSON, paid per call in USDC.

## Facts

- Endpoint: GET https://pennydatahq.com/api/us-weather-alerts/%7Bstate%7D?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/penny-data-us-weather-alerts-by-state-2d95f9c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RaGs9287W5FMRRC7b-W00

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 penny-data-us-weather-alerts-by-state-2d95f9c6
```

Example prompt: Are there any active weather alerts or advisories in Texas right now? Give me the details including what areas are affected, how severe they are, and when they expire.

## When to prefer this

Use this endpoint when you need real-time NWS weather alert data for a specific US state without setting up an API key or account — ideal for agents making pay-per-call requests in USDC on Base via x402. Prefer this over direct NWS API integration when you want a simple, normalized JSON response with no auth overhead and metered micropayment pricing.

## Known failure modes

- Invalid or unrecognized state code returns empty or error response
- No active alerts for a state returns count of 0 and empty alerts array
- Payment failure or insufficient USDC balance blocks the request
- NWS upstream outage may cause stale or unavailable data
- Malformed state parameter (e.g. full state name instead of abbreviation) may not match expected format

## How this service works

Penny Data: pay-per-call data for AI agents. UK Company Lookup, UK Postcode Lookup, UK Company Filing History, LEI Lookup, GB Carbon Intensity, ECB Euro Reference Rate, UK Food Hygiene Ratings, US Company Filings by CIK, Country Profile, US Weather Alerts, UK Company Brief, Australian Company Lookup, EU Economic Indicators and Norwegian Company Lookup, as JSON, paid per call in USDC on Base with x402. No API key or account.

## Output

A JSON object containing the total count of active alerts, the queried state code, a timestamp of when the data was last updated, and an array of alert objects. Each alert includes the event type (e.g. High Surf Advisory), affected geographic areas, onset and expiry times, issuing NWS office, urgency, severity, certainty, a human-readable headline, and any official safety instructions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "state": "HI",
  "alerts": [
   {
    "ends": "2026-11-02T18:00:00-10:00",
    "areas": "Niihau; Kauai Southwest; Waianae Coast; Oahu North Shore; Maui Windward West; Kauai North; Kauai East; Koolau Windward; Molokai Windward; Molokai North; Maui Central Valley North; Windward Haleakala",
    "event": "High Surf Advisory",
    "onset": "2026-11-01T15:45:00-10:00",
    "office": "NWS Honolulu HI",
    "expires": "2026-11-02T04:45:00-10:00",
    "urgency": "Expected",
    "headline": "High Surf Advisory issued November 1 at 3:45PM HST until November 2 at 6:00PM HST by NWS Honolulu HI",
    "severity": "Minor",
    "certainty": "Likely",
    "instruction": "Heed all advice from ocean safety officials. When in doubt, don't\ngo out."
   }
  ],
  "updated": "2026-11-02T12:32:10+00:00"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/penny-data-us-weather-alerts-by-state-2d95f9c6/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)
