Historical Weather Conditions
Learn how to get historical current conditions data for a specific location.
Overview
Historical weather conditions data provides us valuable insights into the weather patterns for a particular location. It also helps us predict what the weather may be like given a certain weather pattern that has existed over the last few hours.
Historical current conditions endpoints
In this lesson, we learn how to retrieve the historical current conditions data for a specific location for the past 6 hours and the past 24 hours.
Past 6 hour conditions
We make a GET
request to the following URL to get the historical weather conditions data for the past six hours for a location of our choice:
http://dataservice.accuweather.com/currentconditions/v1/{locationKey}/historical
Past 24 hour conditions
Similarly, we make a GET
request to the following URL to get the historical weather conditions data for the past 24 hours for a location of our choice:
http://dataservice.accuweather.com/currentconditions/v1/{locationKey}/historical/24
Input parameters
The table below shows the list of input parameters for both endpoints.
Get hands-on with 1200+ tech skills courses.