Weather Conditions
Weather icons
Example of API response
http://api.openweathermap.org/data/2.5/weather?q=London
... "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 http://openweathermap.org/img/wn/10d@2x.png
Weather condition codes
Group 7xx: Atmosphere
ID | Main | Description | Icon |
---|---|---|---|
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 | ![]() |
Group 800: Clear
ID | Main | Description | Icon |
---|---|---|---|
800 | Clear | clear sky | ![]() ![]() |
Group 80x: Clouds
ID | Main | Description | Icon |
---|---|---|---|
801 | Clouds | few clouds: 11-25% | ![]() ![]() |
802 | Clouds | scattered clouds: 25-50% | ![]() ![]() |
803 | Clouds | broken clouds: 51-84% | ![]() ![]() |
804 | Clouds | overcast clouds: 85-100% | ![]() ![]() |