OpenAQ
开放空气质量数据
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- 分类
- 环境
- 文档 / URL
- https://docs.openaq.org/
简介
OpenAQ 聚合全球政府和研究来源的开放空气质量数据——PM2.5、PM10、O₃、NO₂、CO、SO₂ 等——来自数千个监测站。v3 API 需要免费 API 密钥(2026-08 实测:无密钥请求返回 401)。
快速开始
地点列表(替换 YOUR_KEY):
curl "https://api.openaq.org/v3/locations?limit=5" \
-H "X-API-Key: YOUR_KEY"
某地点的最新测量值:
curl "https://api.openaq.org/v3/locations/2178/measurements/latest?limit=10" \
-H "X-API-Key: YOUR_KEY"
参数(污染物)目录:
curl "https://api.openaq.org/v3/parameters?limit=100" \
-H "X-API-Key: YOUR_KEY"
认证方式
- 在 openaq.org 注册免费账号并生成 API 密钥。
- 通过
X-API-Key请求头携带。
速率限制与注意事项
- 免费层包含每日请求额度(当前数值见官方文档)。
- v3 API 结构:
locations、measurements、parameters、countries、cities——用limit/offset分页。 - 数据开放许可,聚合自官方监测网络——适合面板和研究。
- 旧版 v2 API(
/v2/)免密钥;v3 需要密钥。
常见问题
OpenAQ 免费吗? 是的——免费密钥带每日请求额度。
为什么收到 401?
v3 API 需要通过 X-API-Key 请求头携带密钥。
有什么数据? 空气质量测量值(PM2.5、PM10、O₃、NO₂、CO、SO₂……),来自全球数千个监测站。
环境 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| BreezoMeter Pollen Daily Forecast pollen conditions data for a specific location | API Key | Yes | Unknown | ↗ |
| Carbon Interface API to calculate carbon (C02) emissions estimates for common C02 emitting activities | API Key | Yes | Yes | ↗ |
| Climatiq Calculate the environmental footprint created by a broad range of emission-generating activities | API Key | Yes | Yes | ↗ |
| Cloverly API calculates the impact of common carbon-intensive activities in real time | API Key | Yes | Unknown | ↗ |
| CO2 Offset API calculates and validates the carbon footprint | No auth | Yes | Unknown | ↗ |