Skip to content

Owners

The Owners resource provides information about the people or organizations that own and report air quality data upstream, in turn enabling data providers to share their data with us. Owners may include governmental agencies, research institutions, other organizations that oversee air quality monitoring, and even individuals who have installed an air quality monitoring device on their property.

The data owner may be the same as the data provider. This is true when the data providers own the device or station that reports the data, or when the information of the contributing owner is not shared with us by the data provider, in which case the owner field defaults to the data provider.

The Owners resource provides the following methods:

  • get() - For accessing a single owner by owner ID.
  • list() - For accessing multiple owners.

The get() method accepts one single owners_id as an argument and returns details about that owner in a OwnersResponse object.

get(
owners_id: int
) -> OwnersResponse
argumentdescriptioninput requirements
Ownerint OpenAQ’s unique ID for each ownerRequired
from openaq import OpenAQ
# Retrieve the owner with ID 14
with OpenAQ(api_key="replace-me-with-a-valid-key") as client:
client.owners.get(owners_id=14)

The list() method takes optional arguments and returns owners on the OpenAQ platform that meet all the conditions specified in a OwnersResponse object. If no argument is included, the method returns all owners using the default arguments.

list(
page: int = 1,
limit: int = 1000,
order_by: str | None = None,
sort_order: SortOrder | None = None
) -> OwnersResponse
argumentdescriptioninput requirements
pageint The page number to retrieve, defaults to 1Must be greater than zero
limitint The number of results returned per page, defaults to 1,000Must be between 1 and 1,000
order_bystr | None The owner field by which to sort results, defaults to id. Currently only id is supported
sort_orderstr | None The sort direction for the order_by field, defaults to descMust be one of: asc, desc, ASC, DESC
from openaq import OpenAQ
# List all owners on OpenAQ
with OpenAQ(api_key="your-api-key") as client:
client.owners.list()

The Owner objects in the results of the OwnersResponse contain attributes that have all data about them. The hierarchy below presents the depth of the attributes and their datatypes.

Owner[]
├── id: int
└── name: str