Time Machine for Air Quality
Get the last 10 days of air quality history data.
Let’s say, today is December 30, you can get data from Dec. 20 to Dec. 29.
| Interface code | Interface | Class | 
|---|---|---|
| historicalAir | Historical air quality data | HistoricalAirResponse | 
Parameters
HistoricalAirParameter
- 
            
location(required)The location to be queried, only support LocationID and LocationID can be obtained by GeoAPI. For example:location=101010100 - 
            
date(required)Set the date, up to the most recent 10 days. The date format is yyyyMMdd. Example:date=20200531 - 
            
langMulti-language setting, please see Language to find out how our multi-language works and how to set up. 
Sample code
public void historicalAir(HistoricalAirParameter parameter, Callback<HistoricalAirResponse> callback);
Response
HistoricalAirResponse
- 
        
codeSee Status Code - 
        
fxLinkResponsive web page of this data, for embedded in website or APP - 
        
airHourly.pubTimeThe data release time from the data source - 
        
airHourly.aqiAir Quality Index - 
        
airHourly.levelAQI level - 
        
airHourly.categoryAQI category - 
        
airHourly.primaryThe main pollutant. Iflevel=1, returnNA - 
        
airHourly.pm10PM10 - 
        
airHourly.pm2p5PM2.5 - 
        
airHourly.no2Nitrogen dioxide - 
        
airHourly.so2Sulfur dioxide - 
        
airHourly.coCarbon monoxide - 
        
airHourly.o3Ozone - 
        
refer.sourcesData source and other statements, may be null - 
        
refer.licenseData license, may be null