Skip to main content

Finding IDs

To use the AirQo API, you need the right identifier for your data source. This page explains how to find Cohort IDs, Grid IDs, Site IDs, and Device IDs.


Cohort ID​

A Cohort ID groups your organisation's devices together. Cohorts are managed by AirQo.

How to find your Cohort ID:

A Cohort ID looks like: 64b9c7d5e3f82b0014c5a123

Network-wide data without a Cohort of your own

The public cohort has a fixed, readable Cohort ID — airqo-public — that you can use wherever an endpoint takes a Cohort ID. See Public Cohort →.


Grid ID​

A Grid ID represents a geographical area (typically a city or district). Grids are public.

How to find your Grid ID:

  1. Call the grid summary endpoint: GET /api/v2/devices/grids/summary
  2. Use the admin_level=city query parameter to filter to city-level grids
  3. Locate your city by long_name and copy its _id value

Known Grid IDs (examples):

CityGrid ID
Nairobi64b7ac8fd7249f0029feca80

For other cities, use the Metadata API to browse all available grids.


Site ID​

A Site ID identifies a specific physical monitoring location.

How to find Site IDs:

A Site ID looks like: 64f7b3e8c9d25a0013f2d456

Don't know which site to use for a specific place?

Not every neighbourhood or landmark has a monitoring site named after it. Two options:


Device ID and Device Name​

A Device ID uniquely identifies a sensor unit. Device names follow the pattern airqo_XXXXX.

How to find Device IDs:

  • Call any measurements endpoint and look at the device_id and device fields in each measurement record
  • The device field (e.g. airqo_bx2847) is the device name — pass it as device_names in Analytics API requests
  • The device_id field (e.g. 65c8d4a2f1b45c0012a3e789) can be passed as device_ids in Analytics API requests
  • Forecasts are scoped by Site ID (site_id), not Device ID — see Forecast API →

ID format reference​

IdentifierFormatExample
Cohort ID24-char hex string64b9c7d5e3f82b0014c5a123
Grid ID24-char hex string64b7ac8fd7249f0029feca80
Site ID24-char hex string64f7b3e8c9d25a0013f2d456
Device ID24-char hex string65c8d4a2f1b45c0012a3e789
Device Nameairqo_XXXXXairqo_bx2847

Browsing via the Metadata API​

The Metadata API provides dedicated endpoints for discovering every public resource:

What you wantEndpoint
Browse all gridsGET /api/v2/devices/metadata/grids
Browse grids by city/countryGET /api/v2/devices/grids/summary?admin_level=city
Look up one gridGET /api/v2/devices/metadata/grids/{GRID_ID}
Sites in a gridGET /api/v2/devices/grids/{GRID_ID}/generate
Browse all cohortsGET /api/v2/devices/metadata/cohorts
Sites and devices in a cohortGET /api/v2/devices/cohorts/{COHORT_ID}/generate
Browse all sitesGET /api/v2/devices/metadata/sites
Browse all devicesGET /api/v2/devices/metadata/devices

Still can't find your ID?​

Contact support@airqo.net with your organisation's name or the city/region you are monitoring. The team can look up the correct IDs for you.