# NWS API

> 4 public methods for NWS (weather.gov), each 1 credit per completed run.

Unofficial. Not affiliated with or endorsed by NWS.

- Page: https://fous.com/methods/weather.gov

## Methods

### [Get National Weather Service forecast](https://fous.com/methods/weather.gov/get-forecast.md)

`weather.gov/get_forecast`, read. Looks 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.

Returns: matched place, forecast office, update time, grid position, coordinates, and day and night forecast periods

### [Get hourly forecast](https://fous.com/methods/weather.gov/get-hourly-forecast.md)

`weather.gov/get_hourly_forecast`, read. Looks up a US city, street address or ZIP code and returns up to 156 hourly National Weather Service forecasts for it.

Returns: matched place, coordinates, forecast office, hourly temperature, precipitation, humidity, dew point, wind and conditions

### [List weather alerts](https://fous.com/methods/weather.gov/list-weather-alerts.md)

`weather.gov/list_weather_alerts`, read. Lists active US weather watches, warnings and advisories for a city, address, ZIP code or state, most severe first, then newest.

Returns: event, severity, urgency, headline, areas affected, effective and expiry times, description, instructions, issuing office, page URL, alert ID

### [Get current conditions](https://fous.com/methods/weather.gov/get-current-conditions.md)

`weather.gov/get_current_conditions`, read. 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.

Returns: station name and code, distance, observation time, conditions, temperature, feels-like, humidity, dew point, wind, gust, pressure, visibility, page URL
