Current Weather Conditions
Learn how to get current weather conditions data.
Overview
The Current Conditions API allows us to get the current weather conditions data for a specific location. It provides detailed information, including the current temperature, wind speed, precipitation summary, information on cloud cover, and atmospheric pressure.
Endpoints for current conditions
In this lesson, we learn how to retrieve the current weather conditions data for a specific location and for the top cities around the globe.
Current conditions for a specific location
We make a GET
request to the following URL to get the present conditions data for a location of our choice:
http://dataservice.accuweather.com/currentconditions/v1/{locationKey}
Current conditions for top cities
We make a GET
request to the following URL to get the present conditions data for the specified number of top cities around the world:
http://dataservice.accuweather.com/currentconditions/v1/topcities/{group}
Note: The ranking of the cities is based on a number of factors, including, but not limited to, the population of the city, its political importance, and its geographic size. We can retrieve information for the top 50, 100, or 150 cities, worldwide using this endpoint.
Input parameters
Get hands-on with 1200+ tech skills courses.