🌐
National Weather Service
weather.gov › documentation › services-web-api
API Web Service
The National Weather Service (NWS) API allows developers access to critical forecasts, alerts, and observations, along with other weather data. The API was designed with a cache-friendly approach that expires content based upon the information life cycle. The API is based upon of JSON-LD to ...
🌐
Hacker News
news.ycombinator.com › item
The US government has a public, free API for getting weather data, and it will s... | Hacker News
March 1, 2023 - I never understood why people go through all these other API's that consistently get shut down, cancelled or become pay for use eventually · See here for notes on other unsupported providers: https://github.com/vsergeev/briefsky#unsupported-providers
Discussions

json - How do I get the hourly forecast from api.weather.gov for Texas stations or zones or offices or gridpoints or anything else? - Stack Overflow
I have one gridpoint working for Indiana. https://api.weather.gov/gridpoints/IND/56,65/forecast/hourly More on stackoverflow.com
🌐 stackoverflow.com
[Solved] Arduino Language National Weather Service API request WeatherStation
I am trying obtain weather data from the National Weather Service (NWS) API. They have some example request strings on the website API Web Service. I would like help translating those into Arduino code. Also there are some specific headers required in the request string 1) Accept, 2) version ... More on forum.arduino.cc
🌐 forum.arduino.cc
0
February 16, 2020
Weather API service
If you’re in the US, your tax dollars already pay for a weather API! The National Weather Service has an API that you can ping for forecasts of a specific latitude/longitude or forecast office/state/zip code (if you convert them to a latitude/longitude). One of the outputs will be a forecast of percent chance of precipitation as well as the forecasted amount (QPF = quantitative precipitation forecast). Here’s an FAQ webpage: NWS API . Otherwise, something like WeatherBELL may have what you’re looking for? More on reddit.com
🌐 r/weather
15
6
December 21, 2023
NWS Weather API
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…… More on community.openhab.org
🌐 community.openhab.org
1
February 20, 2024
🌐
Weather-gov
weather-gov.github.io › api › general-faqs
api.weather.gov: General FAQs
api.weather.gov represents the public face of the next generation of data services from the National Weather Service.
U.S. forecasting agency of the National Oceanic and Atmospheric Administration
1325 East-West Hwy, Silver Spring, MD 20910
The National Weather Service (NWS) is an agency of the United States federal government that is tasked with providing weather forecasts, warnings of hazardous weather, and other weather-related products to organizations and … Wikipedia
Factsheet
Agency overview
Formed February 9, 1870; 156 years ago (1870-02-09)
Preceding agencies United States Weather Bureau
U.S. Army Signal Service
Factsheet
Agency overview
Formed February 9, 1870; 156 years ago (1870-02-09)
Preceding agencies United States Weather Bureau
U.S. Army Signal Service
🌐
National Weather Service
weather.gov
National Weather Service
Heavy snow and high winds continue in the Great Lakes and Northeast. A moderate atmospheric river will continue to bring heavy precipitation to the Pacific Northwest and northern Rockies. A major winter storm will develop across the northern High Plains tonight into Saturday and rapidly strengthen ...
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.

🌐
GitHub
github.com › weather-gov › api › discussions › 558
Retrieving Current Temps via API · weather-gov/api · Discussion #558
If you call /points/XXXXXX,YYYYYYY, with the lat/lon, the properties/observationStations key provides another API call, /gridpoints/AA,BB/stations, that returns a list of weather stations near that point, sorted by distance. You can take a station from that list, call /stations/STATIONID/observations, and that gives you the weather at that station.
Author   weather-gov
Find elsewhere
🌐
Arduino Forum
forum.arduino.cc › projects › general guidance
[Solved] Arduino Language National Weather Service API request WeatherStation - General Guidance - Arduino Forum
February 16, 2020 - I am trying obtain weather data from the National Weather Service (NWS) API. They have some example request strings on the website API Web Service. I would like help translating those into Arduino code. Also there are some specific headers required in the request string 1) Accept, 2) version ...
🌐
National Weather Service
weather.gov › documentation
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.
🌐
Visual Crossing
visualcrossing.com › home › the easiest weather api
The Easiest Weather API | Visual Crossing
May 15, 2025 - Fast, free & simple weather API for history & forecast data. Current conditions, alerts, hourly, sub-hourly, and daily data worldwide.
🌐
RPubs
rpubs.com › anacolla2 › USNWS-API
RPubs - US National Weather Service API Project
US National Weather Service API Project · by Ana Collado · Last updated over 1 year ago · Hide Comments (–) Share Hide Toolbars ·
🌐
Reddit
reddit.com › r/weather › weather api service
r/weather on Reddit: Weather API service
December 21, 2023 -

Hello all!

I have a client (think roofing) that wants to be able to schedule roofing crews around upcoming weather forecast. Can someone recommend a service (reasonably priced is ok) that can give us the forecast as a percent chance of rain by zip code that we can refresh every hour or so to put into the scheduling algorithm? We are thinking setting up a program that runs every hour and updates a weather table with the regions zip codes and a column for each upcoming day that we put the percentage chance of rain.

Thanks!

Top answer
1 of 5
5
If you’re in the US, your tax dollars already pay for a weather API! The National Weather Service has an API that you can ping for forecasts of a specific latitude/longitude or forecast office/state/zip code (if you convert them to a latitude/longitude). One of the outputs will be a forecast of percent chance of precipitation as well as the forecasted amount (QPF = quantitative precipitation forecast). Here’s an FAQ webpage: NWS API . Otherwise, something like WeatherBELL may have what you’re looking for?
2 of 5
2
As pointed out, you can use the NWS API for free in the US. I will say it’s not without its issues. I have an app that relies heavily on the NWS API and it has been the biggest point of failure at any given time. The reliability lately has gotten a lot better, but I still will get 404 and 503 errors, or sometimes even just straight up outdated forecasts (like days old). I have coded against the Aeris Weather API and it’s featured, but expensive. You could check out the Azure Maps API that uses AccuWeather as its data source for weather and they give relatively generous free calls. Beyond the free tier, the pricing is very reasonable. You can also use the Azure geolocation API to convert your job addresses to lat/long and store that in your database, most weather APIs prefer to work in coordinates. At that point you can easily leverage geospatial functions of the database to group job areas regionally how you see fit, not just ZIP (though nothing precludes you from doing that).
🌐
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 297 users
Forked by 15 users
Languages   HTML 51.4% | SCSS 47.7% | Ruby 0.9%
🌐
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.
🌐
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 OpenWeatherMap, so I ended up reusing most of the code from that widget.
🌐
GitHub
github.com › weather-gov › api › discussions
weather-gov/api · Discussions
Explore the GitHub Discussions forum for weather-gov api. Discuss code, ask questions & collaborate with the developer community.
Author   weather-gov
🌐
National Climatic Data Center
ncdc.noaa.gov › cdo-web › webservices › getstarted
Climate Data Online: Web Services Documentation
This API is for developers looking to create their own scripts or programs that use the CDO database of weather and climate data. An access token is required to use the API, and each token will be limited to five requests per second and 10,000 requests per day.