NWS API: List weather alerts
Lists active US weather watches, warnings and advisories for a city, address, ZIP code or state, most severe first, then newest.
Unofficial. Not affiliated with or endorsed by NWS.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Location, required
location US city, street address, ZIP code, state name or state code, such as Tulsa, OK; 74103; or Texas.
Texas
- Min Severity optional
min_severity Minimum alert severity, such as severe. Any includes alerts with unknown severity.
any (default)
One of
any,minor,moderate,severe,extreme.
Input as JSON
{ "location": "Texas"}Output
{ "alerts": []}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"weather.gov/list_weather_alerts","input":{"location":"Texas"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "weather.gov/list_weather_alerts" , "input": { "location": "Texas" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "weather.gov/list_weather_alerts" , "input": { "location": "Texas" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run weather.gov/list_weather_alerts# with {"location":"Texas"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "location" ], "properties": { "location": { "type": "string", "description": "US city, street address, ZIP code, state name or state code, such as Tulsa, OK; 74103; or Texas." }, "min_severity": { "enum": [ "any", "minor", "moderate", "severe", "extreme" ], "type": "string", "default": "any", "description": "Minimum alert severity, such as severe. Any includes alerts with unknown severity." } }}Output schema
{ "type": "object", "required": [ "alerts" ], "properties": { "alerts": { "type": "array", "items": { "type": "object", "required": [ "event", "severity", "urgency", "headline", "areas_affected", "effective_time", "expiry_time", "description", "instructions", "issuing_office", "page_url", "alert_id" ], "properties": { "event": { "type": [ "string", "null" ] }, "urgency": { "type": [ "string", "null" ] }, "alert_id": { "type": [ "string", "null" ], "x-fous-developer": true }, "headline": { "type": [ "string", "null" ] }, "page_url": { "type": [ "string", "null" ] }, "severity": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "expiry_time": { "type": [ "string", "null" ], "description": "Alert expiration time in ISO 8601 with offset." }, "instructions": { "type": [ "string", "null" ] }, "areas_affected": { "type": [ "string", "null" ] }, "effective_time": { "type": [ "string", "null" ], "description": "Alert effective time in ISO 8601 with offset." }, "issuing_office": { "type": [ "string", "null" ] } }, "additionalProperties": false }, "description": "Active watches, warnings, and advisories, ordered most severe first, then newest." } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
weather.gov/list_weather_alerts- Returns
- event, severity, urgency, headline, areas affected, effective and expiry times, description, instructions, issuing office, page URL, alert ID
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method weather.gov/list_weather_alerts with the inputs above.
Ask your agent
- Are there any active tornado or flash flood warnings for Tulsa, OK right now?
- Show me only severe or extreme weather alerts for ZIP code 30301
- What watches, warnings or advisories are in effect for the state of Texas?
- I'm heading to 1600 Pennsylvania Ave, Washington DC — any current weather alerts I should know about?
- List moderate-or-worse weather advisories for Minnesota, most severe first, with their expiry times
See more
All NWS methodsGets the latest observed weather from a nearby National Weather Service station for a US city, address, or ZIP code. Measurements the station does not report are null.
weather.gov/get_current_conditionsLooks up the National Weather Service seven-day day and night forecast for a U.S. city, address, or ZIP code. Forecast availability depends on NWS land-grid coverage.
weather.gov/get_forecastLooks up a US city, street address or ZIP code and returns up to 156 hourly National Weather Service forecasts for it.
weather.gov/get_hourly_forecastLists active severe weather alerts for a city, address, ZIP or postcode on The Weather Channel, most severe first. An empty list means no active alerts.
weather.com/list_weather_alertsLists NOAA space weather alerts, warnings, watches and summaries issued in the last 1 to 7 days, newest first, with validity times and NOAA scale levels when the message gives them.
swpc.noaa.gov/list_space_weather_alertsLists current alerts for a named National Park Service park from its Current Conditions page, in the order shown on the page.
nps.gov/list_park_alertsGets current MSN Weather conditions for a city, address or ZIP code. The place is found through OpenStreetMap Nominatim. Matches for broad searches are approximate.
msn.com/get_current_weatherGets AirNow current air quality, pollutant readings and today's and tomorrow's forecasts for a US city or ZIP code, or a covered Canadian or Mexican city.
airnow.gov/get_air_quality