🌐
Weather-gov
weather-gov.github.io › api › general-faqs
api.weather.gov: General FAQs
For our example this gives us https://api.weather.gov/gridpoints/LWX/96,70/forecast
🌐
GitHub
github.com › weather-gov › api
GitHub - weather-gov/api: Community discussion and documentation for the NWS API · GitHub
This repository is here to serve as a meeting place for developers in the general public to interface with each other and the NWS API development team. This will allow us to gather better feedback on user needs and respond more quickly to concerns. You can start reading our documentation at https://weather-gov.github.io/api
Starred by 296 users
Forked by 15 users
Languages   HTML 51.4% | SCSS 47.7% | Ruby 0.9%
🌐
Weather-gov
weather-gov.github.io › api
api.weather.gov: Community discussion and documentation for the US National Weather Service API
Welcome! This GitHub Pages site is here to answer some of the most frequently asked questions about the National Weather Service public data API (api.weather.gov).
🌐
National Weather Service
weather.gov › documentation
Web Services Documentation
Weather.gov > Documentation · Services · API Web Service · Alerts Web Service · Technical Bulletins · This page provides documentation for the National Weather Service. Please select the documentation that you are looking for using the menu above or the list below.
🌐
National Climatic Data Center
ncdc.noaa.gov › cdo-web › webservices › v2
Web Services API (version 2) Documentation | Climate Data Online (CDO) | National Climatic Data Center (NCDC)
Fetch all available datasets with data for a given set of stations https://www.ncei.noaa.gov/cdo-web/api/v2/datasets?stationid=COOP:310090&stationid=COOP:310184&stationid=COOP:310212 · Data Categories represent groupings of data types. Click on the links below and a preview will display example results from each REST query.
🌐
Zenoss
zenpacks.zenoss.io › zdk › start › http › nws-api
NWS API - ZenPack Documentation
Here’s an example query for the observations for the weather station at Dallas/Fort Worth International Airport: https://api.weather.gov/stations/KDFW/observations/latest
Top answer
1 of 2
5

Looking at the api documentation found HERE and HERE, you are calling the /gridpoints/{wfo}/{x},{y}/forecast/hourly call which will return the hourly weather forecast for the specified weather office {wfo} at the specified x-y coordinates. You can find a list of the weather offices HERE. Finding the X-Y coordinates for the weather offices may be a bit more tedious to find on the web.

If you happen have access to the GPS coordinates that you are working with you can use the /points/{x},{y} API call to get the information on the closest weather office to then pass to the /gridpoints/{wfo}/{x},{y}/forecast/hourly API call.

The flow of your application can look something like this:

Step 1: Get your map Geo coordinates. In my case, I am at 35,-106

Step 2: Make a call to the weather.gov API: https://api.weather.gov/points/35,-106. You will be presented with some JSON data. Look for the cwa key in the properties object. That will be the forecast office to pass into the next api call. In my case, the key is ABQ. You also need to find the gridX and gridY keys in the properties. These are the XY coordinates that you will use for the {X},{Y} parameters in the API call. In my case X = 121 and Y = 112.

Step 3: Make the final call to the weather.gov API: https://api.weather.gov/gridpoints/ABQ/121,112/forecast/hourly

2 of 2
4

As long as you have the latitude/longitude of the location you want the forecast for, then:

  1. Get the point metadata from https://api.weather.gov/points/{lat},{lon}
  2. Follow the link in the forecastHourly property to get the forecast

This is preferable to constructing the URL as in the other answer, as your program won't break if the URL scheme changes in the future.

Find elsewhere
🌐
GitHub
github.com › weather-gov › api › discussions › 558
Retrieving Current Temps via API · weather-gov/api · Discussion #558
... I would suggest Open-Metro does the same as us, we just make it more transparent. For example, if you go to weather underground and choose a location, the current temp is associated to the nearest station.
Author   weather-gov
🌐
Python Snacks
pythonsnacks.com › p › a-guide-on-using-the-national-weather-service-api-with-python
A guide on using the National Weather Service API with Python
July 12, 2025 - import requests headers = {'User-Agent' : 'myapp'} endpoint = 'https://api.weather.gov/alerts?area={state}' response = requests.get(endpoint, headers = headers) data = response.json() # `features` contains the data we want.
🌐
Aviation Weather
aviationweather.gov › data › api
Data API
REST API endpoint are accessible at addresses under /api/data as outlined in the schema information. For example METARs are found at https://aviationweather.gov/api/data. Most requests require query parameters in order to specify constraints of the data being requested.
🌐
National Weather Service
weather.gov › media › documentation › docs › NWS_Geolocation.pdf pdf
API alert request primer
If you wish to only receive active alerts for a specific point (for example, your house) regardless how the · products are generated, you can request that via the point parameter: https://api.weather.gov/alerts/active?point=38.9807,-76.9373
🌐
Weather
forecast-v3.weather.gov › documentation
Documentation | National Weather Service
Specific examples include the display of the time (e.g. "NOW until...") for hazard shading on conditions currently in affect, and the forecast page mini map might retain the view of the entire US versus automatically zooming to the appropriate point or zone. [Tracking code: 896] We are excited ...
🌐
openHAB Community
community.openhab.org › tutorials & examples
NWS Weather API - Tutorials & Examples - openHAB Community
February 20, 2024 - I didn’t like the OpenWeatherMap forecast, it wasn’t very accurate for my location. I’ve been getting weather from the NWS for years and it has always been the most accurate… I’m not a big talker so here’s what I’ve got… I was pretty happy with the widget that was provided for ...
🌐
Kimballrexford
kimballrexford.com › national-weather-service-nws-new-api
National Weather Service (NWS) new API – KimballRexford.com
February 17, 2017 - 2) Then look up that location in ... the current weather forecast which includes the icon/image. “hourly” URI example: https://api.weather.gov/gridpoints/TOP/31,80/forecast/hourly...
🌐
Weather-gov
weather-gov.github.io › api › gridpoints
api.weather.gov: Gridpoint Frequently Asked Questions
July 4, 2019 - For example, TO, A, and 267 would indicate Tornado Watch #267. Note that not all forecast offices utilize this layer for all watch/warning/advisory products. It is most typically used for tropical storm and hurricane watches and warnings. probabilityOfPrecipitation: Chance of precipitation ...
🌐
Geo-jobe
geo-jobe.com › mapthis › tutorial-create-your-own-weather-station-using-web-apis
Tutorial: Create Your Own Weather Station Using Web APIs – GEO Jobe
February 7, 2024 - This URL links to an image on weather.gov. At the end of the URL is the word “medium.” The image has three sizes (“small”, “medium”, and “large”) that live on different URLs.