Alert Info
Weather Alert provides official alert data for China and many countries and regions worldwide. This document helps you understand specifications of alert data, such as the supported regions and alert events.
Warning: All alert events, urgency and other fields are possible to change, including add/modify/delete. We may not be able to give advance notice of these changes, so you have to make your code more compatible to avoid errors when they happen.
We recommend not trying to enumerate these values or mappings, but to output them directly to the screen.
Supported regions
Weather alerts are not available for all cities, we will continue to expand these data, currently QWeather supports the following countries or regions.
Note: Weather alert messages are based on official data from government departments. When official data is not released properly, we may temporarily take offline the country or region where the failure occurred.
| ISO 3166-1 | Countries or Regions |
|---|---|
| ar | Argentina |
| at | Austria |
| be | Belgium |
| br | Brazil |
| bg | Bulgaria |
| ca | Canada |
| cn | China |
| hr | Croatia |
| cy | Cyprus |
| cz | Czechia |
| dk | Denmark |
| ee | Estonia |
| fi | Finland |
| fr | France |
| de | Germany |
| gr | Greece |
| hk | Hong Kong |
| hu | Hungary |
| is | Iceland |
| in | India |
| ie | Ireland |
| il | Israel |
| it | Italy |
| kw | Kuwait |
| lv | Latvia |
| lt | Lithuania |
| lu | Luxembourg |
| mo | Macao |
| mt | Malta |
| md | Moldova (Republic of) |
| me | Montenegro |
| nl | Netherlands |
| nz | New Zealand |
| mk | North Macedonia |
| no | Norway |
| pl | Poland |
| pt | Portugal |
| ro | Romania |
| ru | Russian Federation |
| sa | Saudi Arabia |
| rs | Serbia |
| sk | Slovakia |
| si | Slovenia |
| za | South Africa |
| es | Spain |
| se | Sweden |
| ch | Switzerland |
| tw | Taiwan, Province of China |
| th | Thailand |
| gb | United Kingdom of Great Britain and Northern Ireland |
| us | United States of America |
Message type
The messageType indicates the type or nature of the current alert message. Developers can use this field to determine whether the alert is a newly issued one or an update to a previously issued alert.
messageType.code includes:
- alert: Initial and active alert
- update: Updates and supercedes the alert specified in
messageType.supersedes - cancel: Cancels the alert specified in
messageType.supersedes, with an expiration time set to 1 hour after issuance.
messageType.supersedes specifies the identifier of the previous alert message that is replaced by the current alert. This array is only relevant when messageType.code is update or cancel. It helps developers understand the relationship between the current alert and a previous one, ensuring data correctness and smooth updates.
Urgency
urgency indicates the urgency of the event.
- immediate: Responsive action should be taken immediately
- expected: Responsive action should be taken soon (within the next hour)
- future: Responsive action should be taken in the near future
- past: The event is no longer current
- unknown: Urgency unknown
Severity
severity indicates the expected impact level of the event.
Note: Severity may be expanded based on local specifications, your code should be compatible with this possibility.
- extreme: Extraordinary threat to life or property
- severe: Significant threat to life or property
- moderate: Possible threat to life or property
- minor: Minimal to no known threat to life or property
- unknown: Severity unknown
Certainty
certainty indicates the certainty or confidence level of the event.
- observed: Determined to have occurred or to be ongoing
- likely: Likely (probability > ~50%)
- possible: Possible but not likely (probability ≤ ~50%)
- unlikely: Not expected to occur (probability ≈ 0)
- unknown: Certainty unknown
Color
color contains the color code and its corresponding RGBA value, these are the recommended colors for the visual representation of warning messages. Supported color codes include:
- white
- gray
- green
- blue
- yellow
- orange
- red
- purple
- black
Event and code
We have designed a unified coding system for alert event types in each country or region.
| Code | Event |
|---|---|
| 1001 | Typhoon |
| 1002 | Tornado |
| 1003 | Rainstorm |
| 1004 | Snow Storm |
| 1005 | Cold Wave |
| 1006 | Gale |
| 1007 | Sandstorm |
| 1008 | Low Temperature Freeze |
| 1009 | High Temperature |
| 1010 | Heat Wave |
| 1011 | Dry Hot Winds |
| 1012 | Downburst |
| 1013 | Avalanche |
| 1014 | Lightning |
| 1015 | Hail |
| 1016 | Frost |
| 1017 | Heavy Fog |
| 1018 | Low-Level Wind Shearl |
| 1019 | Haze |
| 1020 | Thunder Gust |
| 1021 | Road Icing |
| 1022 | Drought |
| 1023 | Gale at Sea |
| 1024 | Heat Stroke |
| 1025 | Wildfire |
| 1026 | Grassland Fire |
| 1027 | Freeze |
| 1028 | Space Weather |
| 1029 | Heavy Air Pollution |
| 1030 | Low Temperature Rain and Snow |
| 1031 | Strong Convection |
| 1032 | Ozone |
| 1033 | Heavy Snow |
| 1034 | Cold |
| 1035 | Continuous Rain |
| 1036 | Waterlogging |
| 1037 | Geological Hazard |
| 1038 | Heavy Rainfall |
| 1039 | Severely Falling Temperature |
| 1040 | Snow Disaster |
| 1041 | Wildfire (Grassland) |
| 1042 | Medical Meteorology |
| 1043 | Thunderstorm |
| 1044 | School Closure |
| 1045 | Factory Closure |
| 1046 | Maritime Risk |
| 1047 | Spring Dust |
| 1048 | Falling Temperature |
| 1049 | Typhoon and Rainstorm |
| 1050 | Severe Cold |
| 1051 | Sand Dust |
| 1052 | Sea Thunderstorms |
| 1053 | Sea Fog |
| 1054 | Sea Thunder |
| 1055 | Sea Typhoon |
| 1056 | Low Temperature |
| 1057 | Road Ice and Snow |
| 1058 | Thunderstorm and Gale |
| 1059 | Continuous Low Temperature |
| 1060 | Low Visibility |
| 1061 | Strong Dust |
| 1062 | Gale at Sea |
| 1063 | Short Duration Heavy Precipitation |
| 1064 | Short-lived Heavy Rain |
| 1065 | Sea Fog |
| 1066 | Heat Stroke Conditions |
| 1067 | Heavy Pollution Weather |
| 1068 | CO Poisoning Weather Conditions |
| 1069 | Respiratory Disease Weather Conditions |
| 1071 | Intestinal Diseases Weather Conditions |
| 1072 | Cardiovascular Diseases Weather Conditions |
| 1073 | Flooding Weather Risk |
| 1074 | Heavy Pollution Weather Conditions |
| 1075 | Urban Flooding Weather Risk |
| 1076 | Flooding Weather Risk |
| 1077 | Wildfire Weather Risk |
| 1078 | Meteorological Drought |
| 1079 | Agro-Meteorological Risk |
| 1080 | Strong Monsoon |
| 1081 | Ice Accretion on Wires |
| 1082 | Stroke Weather Risk |
| 1084 | Wildfire (Grassland) Risk |
| 1085 | Thunderstorms and strong winds |
| 1086 | Low Temperature Freeze |
| 1087 | Low Temperature Damage |
| 1088 | National Agro-Meteorological Risk |
| 1089 | Dry Hot Winds Risk for Winter Wheat |
| 1201 | Flood |
| 1202 | Waterlogging |
| 1203 | Reservoir Danger |
| 1204 | Dike Danger |
| 1205 | Ice Flood |
| 1206 | Waterlogged |
| 1207 | Flood |
| 1208 | Dry Water |
| 1209 | Flood and flash flood in small and medium rivers |
| 1210 | Difficulty drinking water for rural people and animals |
| 1211 | Flood in small and medium rivers |
| 1212 | Flood and Drought Advisory |
| 1213 | Urban Waterlogging Risk |
| 1214 | Flash Flood |
| 1215 | Agricultural Drought |
| 1216 | Urban Water Shortage |
| 1217 | Ecological Drought |
| 1218 | Disaster Risk Early Warning |
| 1219 | Meteorological Risk of Flash Flood |
| 1221 | Water Conservancy and Drought |
| 1241 | Landslide |
| 1242 | Debris Flows |
| 1243 | Landslide Event |
| 1244 | Ground Collapses |
| 1245 | Ground Fissure |
| 1246 | Land Subsidence |
| 1247 | Volcanic Eruption |
| 1248 | Geological Hazard Meteorological Risk |
| 1249 | Geological Hazard Weather |
| 1250 | Geological hazard |
| 1251 | Geological hazard Risk |
| 1271 | Air Pollution Incident |
| 1272 | Heavy Air Pollution |
| 1273 | Air Pollution |
| 1274 | Heavy Pollution Weather |
| 1601 | Very Hot Weather |
| 1602 | Strong Monsoon Signal |
| 1603 | Landslip |
| 1604 | Tropical Cyclone |
| 1605 | Fire Danger |
| 1606 | Special Announcement on Flooding in the northern New Territories |
| 1607 | Cold Weather |
| 1608 | Thunderstorm |
| 1609 | Rainstorm |
| 1610 | Frost |
| 1701 | Cold Surge |
| 1702 | Strong Wind |
| 1703 | Rainfall |
| 1704 | Typhoon |
| 1705 | Dense Fog |
| 1706 | Thunderstorm |
| 1707 | Heat |
| 1708 | Flood |
| 1709 | High Water |
| 1710 | Drought |
| 1801 | Strong Monsoon Signal |
| 1802 | Storm Surge |
| 1803 | Tropical Cyclone |
| 1804 | Rainstorm |
| 1805 | Thunderstorm |
| 2001 | Wind |
| 2002 | Snow-ice |
| 2003 | Fog |
| 2004 | Coastal Event |
| 2005 | Forest Fire |
| 2006 | Rain |
| 2007 | Rain-flood |
| 2029 | Thunderstorm |
| 2030 | High Temperature |
| 2031 | Low Temperature |
| 2032 | Avalanches |
| 2033 | Flooding |
| 2050 | Rain |
| 2051 | Wind |
| 2052 | Snow |
| 2053 | Zonda wind |
| 2054 | Storm |
| 2070 | Dust Raising Winds |
| 2071 | Strong Surface Winds |
| 2072 | Hot Day |
| 2073 | Warm Night |
| 2074 | Cold Day |
| 2075 | Thunderstorm and Lightning |
| 2076 | Hailstorm |
| 2077 | Sea area warning |
| 2078 | Fishermen warning |
| 2079 | Heavy Snow |
| 2080 | Dust Storm |
| 2081 | Heat Wave |
| 2082 | Cold Wave |
| 2083 | Fog |
| 2084 | Heavy Rain |
| 2085 | Ground Frost |
| 2100 | Fog |
| 2101 | Thunder Rain |
| 2102 | Thunder Storm |
| 2103 | Light Rain |
| 2104 | Heavy Rain |
| 2105 | Fresh Wind |
| 2106 | Thunderstorm and Dust |
| 2107 | Dust |
| 2108 | High Wave |
| 2109 | Frost |
| 2111 | Drop in Visibility |
| 2120 | Low Humidity |
| 2121 | Accumulated Rain |
| 2122 | Cold Wave |
| 2123 | Tornado |
| 2124 | Thunderstorm |
| 2125 | Hail |
| 2126 | Heavy Rainfall |
| 2127 | Gale |
| 2128 | Heat Wave |
| 2129 | Cold |
| 2130 | Frost |
| 2131 | Drought |
| 2132 | Forest Fire |
| 2133 | Heavy Snow |
| 2134 | Severely Falling Temperature |
| 2135 | Rainstorm |
| 2150 | Wind |
| 2151 | Snow Ice |
| 2152 | Freeze |
| 2153 | Thunderstorms |
| 2154 | Fog |
| 2155 | High Temperature |
| 2156 | Low Temperature |
| 2157 | Coastal Event |
| 2158 | Forest Fire |
| 2159 | Avalanches |
| 2160 | Rain |
| 2161 | Flood |
| 2162 | Rain Flood |
| 2163 | Mudflow |
| 2164 | Duststorm |
| 2165 | Freezing rain and icing |
| 2166 | Other Dangers |
| 2190 | Severe Thunderstorms |
| 2191 | Damaging Winds |
| 2192 | Veld Fire Conditions |
| 2193 | Weather Advisory |
| 2200 | Thunderstorm |
| 2201 | Squall |
| 2202 | Air Quality |
| 2203 | Rainfall |
| 2204 | Fog |
| 2205 | Heat |
| 2207 | Wildfire |
| 2208 | Wind |
| 2209 | Freezing Rain |
| 2210 | Tornado |
| 2211 | Blizzard |
| 2212 | Weather |
| 2213 | Winter Storm |
| 2214 | Freezing Drizzle |
| 2215 | Snowfall |
| 2216 | Blowing Snow |
| 2217 | Extreme Cold |
| 2218 | Frost |
| 2300 | Hazardous Seas Warning |
| 2301 | Heavy Freezing Spray Warning |
| 2302 | Red Flag Warning |
| 2303 | Freeze Warning |
| 2304 | Hard Freeze Warning |
| 2305 | Extreme Cold Warning |
| 2306 | Wind Chill Warning |
| 2307 | Gale Warning |
| 2308 | Excessive Heat Warning |
| 2309 | Lake Effect Snow Warning |
| 2311 | Blowing Dust Warning |
| 2312 | Dust Storm Warning |
| 2313 | Storm Warning |
| 2314 | Tropical Storm Warning |
| 2315 | High Wind Warning |
| 2316 | High Surf Warning |
| 2317 | Flood Warning |
| 2318 | Lakeshore Flood Warning |
| 2319 | Coastal Flood Warning |
| 2320 | Ashfall Warning |
| 2321 | Volcano Warning |
| 2322 | Earthquake Warning |
| 2323 | Avalanche Warning |
| 2324 | Winter Storm Warning |
| 2325 | Ice Storm Warning |
| 2326 | Snow Squall Warning |
| 2327 | Blizzard Warning |
| 2328 | Special Marine Warning |
| 2330 | Typhoon Warning |
| 2331 | Hurricane Warning |
| 2332 | Hurricane Force Wind Warning |
| 2333 | Storm Surge Warning |
| 2341 | Flash Flood Warning |
| 2343 | Severe Thunderstorm Warning |
| 2345 | Extreme Wind Warning |
| 2346 | Tornado Warning |
| 2348 | Tsunami Warning |
| 2349 | Fire Weather Watch |
| 2350 | Freeze Watch |
| 2351 | Hard Freeze Watch |
| 2352 | Wind Chill Watch |
| 2353 | Extreme Cold Watch |
| 2354 | Excessive Heat Watch |
| 2355 | High Wind Watch |
| 2356 | Flood Watch |
| 2357 | Lakeshore Flood Watch |
| 2358 | Coastal Flood Watch |
| 2359 | Heavy Freezing Spray Watch |
| 2360 | Hazardous Seas Watch |
| 2361 | Winter Storm Watch |
| 2362 | Gale Watch |
| 2363 | Avalanche Watch |
| 2364 | Storm Watch |
| 2365 | Tropical Storm Watch |
| 2366 | Typhoon Watch |
| 2367 | Hurricane Force Wind Watch |
| 2368 | Hurricane Watch |
| 2369 | Storm Surge Watch |
| 2370 | Flash Flood Watch |
| 2371 | Severe Thunderstorm Watch |
| 2372 | Tornado Watch |
| 2373 | Tsunami Watch |
| 2374 | Air Stagnation Advisory |
| 2375 | Low Water Advisory |
| 2376 | Freezing Spray Advisory |
| 2377 | Freezing Fog Advisory |
| 2378 | Ashfall Advisory |
| 2379 | Frost Advisory |
| 2380 | Wind Advisory |
| 2381 | Lake Wind Advisory |
| 2382 | Blowing Dust Advisory |
| 2383 | Dust Advisory |
| 2384 | Brisk Wind Advisory |
| 2385 | Small Craft Advisory |
| 2386 | Small Craft Advisory For Winds |
| 2387 | Small Craft Advisory For Rough Bar |
| 2388 | Small Craft Advisory For Hazardous Seas |
| 2389 | Dense Smoke Advisory |
| 2390 | Dense Fog Advisory |
| 2391 | High Surf Advisory |
| 2392 | Coastal Flood Advisory |
| 2393 | Lakeshore Flood Advisory |
| 2394 | Hydrologic Advisory |
| 2395 | Flood Advisory |
| 2396 | Heat Advisory |
| 2397 | Wind Chill Advisory |
| 2398 | Winter Weather Advisory |
| 2399 | Avalanche Advisory |
| 2400 | Tsunami Advisory |
| 2409 | Flood Statement |
| 2411 | Hydrologic Outlook |
| 2412 | Hazardous Weather Outlook |
| 2413 | Air Quality Alert |
| 2414 | Extreme Fire Danger |
| 2415 | Marine Weather Statement |
| 2416 | Special Weather Statement |
| 2417 | Lakeshore Flood Statement |
| 2418 | Coastal Flood Statement |
| 2419 | Beach Hazards Statement |
| 2420 | Rip Current Statement |
| 2421 | Tropical Depression Local Statement |
| 2422 | Tropical Storm Local Statement |
| 2423 | Typhoon Local Statement |
| 2424 | Hurricane Local Statement |
| 2425 | Severe Weather Statement |
| 2426 | Flash Flood Statement |
| 2501 | Heavy Rain |
| 2502 | Very Heavy Rain |
| 2521 | Moderate Rain |
| 2522 | Light Rain |
| 2523 | Heavy Rain |
| 2524 | Light Mist |
| 2525 | Raised Dust |
| 2526 | High Winds |
| 2527 | Dusty plankton |
| 2528 | Active Winds |
| 2529 | Heat Wave |
| 2530 | Cold Wave |
| 2531 | Fog |
| 2532 | Light Fog |
| 2550 | Heavy Rain |
| 2551 | Strong Wind |
| 2552 | Heavy Snow |
| 2553 | Thunderstorms |
| 2554 | Road Snowfall |
| 9999 | Other Warning |