Air quality API
Access public outdoor air quality observations and attribution through the AirGradient Map API. The examples below need no account or trusted website header.
Try a small request
curl 'https://map-data.airgradient.com/map/api/v1/measurements/current?measure=pm25&page=1&pagesize=1'import json
from urllib.request import urlopen
with urlopen("https://map-data.airgradient.com/map/api/v1/measurements/current?measure=pm25&page=1&pagesize=1", timeout=15) as response:
result = json.load(response)
print(result["data"])The response contains a data array, page and pagesize. For this endpoint, total is the number of rows in this response, not a global monitor count. Check observation timestamps before treating readings as current.
Start with small pages, use the documented filters, and avoid frequent full-dataset polling. Handle empty results, timeouts and server errors. The reference describes each endpoint and its measurement rules.
Public data and attribution
The map may show additional sources under provider agreements. In the source catalog, allowApiAccess identifies public API availability. Keep source, contributor and location licenses with reused data; a missing license is not permission to reuse.
API availability does not grant reuse rights. Check the licenses and attribution on each monitor before reusing its data.
API reference
Download or embed
Open a country, area or monitor on the map and choose Public data and CSV for attributed previews and downloads of up to 5,000 reporting monitors. Monitor pages also link to the embed builder.