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


  • location(required)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. Example: location=101010100 or location=116.41,39.92
  • langMulti-language setting, please see Language to find out how our multi-language works and how to set up.

Sample Code

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


Properties of AirDailyBean

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


Property Description Example
getSourcesList Data source and other statements QWeather
getLicenseList Data license QWeather Developers License


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


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.