Weather icons

Example

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

{
    "coord": {
        "lon": -0.13,
        "lat": 51.51
    },
    "weather": [
        {
            "id": 500,
            "main": "Rain",
            "description": "light rain",
            "icon": "10n"
        }
    ],
    "base": "cmc stations",
    "main": {
        "temp": 286.164,
        "pressure": 1017.58,
        "humidity": 96,
        "temp_min": 286.164,
        "temp_max": 286.164,
        "sea_level": 1027.69,
        "grnd_level": 1017.58
    },
    "wind": {
        "speed": 3.61,
        "deg": 165.001
    },
    "rain": {
        "3h": 0.185
    },
    "clouds": {
        "all": 80
    },
    "dt": 1446583128,
    "sys": {
        "message": 0.003,
        "country": "GB",
        "sunrise": 1446533902,
        "sunset": 1446568141
    },
    "id": 2643743,
    "name": "London",
    "cod": 200
}

How to get icon URL

For code 501 - moderate rain icon = "10d"
URL is
http://openweathermap.org/img/w/10d.png

Icon list

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

Weather condition codes

Group 2xx: Thunderstorm

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

Group 3xx: Drizzle

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

Group 5xx: Rain

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

Group 6xx: Snow

ID Meaning Icon
600 light snow 13d
601 snow 13d
602 heavy snow 13d
611 sleet 13d
612 shower sleet 13d
615 light rain and snow 13d
616 rain and snow 13d
620 light shower snow 13d
621 shower snow 13d
622 heavy shower snow 13d

Group 7xx: Atmosphere

ID Meaning Icon
701 mist 50d
711 smoke 50d
721 haze 50d
731 sand, dust whirls 50d
741 fog 50d
751 sand 50d
761 dust 50d
762 volcanic ash 50d
771 squalls 50d
781 tornado 50d

Group 800: Clear

ID Meaning Icon
800 clear sky 01d 01n

Group 80x: Clouds

ID Meaning Icon
801 few clouds 02d 02n
802 scattered clouds 03d 03n
803 broken clouds 04d 03d
804 overcast clouds 04d 04d

Group 90x: Extreme

ID Meaning
900 tornado
901 tropical storm
902 hurricane
903 cold
904 hot
905 windy
906 hail

Group 9xx: Additional

ID Meaning
951 calm
952 light breeze
953 gentle breeze
954 moderate breeze
955 fresh breeze
956 strong breeze
957 high wind, near gale
958 gale
959 severe gale
960 storm
961 violent storm
962 hurricane