Air Quality Daily Forecast
Air Quality Daily Forecast API for Chinese cities, including AQI, air quality levels, primary pollutants.
Request URL
-
Pro
https://api.qweather.com/v7/air/5d?[params]
Request Parameters
All parameters are separated by &
. If no optional parameters are set, the default value will be used.
key
API authentication key, please refer to How To Get Your Key. Support Signature Authentication.
For example: key=12334567890ABC
location
The location to be queried, support LocationID or comma-separated longitude and latitude (decimal, up to 2 decimal places), LocationID can be obtained by GeoAPI.
For example: location=101010100
or location=116.41,39.92
lang
Multi-language setting, if data does not match the language you set, it will return results in English or its native language.
zh
Chinese, defaulten
Englishfr
Frenches
Spanishja
Japaneseko
Korean- See more language code
Response
// Beijing air quality daily forecast
// Business API: https://api.qweather.com/v7/air/5d?location=101010100&lang=en&key=YOUR_KEY
{
"code": "200",
"updateTime": "2021-02-06T16:42+08:00",
"fxLink": "http://hfx.link/2ax4",
"daily": [
{
"fxDate": "2021-02-06",
"aqi": "54",
"level": "2",
"category": "Good",
"primary": "PM10"
},
{
"fxDate": "2021-02-07",
"aqi": "49",
"level": "1",
"category": "Excellent",
"primary": "NA"
},
{
"fxDate": "2021-02-08",
"aqi": "81",
"level": "2",
"category": "Good",
"primary": "PM2.5"
},
{
"fxDate": "2021-02-09",
"aqi": "87",
"level": "2",
"category": "Good",
"primary": "PM2.5"
},
{
"fxDate": "2021-02-10",
"aqi": "96",
"level": "2",
"category": "Good",
"primary": "PM2.5"
}
],
"refer": {
"sources": [
"cnemc"
],
"license": [
"commercial license"
]
}
}
Parameters | Description |
---|---|
code |
API status code, please refer to Status Code |
updateTime |
|
fxLink |
Responsive web page of this data, for embedded in website or APP |
daily.fxDate |
Forecast date |
daily.aqi |
Air Quality Index |
daily.level |
AQI level |
daily.category |
AQI category |
daily.primary |
The main pollutant. If |
refer.sources |
Data source and other statements, may be null |
refer.license |
Data license, may be null |
Air Quality Index Level
See Air Quality Info.