Weather Warning City List

Get a list of cities in China where weather warnings are currently in effect.

Only China data is supported

Request URL #

  • Prohttps://api.qweather.com/v7/warning/list?[params]
  • Devhttps://devapi.qweather.com/v7/warning/list?[params]

Request Parameters #

All parameters are separated by &. If no optional parameters are set, the default value will be used.

range

Select the specified country, for now only supports range=cn

key

API authentication key, please refer to How To Get Your Key. Support Signature Authentication.

For example: key=12334567890ABC

Response #

// Warning city list 
// Pro API:  https://api.qweather.com/v7/warning/list?range=cn&lang=en&key=YOUR_KEY
// Dev API:  https://devapi.qweather.com/v7/warning/list?range=cn&lang=en&key=YOUR_KEY

{
  "code": "200",
  "updateTime": "2020-06-21T05:39+00:00",
  "warningLocList": [
    {
      "locationId": "101010800"
    },
    {
      "locationId": "101011200"
    },
    {
      "locationId": "101011400"
    },
    {
      "locationId": "101020700"
    },
    {
      "locationId": "101040400"
    },
    {
      "locationId": "101041900"
    },
    {
      "locationId": "101043400"
    },
    {
      "locationId": "101043600"
    },
    {
      "locationId": "101050106"
    },
    {
      "locationId": "101050107"
    },
    {
      "locationId": "101050301"
    },
    {
      "locationId": "101050302"
    },
    {
      "locationId": "101050303"
    },
    {
      "locationId": "101130103"
    },
    {
      "locationId": "101130109"
    },
    {
      "locationId": "101130114"
    },
    {
      "locationId": "101130302"
    },
    {
      "locationId": "101130303"
    },
    {
      "locationId": "101130409"
    },
    {
      "locationId": "101130610"
    },
    {
      "locationId": "101130611"
    },
    {
      "locationId": "101130613"
    },
    {
      "locationId": "101130614"
    },
    {
      "locationId": "101131920"
    },
    {
      "locationId": "101221008"
    },
    {
      "locationId": "101230507"
    },
    {
      "locationId": "101132101"
    },
    {
      "locationId": "101132201"
    },
    {
      "locationId": "101132301"
    }
  ],
  "refer": {
    "sources": [
      "12379",
      "Weather China"
    ],
    "license": [
      "commercial license"
    ]
  }
}
Parameters Description
code

API status code, please refer to Status Code

updateTime

API last update time

warningLocList.locationId

List of Location ID for warning

refer.sources

Data source and other statements, may be null

refer.license

Data license, may be null