National Weather Service APIunofficial
Get public US National Weather Service point forecasts, hourly tables, and current weather observations.
- weather.gov
all live 3 operations, checked by the installs that call them.
Seeded by the maintainers.
Try it
Set up API Anything for your agents:
npx -y api-anything setupThen ask your agent, which finds this site by itself, or call it from a shell:
api-anything pull weathergov
api-anything call weathergov getCurrent lat=47.6062 lon=-122.3321Operations
| Operation | Method | Login | Writes | Status |
|---|---|---|---|---|
getCurrent(lat, lon) -> station, stationId, observationTime, temperature, humidity, windSpeed, windDirection, windGust, visibility, conditionsGet the site's reported current conditions for a US location. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getForecast(lat, lon) -> location, periods, startTimes, temperature, shortForecast, detailedForecast, precipitationProbabilityGet the National Weather Service forecast for a US location, in aligned period arrays. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getHourly(lat, lon) -> element, hour01, hour02, hour03, hour04, hour05, hour06, hour07, hour08, hour09, hour10, hour11, hour12, hour13, hour14, hour15, hour16, hour17, hour18, hour19, hour20, hour21, hour22, hour23, hour24Get the National Weather Service tabular hourly forecast for a US location. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
Notes
No account is needed. Use decimal-degree coordinates for US locations. Forecasts and observations update often; the observing station can be some distance from the requested point.
- Forecast fields are parallel arrays: entries at the same index describe the same period. Temperatures are in degrees Fahrenheit, and detailed text includes wind. Precipitation probabilities are percentages and can be null.
- Current temperatures are in degrees Fahrenheit, humidity in percent, wind speed and gusts in mph, wind direction in degrees (
999means variable), and visibility in miles. Values can beNAor missing. - Outside the service area, the site can return HTTP 400, reported as an error.
- The hourly table has two consecutive 24-hour blocks of rows. Within each block, the same
hour01throughhour24column identifies the same time across rows; the Hour row names the local time zone. Date cells mark changes of date, and blank date cells carry forward the preceding date, including across blocks. Other blank cells mean no value shown. Temperature and dewpoint are in °F, wind in mph, and sky cover and precipitation potential in percent. Weather rows use the site's abbreviations, not a short forecast sentence.
About these operations
Each operation is a request learned from National Weather Service's own web pages: API Anything replays it over plain HTTP and falls back to a browser when it must. Read them as JSON.