OpenAQ is an open-source platform that aggregates real-time and historical air quality measurements from government reference networks, research instruments, and low-cost sensor deployments worldwide. The ARSET 2026 case study uses the OpenAQ API v3 to retrieve hourly PM₂.₅ observations from reference-grade stations inside a user-defined bounding box and time window. TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/NASAARSET/PM2.5_AQ_Online_2026/llms.txt
Use this file to discover all available pages before exploring further.
F_get_OpenAQ_from_API function wraps the full three-step v3 workflow — parameter lookup, location discovery, and per-sensor measurement retrieval — into a single call that returns a tidy pandas.DataFrame indexed by (lat, lon, time), identical in structure to the output of F_get_SINCA_from_web.
OpenAQ Documentation
Full API reference and platform overview
Get an API Key
Register for a free OpenAQ API key
Authentication
All v3 endpoints require an API key supplied in theX-API-Key request header. Obtain a key at the link above and pass it at notebook startup:
Supported parameters
F_get_OpenAQ_from_API accepts any subset of these pollution species via the l_variables argument:
| Display name | OpenAQ name | Default unit | Notes |
|---|---|---|---|
PM2.5 | pm25 | µg/m³ | Default query variable |
PM10 | pm10 | µg/m³ | |
O3 | o3 | ppb | Auto-converted to ppb |
NO2 | no2 | ppb | Auto-converted to ppb |
SO2 | so2 | ppb | Auto-converted to ppb |
CO | co | ppb | Auto-converted to ppb |
BC | bc | µg/m³ |
API endpoints used
The function calls three sequential v3 endpoints:n_page until all results are retrieved for both locations and measurements.
Usage
Reference monitors only (default)
Low-cost sensors only
Multiple species
Return format
The function returns apandas.DataFrame with a three-level MultiIndex (lat, lon, time) and one column per requested species (e.g. PM2.5). Values are in the normalised units shown in the table above. The time index is UTC-aware (pd.Timestamp with tz=UTC). Returns None if no data are found.
OpenAQ vs SINCA for the Chile 2023 case study
For the February 2023 Chilean megafire episode, OpenAQ data are noticeably smoother than the SINCA hourly records and miss the highest fire-smoke peaks. This occurs for two reasons:- Temporal resolution: OpenAQ ingests Chilean PM₂.₅ data as 24-hour rolling averages (rather than 1-hour averages), which attenuates sharp concentration spikes.
- Validation lag: OpenAQ primarily carries validated records. Data flagged as preliminary or not-validated by SINCA during extreme episodes are largely absent until the validation workflow is complete — precisely when the satellite signal is strongest.
For recent or extreme air quality events where validated data may not yet be available in OpenAQ, consider querying the source network directly. For Chile, use
F_get_SINCA_from_web, which exposes validated, preliminary, and not-validated data tiers and returns data in the identical (lat, lon, time) format. See the SINCA data source page for details.Full function reference
SeeF_get_OpenAQ_from_API for the complete parameter list, internal pagination logic, unit-conversion tables, and notes on combining multiple species into one DataFrame.