Duaer

入门

在 Duaer 里查天气预报

在 Duaer 里:任意城市或经纬度的逐日天气预报,最长 16 天:天气状况、最高最低气温、降水量与降水概率、最大风速,数据来自 Open-Meteo。一次成功查询用 1 额度。

能拿到什么

Duaer 数据市场里的「天气预报」:任意城市或经纬度的逐日天气预报,最长 16 天:天气状况、最高最低气温、降水量与降水概率、最大风速,数据来自 Open-Meteo。查到结果时用 1 额度,结果交给数字组织的下一个节点。

从节点创建器选 Duaer 数据 → 天气预报,或打开 数据市场。相关:历史天气、空气质量、海浪预报。

适合做什么

  • 围绕未来两周的降雨、高温或大风安排外勤、活动、物流或出行。
  • 在数字组织的每日简报或预警里加一列天气。

在画布里检索

  1. 打开节点创建器,选 Duaer 数据 → Weather forecast。
  2. 填 Place(城市名),或同时填 Latitude 与 Longitude;Days 可选 1–16,默认 7。
  3. Limit 默认 10,最大 20。执行。

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

用 API 调用

  • GET https://api.duaer.com/v1/data/weather?place=Shanghai&days=3
  • Authorization: Bearer <Duaer key>

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

调用技能(英文)

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

---
name: duaer-weather
description: >-
  Duaer Weather forecast. Daily forecast for any city or coordinates, up to 16 days: conditions, high and low, rain amount and chance, and peak wind, from Open-Meteo.
  One successful search uses 1 Duaer credit.
---

# Duaer Weather forecast

Duaer Weather forecast returns one row per day for a place, using the Open-Meteo forecast models. Duaer geocodes a place name for you, so an agent can ask for "Shanghai" without looking up coordinates.

## When to use

- Plan field work, events, logistics, or travel around rain, heat, or wind in the next two weeks.
- Add a weather column to a daily digest or an alert that runs in a Duaer Organization.

## When not to use

- Past weather or climate over months and years. Use https://skills.duaer.com/weather-history.md.
- Air pollution. Use https://skills.duaer.com/air-quality.md. Waves at sea: https://skills.duaer.com/marine.md.

## Call

`GET https://api.duaer.com/v1/data/weather?place=Shanghai&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 16. Default 7.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/weather?place=Shanghai&days=3` — three days for Shanghai.
- `GET https://api.duaer.com/v1/data/weather?latitude=51.5&longitude=-0.12&days=7` — one week at exact coordinates.

## Result

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

- `place` — resolved place name, region, and country.
- `latitude`, `longitude` — point the forecast is for.
- `timezone` — local time zone of the dates.
- `date` — local day, YYYY-MM-DD.
- `weather`, `weatherCode` — condition text and WMO weather code.
- `temperatureMax`, `temperatureMin` — daily high and low in °C.
- `precipitationMm`, `precipitationChance` — rain or snow water in mm, and the highest hourly chance in %.
- `windSpeedMaxKmh` — strongest 10 m wind in km/h.

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-history.md — Duaer Weather history
- https://skills.duaer.com/air-quality.md — Duaer Air quality
- https://skills.duaer.com/marine.md — Duaer Marine forecast

常见问题

Duaer 的天气预报检索扣多少额度?

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

Duaer 天气预报一定要填经纬度吗?

不用。填城市名,Duaer 会自动查到经纬度;直接填经纬度也可以。

同组