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
Path Parameters
Name
Type
Description
Query Parameters
Name
Type
Description
{
"success": true,
"isCache": false,
"message": "successfully returned the measurements",
"meta": {
"total": 38,
"skip": 0,
"limit": 1000,
"page": 1,
"pages": 1
},
"measurements": [
{
"device": "aq_##",
"device_id": "5f2036bc70223655545#####",
"is_reading_primary": false,
"health_tips": [
{
"_id": "64283ce9e82a77001e5#####",
"title": "For Everyone",
"description": "Today is a great day for outdoor activity.",
"image": "https://firebasestorage.googleapis.com/v0/b/airqo-#####"
},
{
"_id": "64283d37b2e9e5001e#####",
"title": "For pregnant women",
"description": "Reduce the intensity of your outdoor activities to keep you and your baby healthy.",
"image": "https://firebasestorage.googleapis.com/#####"
},
{
"_id": "64283d749c7eaf001e#####",
"title": "For elderly people",
"description": "Reduce the intensity of your outdoor activities.",
"image": "https://firebasestorage.googleapis.com/v0/b/#####"
}
],
"site_id": "60d058c8048305120d#####",
"time": "2024-05-30T13:00:00.000Z",
"pm2_5": {
"value": 20.9907
},
"pm10": {
"value": 24.5982934194934
},
"frequency": "hourly",
"no2": {
},
"siteDetails": {
"_id": "60d058c8048305120d2#####",
"description": "Nakasero II, Kampala",
"country": "Uganda",
"district": "Kampala",
"sub_county": "Central",
"parish": "Nakasero ii",
"county": "Kampala",
"name": "Nakasero II, Kampala",
"city": "Kampala",
"formatted_name": "31 Buganda Rd, Kampala, Uganda",
"region": "Central Region",
"street": "Buganda Road",
"town": "Kampala",
"village": "Kampala Central Division",
"search_name": "Nakasero II",
"location_name": "Kampala, Uganda",
"approximate_latitude": 0.320055590723009,
"approximate_longitude": 32.5718209000665,
"data_provider": "AirQo"
},
"timeDifferenceHours": 1.49036444444444,
"aqi_color": "ffff00",
"aqi_category": "Moderate",
"aqi_color_name": "Yellow"
},
{measurement object two},
{measurement object three}
]
2. Get measurements by Device ID
Path Parameters
Name
Type
Description
Query Parameters
Name
Type
Description
3. Get Measurements by Grid ID
Path Parameters
Name
Type
Description
Query Parameters
Name
Type
Description
4. Get Measurements by Cohort ID
Path Parameters
Name
Type
Description
Query Parameters
Name
Type
Description
Usage Instructions
Last updated
Was this helpful?