US NWS weather alerts API

Active US National Weather Service watches, warnings, and advisories for a US point or city from the official NWS API. POST /api/v1/weather/us-alerts costs $0.002 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: MET Norway Locationforecast 2.0 and Sunrise 3.0 (CC BY 4.0) GeoNames cities dump (CC BY 4.0) US National Weather Service alerts API Limits: Not a severe-weather warning service or health diagnosis. Air quality is not included.

Active US National Weather Service watches, warnings, and advisories for a US point or city from the official NWS API. POST /api/v1/weather/us-alerts costs $0.002 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: MET Norway Locationforecast 2.0 and Sunrise 3.0 (CC BY 4.0) GeoNames cities dump (CC BY 4.0) US National Weather Service alerts API Limits: Not a severe-weather warning service or health diagnosis. Air quality is not included.

POST$0.002 USDC
/api/v1/weather/us-alerts

Example request

curl -i -X POST "https://www.brainiac.software/api/v1/weather/us-alerts" \
  -H 'content-type: application/json' \
  -H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
  --data-binary @- <<'JSON'
{
  "latitude": 38.8977,
  "longitude": -77.0365
}
JSON

Example response

{
  "status": "complete",
  "location": {
    "name": "Washington",
    "countryCode": "US",
    "latitude": 38.8977,
    "longitude": -77.0365
  },
  "alerts": [],
  "source": "US National Weather Service",
  "sourceUrl": "https://api.weather.gov/alerts/active",
  "asOf": "2026-11-20T23:20:00.000Z",
  "missing_items": []
}

An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.

Errors: HTTP 4xx/5xx are not charged. HTTP 2xx with status complete or partial and real data is charged; failed or empty results are not charged. Invalid cursor returns HTTP 400 (uncharged).

Limits: Not a severe-weather warning service or health diagnosis. Air quality is not included. When both city and coordinates are sent, coordinates win and city is not geocoded.

FAQ

  • Do I need an API key? No. Pay the listed USDC amount with x402.
  • What network? Base (eip155:8453), USDC.
  • Is this an official determination? No. Results are for human review against the cited sources.

Related APIs

MET Norway City Weather Sunrise NWS Alerts API APIGroup docsHow it works