Real-time Air Quality

Platform: API iOS Android

Real-time air quality for Chinese cities and 1,700 monitoring stations, including AQI, air quality levels, primary pollutants, PM10, PM2.5, ozone, nitrogen dioxide sulfur dioxide and carbon monoxide values.

Interface code (Enum) Interface Class
INQUIRE_TYPE_WEATHER_AIR_NOW Air Quality Live AirBaseClass

Request Parameters

If no optional parameters are set, the default value will be used.

  • 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
  • appKey(required)API authentication key, please refer to How To Get Your Key. For example: appKey=12334567890ABC
  • langMulti-language setting, please see Language to find out how our multi-language works and how to set up.

Sample Code

    QWeatherConfigInstance.publicID = @"publicID";
    QWeatherConfigInstance.appKey = @"key";
    QWeatherConfigInstance.appType = APP_TYPE_BIZ;
    QWeatherConfigInstance.location = @"101010100";
    QWeatherConfigInstance.lang = @"";
    QWeatherConfigInstance.unit = @"";
    [QWeatherConfigInstance weatherWithInquireType:INQUIRE_TYPE_WEATHER_AIR_NOW WithSuccess:^(AirBaseClass *responseObject) {
        
        NSLog(@"Description->%@",[responseObject description]);
        
    } faileureForError:^(NSError *error) {
        NSLog(@"error->%@",error);
        
    }];

Response

station, the air data from monitoring station are only response for cities in POI-Air-Monitoring-Station-List.

  • code See Status Code
  • updateTime API last update time
  • fxLink Responsive web page of this data, for embedded in website or APP
  • now.pubTime The data release time from the data source
  • now.aqi Air Quality Index
  • now.level AQI level
  • now.category AQI category
  • now.primary The main pollutant. If level=1, return NA
  • now.pm10 PM10
  • now.pm2p5 PM2.5
  • now.no2 Nitrogen dioxide
  • now.so2 Sulfur dioxide
  • now.co Carbon monoxide
  • now.o3 Ozone
  • station.name The name of the monitoring station
  • station.id ID of the monitoring station
  • station.pubTime The data release time from the data source
  • station.aqi Air Quality Index
  • station.level AQI level
  • station.category AQI category
  • station.primary The main pollutant. If level=1, return NA
  • station.pm10 PM10
  • station.pm2p5 PM2.5
  • station.no2 Nitrogen dioxide
  • station.so2 Sulfur dioxide
  • station.co Carbon monoxide
  • station.o3 Ozone
  • 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.