> 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/weather-alerts.md).

# 在 Duaer 里查美国天气预警

在 Duaer 里：美国国家气象局当前生效的警报、预警与提示，可按州或坐标查询，含严重程度、影响区域与失效时间。一次成功查询用 1 额度。
## 能拿到什么

Duaer 数据市场里的「美国天气预警」：美国国家气象局当前生效的警报、预警与提示，可按州或坐标查询，含严重程度、影响区域与失效时间。查到结果时用 1 额度，结果交给数字组织的下一个节点。

从节点创建器选 Duaer 数据 → 美国天气预警，或打开 [数据市场](/zh/getting-started/data-market.md)。相关：[天气预报](/zh/getting-started/weather.md)、[自然灾害事件](/zh/getting-started/natural-events.md)。

## 适合做什么

- 查看某州当前的洪水、高温或风暴预警。
- 提醒美国某地用户注意恶劣天气。

## 在画布里检索

1. 打开节点创建器，选 Duaer 数据 → US weather alerts。
2. 填 State（如 CA），或 Latitude + Longitude；Severity、Words 可选。
3. Limit 默认 10，最大 20。执行。

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

## 用 API 调用

- GET https://api.duaer.com/v1/data/weather-alerts?state=CA&severity=Severe
- Authorization: Bearer <Duaer key>

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

## 调用技能（英文）

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

```
---
name: duaer-weather-alerts
description: >-
  Duaer US weather alerts. Active US National Weather Service warnings, watches, and advisories by state or point, with severity, area, and expiry.
  One successful search uses 1 Duaer credit.
---

# Duaer US weather alerts

Duaer US weather alerts lists the warnings, watches, and advisories the US National Weather Service has in force right now. It covers US states and territories only.

## When to use

- Check for active flood, heat, or storm warnings in a state.
- Warn a user at a US location about severe weather.

## When not to use

- Forecasts. Use https://skills.duaer.com/weather.md.
- Events outside the US. Use https://skills.duaer.com/natural-events.md.

## Call

`GET https://api.duaer.com/v1/data/weather-alerts?state=CA&severity=Severe`

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 `state`, or `latitude` and `longitude`.

- `state` — Two-letter US state or territory code, such as CA.
- `latitude`, `longitude` — Optional. A US point instead of a state.
- `severity` — Optional. Extreme, Severe, Moderate, Minor, or Unknown.
- `words` — Optional. Keep alerts whose event, headline, or area contains these words, such as flood.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/weather-alerts?state=CA&severity=Severe` — severe alerts in California.
- `GET https://api.duaer.com/v1/data/weather-alerts?latitude=29.76&longitude=-95.37&words=flood` — flood alerts for Houston.

## Result

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

- `alertId`, `event` — NWS id and event type, such as Flood Advisory.
- `severity`, `certainty`, `urgency` — NWS scales.
- `area`, `sender` — affected areas and issuing office.
- `effective`, `expires` — validity window.
- `description`, `instruction` — alert text and what to do.

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/natural-events.md — Duaer Natural events

```
## Questions

### Duaer 的美国天气预警检索扣多少额度？

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

### Duaer 美国天气预警覆盖哪些地区？

Duaer 美国天气预警只覆盖美国各州与属地，数据来自美国国家气象局。

## 相关

- [在 Duaer 里查天气预报](https://doc.duaer.com/zh/getting-started/weather.md)
- [在 Duaer 里查自然灾害事件](https://doc.duaer.com/zh/getting-started/natural-events.md)

