...
"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
200 | Thunderstorm | thunderstorm with light rain | ![]() |
201 | Thunderstorm | thunderstorm with rain | ![]() |
202 | Thunderstorm | thunderstorm with heavy rain | ![]() |
210 | Thunderstorm | light thunderstorm | ![]() |
211 | Thunderstorm | thunderstorm | ![]() |
212 | Thunderstorm | heavy thunderstorm | ![]() |
221 | Thunderstorm | ragged thunderstorm | ![]() |
230 | Thunderstorm | thunderstorm with light drizzle | ![]() |
231 | Thunderstorm | thunderstorm with drizzle | ![]() |
232 | Thunderstorm | thunderstorm with heavy drizzle | ![]() |
300 | Drizzle | light intensity drizzle | ![]() |
301 | Drizzle | drizzle | ![]() |
302 | Drizzle | heavy intensity drizzle | ![]() |
310 | Drizzle | light intensity drizzle rain | ![]() |
311 | Drizzle | drizzle rain | ![]() |
312 | Drizzle | heavy intensity drizzle rain | ![]() |
313 | Drizzle | shower rain and drizzle | ![]() |
314 | Drizzle | heavy shower rain and drizzle | ![]() |
321 | Drizzle | shower drizzle | ![]() |
500 | Rain | light rain | ![]() |
501 | Rain | moderate rain | ![]() |
502 | Rain | heavy intensity rain | ![]() |
503 | Rain | very heavy rain | ![]() |
504 | Rain | extreme rain | ![]() |
511 | Rain | freezing rain | ![]() |
520 | Rain | light intensity shower rain | ![]() |
521 | Rain | shower rain | ![]() |
522 | Rain | heavy intensity shower rain | ![]() |
531 | Rain | ragged shower rain | ![]() |
600 | Snow | light snow | ![]() |
601 | Snow | snow | ![]() |
602 | Snow | heavy snow | ![]() |
611 | Snow | sleet | ![]() |
612 | Snow | light shower sleet | ![]() |
613 | Snow | shower sleet | ![]() |
615 | Snow | light rain and snow | ![]() |
616 | Snow | rain and snow | ![]() |
620 | Snow | light shower snow | ![]() |
621 | Snow | shower snow | ![]() |
622 | Snow | heavy shower snow | ![]() |
701 | Mist | mist | ![]() |
711 | Smoke | smoke | ![]() |
721 | Haze | haze | ![]() |
731 | Dust | sand/dust whirls | ![]() |
741 | Fog | fog | ![]() |
751 | Sand | sand | ![]() |
761 | Dust | dust | ![]() |
762 | Ash | volcanic ash | ![]() |
771 | Squall | squalls | ![]() |
781 | Tornado | tornado | ![]() |
800 | Clear | clear sky | ![]() ![]() |
801 | Clouds | few clouds: 11-25% | ![]() ![]() |
802 | Clouds | scattered clouds: 25-50% | ![]() ![]() |
803 | Clouds | broken clouds: 51-84% | ![]() ![]() |
804 | Clouds | overcast clouds: 85-100% | ![]() ![]() |