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 based on diff

Endpoint Overview

Explore the various endpoints tailored to your specific needs

1. Site Measurements

Retrieve recent measurements for a specific site using the site ID.

Get Measurements by Site ID

GET https://api.airqo.net/api/v2/devices/measurements/sites/{SITE_ID}/recent

Retrieve measurements for a specific site by providing the site ID

Path Parameters

Query Parameters

{
    "success": true,
    "isCache": false,
    "message": "successfully returned the measurements",
    "meta": {
        "total": 38,
        "skip": 0,
        "limit": 1000,
        "page": 1,
        "pages": 1
    },
    "measurements": [
        {measurement object},{},{}]

2. Device Measurements

Access recent measurements for a particular device using the device ID.

Get measurements by Device ID

GET https://api.airqo.net/api/v2/devices/measurements/devices/{DEVICE_ID}/recent

Retrieve measurements for a specific device by providing the device ID.

Path Parameters

Query Parameters

{
    "success": true,
    "isCache": false,
    "message": "successfully returned the measurements",
    "meta": {
        "total": 38,
        "skip": 0,
        "limit": 1000,
        "page": 1,
        "pages": 1
    },
    "measurements": [
        {measurement object},{},{}]

3. Grid Measurements

Retrieve recent measurements for a designated grid using the grid ID.

Get Measurements by Grid ID

GET https://api.airqo.net/api/v2/devices/measurements/grids/{GRID_ID}/recent

Retrieve measurements for a specific Grid by providing the Grid ID

Path Parameters

Query Parameters

{
    "success": true,
    "isCache": false,
    "message": "successfully returned the measurements",
    "meta": {
        "total": 38,
        "skip": 0,
        "limit": 1000,
        "page": 1,
        "pages": 1
    },
    "measurements": [
        {measurement object},{},{}]

4. Cohort Measurements

Access recent measurements for a specific cohort using the cohort ID.

Get Measurements by Cohort ID

GET https://api.airqo.net/api/v2/devices/measurements/cohorts/{COHORT_ID}/recent

Retrieve measurements for a specific Cohort by providing the Cohort ID

Path Parameters

Query Parameters

{
    "success": true,
    "isCache": false,
    "message": "successfully returned the measurements",
    "meta": {
        "total": 38,
        "skip": 0,
        "limit": 1000,
        "page": 1,
        "pages": 1
    },
    "measurements": [
        {measurement object},{},{}]

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