Welcome to pwaqi’s documentation!

A Python wrapper for AQICN API.

The library can be used to search and retrieve Air Quality Index data. Please refer to AQICN website to obtain token that must be used for access.

pwaqi.findStationCodesByCity(city_name, token)[source]

Lookup AQI database for station codes in a given city.

pwaqi.get_location_observation(lat, lng, token)[source]

Lookup observations by geo coordinates.

pwaqi.get_station_observation(station_code, token)[source]

Request station data for a specific station identified by code.

A language parameter can also be specified to translate location information (default: “en”)


Decode AQICN observation response JSON into python object.

Indices and tables