Open AQ is the first open, real-time air quality data hub for the world. To more easily interact with the API from python, I have written a python wrapper which can be installed through PyPi. If you would like to contribute or have any questions/issues, please submit as an issue on GitHub. The repo can be found here.

To install:

>>> pip install py-openaq

To upgrade:

>>> pip install -U py-openaq

Simple use case

import openaq

api = openaq.OpenAQ()
status, res = api.cities()

That's it! I'll post some examples of how to pull in data from a specific location and plot using plotly soon!