US weather alerts

$0.002 per call · USDC via x402 · GET /api/weather-alerts · Cached 5m

Active National Weather Service alerts for a US state as clean JSON: event, severity, headline, affected areas, onset/expiry. Send GET /api/weather-alerts with the required field area and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with area, count and alerts.

Live government data, no key. ?area=CA.

Category: Live public data · Tags: weather alerts nws noaa government

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
areastringyesTwo-letter US state/territory code, e.g. CA, TX, FL

Example request

curl -i "https://agent402.tools/api/weather-alerts?area=CA"

Without payment this returns HTTP 402 Payment Required with the exact price for weather-alerts; any x402 v2 or MPP client pays it and retries.

Example response

{
  "area": "CA",
  "count": 2,
  "alerts": [
    {
      "event": "Red Flag Warning",
      "severity": "Severe",
      "headline": "…",
      "areas": "…",
      "onset": "2026-06-12T12:00:00-07:00",
      "expires": "…"
    }
  ]
}
FieldTypeAlways presentIn the example
areastringyesCA
countnumberyes2
alertsarray of objectsyes1 item in the example

From an MCP client

catalog.call {
  "slug": "weather-alerts",
  "params": {
    "area": "CA"
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for weather-alerts; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/weather-alerts?area=CA");

Part of these workflows

US weather alerts is one step in this skill pack, each sold as a single call:

Related tools

Weather forecast (US)

$0.001 · GET /api/weather-forecast

Multi-period weather forecast for a US location from api.weather.gov (NWS, public domain). Give latitude and longitude; …

US college lookup (Scorecard)

$0.004 · GET /api/college-lookup

Look up US colleges by name via the Dept. of Education College Scorecard: state, out-of-state tuition, overall admission…

FDA medical device recalls

$0.004 · GET /api/device-recalls

Search FDA medical-device recall / enforcement records (openFDA): recalling firm, classification (Class I/II/III), reaso…

FDA drug adverse events

$0.001 · GET /api/drug-adverse-events

Top reported adverse reactions for a drug from the FDA FAERS database (openFDA), ranked by report count - a fast read on…

FDA drug recalls

$0.004 · GET /api/drug-recalls

Search FDA drug recall / enforcement records (openFDA): recalling firm, classification (Class I/II/III), reason, distrib…

Recent earthquakes (USGS)

$0.002 · GET /api/earthquakes

Real-time USGS earthquake feed: magnitude, place, time, depth, coordinates. Live government data, no key. ?minMag=4.5&pe…