Parameter codes in API

Surface state
Surface state Corresponding code in API
Error 0
Dry 1
Moist 2
Wet 3
Wet and chemical 4
Frosty 5
Snowy 6
Icy 7
Moist and chemical 8
Slushy 9
Streaming water 10
Slippery 11
Ice watch 12
Not dry 13
Rain state
Rain state Corresponding code in API
Invalid 0
No precipitation 1
Recent precipitation 2
Precipitation now 3
Light precipitation 4
Medium precipitation 5
Heavy precipitation 6
Light snow 7
Medium snow 8
Heavy snow 9
Rain 10
Rain and snow mix 11
Snow 12
Hail 13
Slight or light frozen precipitation 14
Moderate frozen precipitation 15
Heavy frozen precipitation 16
The following definitions are from WMO 4680.
Present weather
Present weather Corresponding code in API
No significant weather observed 0
Haze, smoke or dust in suspension in the air, visibility ≥ 1 km 4
Haze, smoke or dust in suspension in the air, visibility < 1 km 5
Mist 10
Fog was observed during the preceding hour but not at the time of observation 20
Precipitation was observed during the preceding hour but not at the time of observation 21
Drizzle (not freezing) or snow grains was observed during the preceding hour but not at the time of observation 22
Rain (not freezing) was observed during the preceding hour but not at the time of observation 23
Snow was observed during the preceding hour but not at the time of observation 24
Freezing rain or freezing drizzle was observed during the preceding hour but not at the time of observation 25
Fog 30
Fog or ice fog, in patches 31
Fog or ice fog, has become thinner during the past hour 32
Fog or ice fog, no appreciable change during the past hour 33
Fog or ice fog, has begun or become thicker during the past hour 34
Precipitation 40
Precipitation, slight or moderate 41
Precipitation, heavy 42
Liquid precipitation, slight or moderate 43
Liquid precipitation, heavy 44
Solid precipitation, slight or moderate 45
Solid precipitation, heavy 46
Freezing precipitation, slight or moderate 47
Freezing precipitation, freezing, heavy 48
Drizzle 50
Drizzle, not freezing, slight 51
Drizzle, not freezing, moderate 52
Drizzle, not freezing, heavy 53
Drizzle, freezing, light 54
Drizzle, freezing, moderate 55
Drizzle, freezing, heavy 56
Drizzle and rain mixed, slight 57
Drizzle and rain mixed, moderate or heavy 58
Rain 60
Rain, light 61
Rain, moderate 62
Rain, heavy 63
Rain, freezing, light 64
Rain, freezing, moderate 65
Rain, freezing, heavy 66
Rain (or drizzle) and snow, light 67
Rain (or drizzle) and snow, moderate or heavy 68
Snow 70
Snow, light 71
Snow, moderate 72
Snow, heavy 73
Ice pellets, light 74
Ice pellets, moderate 75
Ice pellets, heavy 76
Snow grains 77
Ice crystals 78
Showers or intermittent precipitation 80
Rain showers, light 81
Rain showers, moderate 82
Rain showers, heavy 83
Rain showers, violent ( >32 mm/h ) 84
Snow showers, light 85
Snow showers, moderate 86
Snow showers, heavy 87
Hail 89
Alarm
Alarm Corresponding code in API
Invalid 0
Unknown 1
Not in use 2
No ice on road surface, but likely to be soon 3
Ice or snow on road surface 4
Frost on road surface or likely to appear 5
Previous or ongoing precipitation possibly causing slipperiness (road temperature close to icing temperature) 6
Grip warning 23
Grip alarm 24