Metadata
Simplify your experience with the Air Quality Metadata API, designed to provide seamless access to essential information. Explore the wealth of metadata through the following endpoints:
1. Get all publicly available Grids
GET
https://api.airqo.net/api/v2/devices/metadata/grids
Retrieve metadata of all publicly available Grids
Path Parameters
grid_id
String
An object ID which is a unique identifier for a Grid
Query Parameters
token*
string
the security token
2. Get all publicly available Cohorts
GET
https://api.airqo.net/api/v2/devices/metadata/cohorts
Retrieve metadata for all publicly available Cohorts.
Path Parameters
cohort_id
String
An object ID which is a unique identifier for a Cohort
Query Parameters
token*
string
the security token
3. Get all publicly available Devices
GET
https://api.airqo.net/api/v2/devices/metadata/devices
Retrieve all publicly available Devices. Obtain essential information about individual devices for precise data retrieval.
Path Parameters
device_id
String
An object ID which is a unique identifier for a Device
Query Parameters
token*
string
the security token
4. Get all publicly available Sites
GET
https://api.airqo.net/api/v2/devices/metadata/sites
Retrieve all publicly available Sites. Access publicly available details about specific air quality monitoring sites.
Path Parameters
site_id
String
An object ID which is a unique identifier for a Site
Query Parameters
token*
string
the security token
5. Retrieve Site and Device IDs associated with Grid ID
GET
https://api.airqo.net/api/v2/devices/grids/{GRID_ID}/generate
Retrieve all publicly available Sites. Generate all the site and device IDs associated with a Grid
Path Parameters
grid_id*
String
An object ID which is a unique identifier for a Grid
Query Parameters
token*
string
the security token
6. Retrieve Site and Device IDs associated with Cohort ID
GET
https://api.airqo.net/api/v2/devices/cohorts/{COHORT_ID}/generate
Retrieve all publicly available Sites. Generate all the site and device IDs associated with a Cohort
Path Parameters
cohort_id*
String
An object ID which is a unique identifier for a Cohort
Query Parameters
token*
string
the security token
7. List All AirQo Sites and their Details for Publicly Available Grids
GET
https://api.airqo.net/api/v2/devices/grids/summary
List all Site Details of publicly available Grids. List details of all existing AirQo Locations
Query Parameters
admin_level
String
This is a filter to narrow your search accordingly. Admin Levels include but are not limited to: country, province, state, village, county, district, city, etc
id
String
the unique ID of a Grid
Response Body
Usage Instructions
Effortlessly integrate metadata retrieval into your applications. Navigate through each section to learn how to utilise the provided endpoints, gaining valuable insights into grids, cohorts, devices, and sites. Enhance your air quality data understanding with detailed metadata, empowering your applications with context and accuracy.
Last updated