Hourly Forecasts
Learn how to get hourly weather forecast information for a specific location.
Overview
Hourly forecasts provide the latest weather updates during the day. We can use the endpoints discussed in this lesson to remain up-to-date with the changing weather over the course of the next few hours.
Hourly forecast endpoints
In this lesson, we learn how to retrieve the hourly weather forecast data for a particular location for the next hour, and for a period of the next 12 hours.
1 hour of hourly forecasts
To get hourly forecasts for the next hour, we make a GET
request to the following URL:
http://dataservice.accuweather.com/forecasts/v1/hourly/1hour/{locationKey}
12 hours of hourly forecasts
Similarly, for hourly forecasts for the next 12 hours, we make a GET
request to the following URL:
http://dataservice.accuweather.com/forecasts/v1/hourly/12hour/{locationKey}
Input parameters
The table below shows the list of input parameters for both endpoints.
Get hands-on with 1200+ tech skills courses.