Weather Conditions

Weather icons

Example of API response

https://api.openweathermap.org/data/2.5/weather?q=London

Example of API response
							
... 
  "weather": [
	{
	  "id": 500,
	  "main":"Rain",
	  "description": "light rain",
	  "icon": "10n"
	}
  ],
...
											   
											

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

Icon list

Day icon Night icon Description
01d.png clear sky day icon 01n.png clear sky night icon clear sky
02d.png few clouds day icon 02n.png few clouds night icon few clouds
03d.png scattered clouds day icon 03n.png scattered clouds night icon scattered clouds
04d.png broken clouds day icon 04n.png broken clouds night icon broken clouds
09d.png shower rain day icon 09n.png shower rain night icon shower rain
10d.png rain day icon 10n.png rain night icon rain
11d.png thunderstorm day icon 11n.png thunderstorm night icon thunderstorm
13d.png snow day icon 13n.png now night icon snow
50d.png mist day icon 50n.png mist night icon mist

Weather condition codes

Group 2xx: Thunderstorm

ID Main Description Icon
200 Thunderstorm thunderstorm with light rain thunderstorm icon 11d
201 Thunderstorm thunderstorm with rain thunderstorm icon 11d
202 Thunderstorm thunderstorm with heavy rain thunderstorm icon 11d
210 Thunderstorm light thunderstorm thunderstorm icon 11d
211 Thunderstorm thunderstorm thunderstorm icon 11d
212 Thunderstorm heavy thunderstorm thunderstorm icon 11d
221 Thunderstorm ragged thunderstorm thunderstorm icon 11d
230 Thunderstorm thunderstorm with light drizzle thunderstorm icon 11d
231 Thunderstorm thunderstorm with drizzle thunderstorm icon 11d
232 Thunderstorm thunderstorm with heavy drizzle thunderstorm icon 11d

Group 3xx: Drizzle

ID Main Description Icon
300 Drizzle light intensity drizzle drizzle icon 09d
301 Drizzle drizzle drizzle icon 09d
302 Drizzle heavy intensity drizzle drizzle icon 09d
310 Drizzle light intensity drizzle rain drizzle icon 09d
311 Drizzle drizzle rain drizzle icon 09d
312 Drizzle heavy intensity drizzle rain drizzle icon 09d
313 Drizzle shower rain and drizzle drizzle icon 09d
314 Drizzle heavy shower rain and drizzle drizzle icon 09d
321 Drizzle shower drizzle drizzle icon 09d

Group 5xx: Rain

ID Main Description Icon
500 Rain light rain rain icon 10d
501 Rain moderate rain rain icon 10d
502 Rain heavy intensity rain rain icon 10d
503 Rain very heavy rain rain icon 10d
504 Rain extreme rain rain icon 10d
511 Rain freezing rain rain icon 13d
520 Rain light intensity shower rain rain icon 09d
521 Rain shower rain rain icon 09d
522 Rain heavy intensity shower rain rain icon 09d
531 Rain ragged shower rain rain icon 09d

Group 6xx: Snow

ID Main Description Icon
600 Snow light snow snow icon 13d
601 Snow snow snow icon 13d
602 Snow heavy snow snow icon 13d
611 Snow sleet snow icon 13d
612 Snow light shower sleet snow icon 13d
613 Snow shower sleet snow icon 13d
615 Snow light rain and snow snow icon 13d
616 Snow rain and snow snow icon 13d
620 Snow light shower snow snow icon 13d
621 Snow shower snow snow icon 13d
622 Snow heavy shower snow snow icon 13d

Group 7xx: Atmosphere

ID Main Description Icon
701 Mist mist atmosphere icon 50d
711 Smoke smoke atmosphere icon 50d
721 Haze haze atmosphere icon 50d
731 Dust sand/dust whirls atmosphere icon 50d
741 Fog fog atmosphere icon 50d
751 Sand sand atmosphere icon 50d
761 Dust dust atmosphere icon 50d
762 Ash volcanic ash atmosphere icon 50d
771 Squall squalls atmosphere icon 50d
781 Tornado tornado atmosphere icon 50d

Group 800: Clear

ID Main Description Icon
800 Clear clear sky clear day icon 01d
clear night icon 01n

Group 80x: Clouds

ID Main Description Icon
801 Clouds few clouds: 11-25% few clouds day icon 02d
few clouds night icon 02n
802 Clouds scattered clouds: 25-50% scattered clouds day icon 03d
scattered clouds night icon 03n
803 Clouds broken clouds: 51-84% broken clouds day icon 04d
broken clouds night icon 04n
804 Clouds overcast clouds: 85-100% overcast clouds day icon 04d
overcast clouds night icon 04n
We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.