...
"weather": [
{
"id": 500,
"main":"Rain",
"description": "light rain",
"icon": "10n"
}
],
...
Weather Conditions
Weather icons
Example of API response
https://api.openweathermap.org/data/2.5/weather?q=London
Example of API response
NOTE: It is possible to meet more than one weather condition for a requested location. The first weather condition in API respond is primary. An example
How to get icon URL
For code 500 - light rain icon = "10d". See below a full list of codes
URL is https://openweathermap.org/img/wn/10d@2x.png
Weather condition codes
800 | Clear | clear sky | 01d 01n |
801 | Clouds | few clouds: 11-25% | 02d 02n |
802 | Clouds | scattered clouds: 25-50% | 03d 03n |
803 | Clouds | broken clouds: 51-84% | 04d 04n |
804 | Clouds | overcast clouds: 85-100% | 04d 04n |