Sorry, something wrong happened :-(
Invalid internal ticket ID
Initial setup
first step is to make sure to acquire your own token for all API access.
You can get your token from the data-platform token page.
Map tile API
The map tile API can be used to show the real-time Air Quality index on a google, bing or openstreet map.
Read more about the Map tile API description and examples
Widget API
The widget API can be used to integrate the real-time Air Quality index on any web page.
Read more about the Widget API description.
There is also a non-programmatic 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"
The JSON API can be used for advanced programmatic integration:
For more information, you can use the on-line API documentation or refer to the sample javascript code / web demo.
Note that more functionality will be added during the coming weeks:
We may change, delete, add to, or otherwise amend information contained on this website without notice.
Under no circumstances will the World Air Quality Index project team or its agents be liable in contract, tort or otherwise for any loss, injury or damage arising directly or indirectly from the supply of this data.
The usage of the programmatic API are subjected to a "acceptable usage" policy:
The default quota is 1,000 (one thousand) requests per second.
(Yes, that's a lot, and that's thanks to the support from our colleagues at the UNEP).
(where data refers to the data obtained from the APIs)
For the historical data, check the data platform page.
(where app refers to any application, services which make use of the above mentioned data)
If the above policy does not fulfill your needs, or if you need larger quota, then please contact us first.
Please note that the we reserve the right to change the term of service at any time and without prior notice.
All reasonable measures have been taken to ensure the quality and accuracy of the Data provided by the above APIs. However:
AQI | Air Pollution Level | Health Implications | Cautionary Statement (for PM2.5) |
0 - 50 | Good | Air quality is considered satisfactory, and air pollution poses little or no risk | None |
51 -100 | Moderate | Air quality is acceptable; however, for some pollutants there may be a moderate health concern for a very small number of people who are unusually sensitive to air pollution. | Active children and adults, and people with respiratory disease, such as asthma, should limit prolonged outdoor exertion. |
101-150 | Unhealthy for Sensitive Groups | Members of sensitive groups may experience health effects. The general public is not likely to be affected. | Active children and adults, and people with respiratory disease, such as asthma, should limit prolonged outdoor exertion. |
151-200 | Unhealthy | Everyone may begin to experience health effects; members of sensitive groups may experience more serious health effects | Active children and adults, and people with respiratory disease, such as asthma, should avoid prolonged outdoor exertion; everyone else, especially children, should limit prolonged outdoor exertion |
201-300 | Very Unhealthy | Health warnings of emergency conditions. The entire population is more likely to be affected. | Active children and adults, and people with respiratory disease, such as asthma, should avoid all outdoor exertion; everyone else, especially children, should limit outdoor exertion. |
300+ | Hazardous | Health alert: everyone may experience more serious health effects | Everyone should avoid all outdoor exertion |