Air Quality Daily Forecast

Platform: API iOS Android

Air Quality Daily Forecast API for Chinese cities, including AQI, air quality levels, primary pollutants.

Interface Interface Code Class
getAir5D Air quality 5-day forecast AirDailyBean

Parameter

  • location(required)The city to be queried, support LocationID or comma-separated longitude and latitude (decimal, up to 2 decimal places), LocationID can be obtained by GeoAPI.
  • langMulti-language, default Chinese, if data does not match the language you set, it will return in English or its native language. Language parameter please refer to Language

Sample Code

QWeather.getAir5D(Context context, String location, Lang lang, QWeather.OnResultAirDailyListener listener)

Properties

Properties of AirDailyBean

Property Description Example
getCode Status code, please refer to Status Code Code
getAirDaily Air quality 5-day forecast List<DailyBean>
getRefer Reference data, includes data source, statements and license Refer
getBasic Basic Information Basic

Refer

Property Description Example
getSourcesList Data source and other statements qweather.com
getLicenseList Data license commercial license

Basic

Property Description Example
getUpdateTime Last updated time 2017-10-25T04:34+08:00
getFxLink Responsive web page of this location, easy to embed in your website or APP http://hfx.link/ae45

DailyBean

Property Description Example
getFxDate Forecast date, format yyyy-MM-dd 2017-08-09
getAqi Air quality index 74
getPrimary The main pollutant. When the air quality category is excellent, return NA PM2.5
getLevel Real-time air quality index level 2
getCategory Real-time air quality index category Good

Air Quality Index Level

See Air Quality Info.