Weather Conditions
Weather icons
Example of API response
https://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 https://openweathermap.org/img/wn/10d@2x.png
Weather condition codes
ID | Main | Description | Icon |
---|---|---|---|
800 | Clear | clear sky | ![]() ![]() |