NWS API: Get current conditions
Gets 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.
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, or ZIP code, for example Seattle, 98101, or 1600 Pennsylvania Ave NW, Washington, DC.
98101
Input as JSON
{ "location": "98101"}Output
{ "page_url": "https://api.weather.gov/stations/KBFI/observations/2026-10-23T07:40:00+00:00" , "conditions": "Clear", "dew_point_c": 7, "dew_point_f": 44.6, "pressure_mb": 1019.6, "feels_like_c": null, "feels_like_f": null, "station_code": "KBFI", "station_name": "Boeing Field - King County International Airport", "pressure_inhg": 30.11, "temperature_c": 8, "temperature_f": 46.4, "wind_gust_mph": null, "distance_miles": 4.62, "wind_direction": "Calm", "wind_speed_mph": 0, "observation_time": "2026-10-23T07:40:00+00:00", "visibility_miles": 10, "relative_humidity_percent": 93.4}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"weather.gov/get_current_conditions","input":{"location":"98101"}}' # 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/get_current_conditions" , "input": { "location": "98101" }})# 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/get_current_conditions" , "input": { "location": "98101" } }), 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/get_current_conditions# with {"location":"98101"}"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", "minLength": 1, "description": "US city, street address, or ZIP code, for example Seattle, 98101, or 1600 Pennsylvania Ave NW, Washington, DC." } }}Output schema
{ "type": "object", "required": [ "station_name", "distance_miles", "observation_time", "conditions", "temperature_f", "temperature_c", "feels_like_f", "feels_like_c", "relative_humidity_percent", "dew_point_f", "dew_point_c", "wind_speed_mph", "wind_direction", "wind_gust_mph", "pressure_inhg", "pressure_mb", "visibility_miles", "station_code", "page_url" ], "properties": { "page_url": { "type": [ "string", "null" ], "description": "Link to the reported observation." }, "conditions": { "type": [ "string", "null" ], "description": "Observed weather conditions in words." }, "dew_point_c": { "type": [ "number", "null" ], "description": "Dew point in °C." }, "dew_point_f": { "type": [ "number", "null" ], "description": "Dew point in °F." }, "pressure_mb": { "type": [ "number", "null" ], "description": "Barometric pressure in millibars." }, "feels_like_c": { "type": [ "number", "null" ], "description": "Reported heat index or wind chill in °C." }, "feels_like_f": { "type": [ "number", "null" ], "description": "Reported heat index or wind chill in °F." }, "station_code": { "type": [ "string", "null" ], "description": "Station identifier." }, "station_name": { "type": [ "string", "null" ], "description": "Name of the reporting weather station." }, "pressure_inhg": { "type": [ "number", "null" ], "description": "Barometric pressure in inches of mercury." }, "temperature_c": { "type": [ "number", "null" ], "description": "Air temperature in °C." }, "temperature_f": { "type": [ "number", "null" ], "description": "Air temperature in °F." }, "wind_gust_mph": { "type": [ "number", "null" ], "description": "Wind gusts in mph." }, "distance_miles": { "type": [ "number", "null" ], "description": "Distance from the place to the station in miles." }, "wind_direction": { "type": [ "string", "null" ], "description": "Wind direction as a compass word." }, "wind_speed_mph": { "type": [ "number", "null" ], "description": "Wind speed in mph." }, "observation_time": { "type": [ "string", "null" ], "description": "Time of the observation, as ISO 8601 with an offset." }, "visibility_miles": { "type": [ "number", "null" ], "description": "Visibility in miles." }, "relative_humidity_percent": { "type": [ "number", "null" ], "description": "Relative humidity in percent." } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
weather.gov/get_current_conditions- Returns
- station name and code, distance, observation time, conditions, temperature, feels-like, humidity, dew point, wind, gust, pressure, visibility, page URL
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/get_current_conditions with the inputs above.
Ask your agent
- What's the current weather at Denver, CO right now?
- Latest observed temperature and wind near ZIP 73301
- Can you check current conditions for 350 5th Ave, New York, NY?
- How humid is it in Phoenix this afternoon, and what's the dew point?
- Pull the latest weather station reading on weather.gov for Austin, Texas including visibility and pressure
See more
All NWS methodsLooks 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 US weather watches, warnings and advisories for a city, address, ZIP code or state, most severe first, then newest.
weather.gov/list_weather_alertsGets current conditions and today's high and low from The Weather Channel for a city, postcode, ZIP code or street address worldwide. Street addresses are geocoded exactly first; some observations omit gusts or other measurements.
weather.com/get_current_weatherGets current conditions and RealFeel for a city or postal code on AccuWeather. The UV level follows standard UV-index ranges. Air quality is null unless it is shown with the current conditions.
accuweather.com/get_current_weatherGets 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_qualityGets the latest published OnTheSnow snow report for a ski resort by name, optionally narrowed by region or country. Off-season measurements may be unavailable; surface conditions are returned only when stated in words on the report.
onthesnow.com/get_ski_report