> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/getting-started/air-quality.md).

# 在 Duaer 里查空气质量

在 Duaer 里：某地逐日空气质量（预报与近期）：美国 AQI 峰值、PM2.5 与 PM10 均值、臭氧与二氧化氮，数据来自 Open-Meteo 的 CAMS 模型。一次成功查询用 1 额度。
## 能拿到什么

Duaer 数据市场里的「空气质量」：某地逐日空气质量（预报与近期）：美国 AQI 峰值、PM2.5 与 PM10 均值、臭氧与二氧化氮，数据来自 Open-Meteo 的 CAMS 模型。查到结果时用 1 额度，结果交给数字组织的下一个节点。

从节点创建器选 Duaer 数据 → 空气质量，或打开 [数据市场](/zh/getting-started/data-market.md)。相关：[天气预报](/zh/getting-started/weather.md)、[WHO 卫生统计](/zh/getting-started/who-gho.md)。

## 适合做什么

- 提醒员工或客户空气污染日，或把户外作业排到空气较好的日子。
- 在健康、零售或出行报告里补充污染背景。

## 在画布里检索

1. 打开节点创建器，选 Duaer 数据 → Air quality。
2. 填 Place（或 Latitude + Longitude）；Days 可选 1–7，默认 5；Past Days 可选 0–92。
3. Limit 默认 10，最大 20。执行。

查到结果才扣 1 额度；没有结果、输入有误或上游失败都不扣。

## 用 API 调用

- GET https://api.duaer.com/v1/data/air-quality?place=Delhi&days=3
- Authorization: Bearer <Duaer key>

下方是与数据市场「复制技能」相同的英文技能，含参数、示例与返回字段。

## 调用技能（英文）

与数据市场「复制技能」一致。

```
---
name: duaer-air-quality
description: >-
  Duaer Air quality. Daily air quality for a place, forecast and recent past: US AQI peak, PM2.5 and PM10 averages, ozone, and NO₂ from the Open-Meteo CAMS models.
  One successful search uses 1 Duaer credit.
---

# Duaer Air quality

Duaer Air quality folds hourly Open-Meteo air-quality model values into one row per local day, so an agent sees the daily PM2.5 mean and the worst US AQI hour at a glance.

## When to use

- Warn staff or customers about a bad air day, or schedule outdoor work on cleaner days.
- Add pollution context to a health, retail, or travel report.

## When not to use

- Official station readings for regulatory use. These are model estimates on a grid of about 10 to 40 km.
- Temperature and rain. Use https://skills.duaer.com/weather.md.

## Call

`GET https://api.duaer.com/v1/data/air-quality?place=Delhi&days=3`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

Provide `place`, or `latitude` and `longitude`.

- `place` — City or place name. Leave empty when you enter latitude and longitude.
- `latitude` — Optional. Decimal degrees from -90 to 90. Use with longitude instead of a place.
- `longitude` — Optional. Decimal degrees from -180 to 180.
- `days` — Optional. Forecast days from 1 to 7. Default 5.
- `pastDays` — Optional. Also return up to 92 past days. Default 0.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/air-quality?place=Delhi&days=3` — next three days in Delhi.
- `GET https://api.duaer.com/v1/data/air-quality?place=Beijing&days=1&pastDays=7` — the last week and today.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:

- `place`, `latitude`, `longitude` — where the rows are for.
- `date` — local day.
- `usAqiMax` — highest hourly US AQI that day.
- `pm25Mean`, `pm25Max` — PM2.5 daily mean and peak in µg/m³.
- `pm10Mean` — PM10 daily mean in µg/m³.
- `ozoneMax`, `no2Mean` — ozone peak and NO₂ mean in µg/m³.

Fields without a value are left out.

## Credits

A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/weather.md — Duaer Weather forecast
- https://skills.duaer.com/who-gho.md — Duaer WHO health statistics

```
## Questions

### Duaer 的空气质量检索扣多少额度？

查到结果时扣 1 额度；没有结果或出错不扣。

### Duaer 空气质量是监测站读数吗？

不是。Duaer 空气质量来自 Open-Meteo 转发的 CAMS 大气模型网格估算值。

## 相关

- [在 Duaer 里查天气预报](https://doc.duaer.com/zh/getting-started/weather.md)
- [在 Duaer 里查 WHO 卫生统计](https://doc.duaer.com/zh/getting-started/who-gho.md)

