Skip to main content

Documentation Index

Fetch the complete documentation index at: https://arnaud.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

The Current Weather Data API returns weather conditions as part of the weather array in the response. Each entry includes:
  • a numeric condition code (id)
  • a short group label (main)
  • a human-readable description (description)
  • an icon code (icon)
Use the id field for application logic, and the description field for display. Example response:
{
  "weather": [
    {
      "id": 500,
      "main": "Rain",
      "description": "light rain",
      "icon": "10n"
    }
  ]
}
The weather array may contain multiple entries, but most applications use the first item (weather[0]).

Weather icons

Weather icons provide a visual representation of the current conditions. To display an icon, construct the URL using the icon value returned by the API: https://openweathermap.org/img/wn/<ICON_CODE>@2x.png Replace <ICON_CODE> with the appropriate icon code from the API response (for example, 10n for light rain). Icon codes ending in d are for daytime, and those ending in n are for nighttime. The following sections include the icon list and commonly used weather condition codes.

Weather icon list

Day IconNight IconDescription
01d 01nClear sky
02d 02nFew clouds
03d 03nScattered clouds
04d 04nBroken clouds
09d 09nShower rain
10d 10nRain
11d 11nThunderstorm
13d 13nSnow
50d 50nMist

Weather condition codes

The Current Weather Data API uses numerical codes to represent different weather conditions. These codes are grouped by type of weather condition. Use these codes to drive application logic (for example, grouping conditions or triggering UI changes). Avoid relying on the description field for logic, as it is intended for display and may vary.

Group 2xx: Thunderstorm

This group represents various types of thunderstorms.
CodeDescriptionIcon
200Thunderstorm with light rain 11d
201Thunderstorm with rain 11d
202Thunderstorm with heavy rain 11d
210Light thunderstorm 11d
211Thunderstorm 11d
212Heavy thunderstorm 11d
221Ragged thunderstorm 11d
230Thunderstorm with light drizzle 11d
231Thunderstorm with drizzle 11d
232Thunderstorm with heavy drizzle 11d

Group 3xx: Drizzle

This group represents various types of drizzle as well as combinations with rain.
CodeDescriptionIcon
300Light intensity drizzle 09d
301Drizzle 09d
302Heavy intensity drizzle 09d
310Light intensity drizzle rain 09d
311Drizzle rain 09d
312Heavy intensity drizzle rain 09d
313Shower rain and drizzle 09d
314Heavy shower rain and drizzle 09d
321Shower drizzle 09d

Group 7xx: Atmosphere

This group represents various types of atmospheric conditions.
CodeDescriptionIcon
701Mist 50d
711Smoke 50d
721Haze 50d
731Sand/dust whirls 50d
741Fog 50d
751Sand 50d
761Dust 50d
762Volcanic ash 50d
771Squalls 50d
781Tornado 50d

Group 800: Clear

This group represents clear sky conditions.
CodeDescriptionIcon
800Clear sky 01d 01n

Group 80x: Clouds

This group represents cloud cover conditions.
CodeDescriptionIcon
801Few clouds: 11-25% 02d 02n
802Scattered clouds: 25-50% 03d 03n
803Broken clouds: 51-84% 04d 04n
804Overcast clouds: 85-100% 04d 04n