Share: aqicn.org/api/
Initial setup
You can get your token from the data-platform token page.
Map tile API
Read more about the Map tile API description and examples

Widget API
Read more about the Widget API description
London Moderate
53
New-york no data
-
Seoul Good
39
Beijing Moderate
74
Paris Moderate
61
HongKong Good
34
There is also a non-progammatic API for an easy integration with word-press, which can generate any of the widget below. For more information, go to your city page (eg aqicn.org/city/auckland), scroll-down until you find the "Download the real-time Air Quality Index Widget" and click on the "Wordpress & Blogger" logo.
JSON API
$ curl -i "http://api.waqi.info/feed/shanghai/?token=demo"
{
status: "ok",
data: {
aqi: 70,
time: {
s: "2016-12-11 12:00:00"
},
city: {
name: "Shanghai",
url: "http://aqicn.org/city/shanghai/",
geo: [
"31.2047372",
"121.4489017"
]
},
iaqi: {
pm25: "..."
}
}
}
- Access to more than 9000 station level and 600 city level data
- Geo-location query (based on latitude/longitude or IP address)
- Individual AQI for all pollutants (PM2.5, PM10, NO2, CO, SO2, Ozone)
- Station name and coordinates
- Originating EPA name and link
- Current weather conditions
- Stations within a map lat/lng bounds
- Search stations by name
Note that more functionality will be added during the coming weeks:
- Air Quality forecast (for 3~8 days)
- Weather forecast (for 8 days)
- World ranking and trend
- Neighbor stations AQI
- Historical Data
- Pollutant raw concentration (for usage with different scales)
- PubSub notification service
We may change, delete, add to, or otherwise amend information contained on this website without notice