openaq.OpenAQ

class openaq.OpenAQ(version='v1', **kwargs)[source]

Create an instance of the OpenAQ API

__init__(version='v1', **kwargs)[source]

Initialize the OpenAQ instance.

Parameters:
  • version (string) – API version.
  • kwargs (dictionary) – API options.

Methods

__init__([version]) Initialize the OpenAQ instance.
cities(**kwargs) Returns a listing of cities within the platform.
countries(**kwargs) Returns a listing of all countries within the platform
fetches(**kwargs) Provides data about individual fetch operations that are used to populate data in the platform.
latest(**kwargs) Provides the latest value of each parameter for each location
locations(**kwargs) Provides metadata about distinct measurement locations
measurements(**kwargs) Provides data about individual measurements
parameters(**kwargs) Provides a simple listing of parameters within the platform.
sources(**kwargs) Provides a list of data sources.