Skip to main content

For Cities — Grid ID Access

This guide is for city authorities, municipal agencies, and urban planners who want to monitor air quality across an entire geographical area. Grid ID access groups all public AirQo monitoring sites within a defined administrative boundary — giving you a single identifier that covers your whole city or region.


What is a Grid?

A Grid is a geographically-defined grouping of monitoring sites. Every site within a city's or district's administrative boundary is automatically included. When you query a Grid ID, you get data from every public sensor in that area — with no need to manage individual site or device IDs.

Grids are inherently public and are designed for transparency in regional air quality reporting.

Devices in private Cohorts

If a device belongs to an organisation's private Cohort, it will not appear in Grid data unless the Cohort owner has made it public. Grid data reflects publicly accessible sensors only.


Why Grid ID is the right choice for cities

Use caseHow Grid ID helps
City-wide air quality dashboardsOne query covers every public sensor
Urban planning and policy decisionsRegional view aligned with administrative boundaries
Public health studiesPopulation-level exposure data
Environmental compliance reportingArea-wide measurement history
Spatial visualisationHeatmap images with geo-boundaries included

Your Grid ID endpoint structure

DataEndpoint
Recent measurementsGET /api/v2/devices/measurements/grids/{GRID_ID}?token={SECRET_TOKEN}
Historical measurementsPOST /api/v3/public/analytics/data-download
Spatial heatmap (city)GET /api/v2/spatial/heatmaps/{GRID_ID}?token={SECRET_TOKEN}
All available heatmapsGET /api/v2/spatial/heatmaps?token={SECRET_TOKEN}
Daily forecastsGET /api/v2/predict/daily-forecasting/?grid_id={GRID_ID}&token={SECRET_TOKEN}
Hourly forecastsGET /api/v2/predict/hourly-forecasting/?grid_id={GRID_ID}&token={SECRET_TOKEN}

Finding your Grid ID

  • Browse the Metadata API: call GET /api/v2/devices/grids/summary?admin_level=city to list all city-level grids with their site details
  • Filter by location using the admin_level query parameter (country, province, city, district)
  • Example: The Grid ID for Nairobi is 64b7ac8fd7249f0029feca80

What data is available?

Data typeAvailable?Notes
Recent hourly measurements✅ FreeLast 7 days
Spatial heatmaps✅ FreeBase64 PNG with boundary coordinates
Historical calibrated data✅ Standard+Via Analytics API
Raw sensor readings✅ Standard+Via Analytics API
Air quality forecasts✅ PremiumVia grid_id or per-site site_id — see Forecast API

Real-world integrations

City authorities already using Grid ID access:


Next steps