Recent Measurements
Welcome to the Recent Measurements API, where you can access real-time air quality data seamlessly. This page provides detailed information on retrieving recent measurements.
1. Get Measurements by Site ID
GET
https://api.airqo.net/api/v2/devices/measurements/sites/{SITE_ID}/recent
Retrieve recent measurements for a specific site by providing the site ID
Path Parameters
Site ID*
string
This is the Site's ID
Query Parameters
startTime
string
The date in this format: YYYY-MM-DD or the UTC time format in case you would like to access data at specific times, eg: 2021-05-24T12:45:24.000Z
endTime
string
The date in this format: YYYY-MM-DD. or the UTC time format in case you would like to access data at specific times, example: 2021-05-24T12:45:24.000
token*
string
the security token
2. Get measurements by Device ID
GET
https://api.airqo.net/api/v2/devices/measurements/devices/{DEVICE_ID}/recent
Retrieve recent measurements for a specific device by providing the device ID.
Path Parameters
Device ID*
string
This is the Device's ID
Query Parameters
token*
String
the token for your clients
startTime
String
The date in this format: YYYY-MM-DD or the UTC time format in case you would like to access data at specific times, eg: 2021-05-24T12:45:24.000Z
endTime
String
The date in this format: YYYY-MM-DD. or the UTC time format in case you would like to access data at specific times, example: 2021-05-24T12:45:24.000
3. Get Measurements by Grid ID
GET
https://api.airqo.net/api/v2/devices/measurements/grids/{GRID_ID}/recent
Retrieve recent measurements for a specific Grid by providing the Grid ID
Path Parameters
Grid ID*
string
This is the Grid ID
Query Parameters
startTime
string
The date in this format: YYYY-MM-DD or the UTC time format in case you would like to access data at specific times, eg: 2021-05-24T12:45:24.000Z
endTime
string
The date in this format: YYYY-MM-DD. or the UTC time format in case you would like to access data at specific times, example: 2021-05-24T12:45:24.000
token*
string
the security token
4. Get Measurements by Cohort ID
GET
https://api.airqo.net/api/v2/devices/measurements/cohorts/{COHORT_ID}/recent
Retrieve recent measurements for a specific Cohort by providing the Cohort ID
Path Parameters
Cohort ID*
string
This is the Cohort ID
Query Parameters
startTime
string
The date in this format: YYYY-MM-DD or the UTC time format in case you would like to access data at specific times, eg: 2021-05-24T12:45:24.000Z
endTime
string
The date in this format: YYYY-MM-DD. or the UTC time format in case you would like to access data at specific times, example: 2021-05-24T12:45:24.000
token*
string
the security token
Usage Instructions
Follow the guidelines in each section to craft your API requests based on the entity ID of interest. We've designed these endpoints to provide you with accurate and up-to-date air quality measurements, ensuring a seamless experience.
Last updated