Duaer

入门

在 Duaer 里查高德天气

在 Duaer 里:高德地图:中国城市的实时天气或未来 4 天预报。一次成功查询用 1 额度。

能拿到什么

Duaer 数据市场里的「高德天气」:高德地图:中国城市的实时天气或未来 4 天预报。查到结果时用 1 额度,结果交给数字组织的下一个节点。

从节点创建器选 Duaer 数据 → 高德天气,或打开 数据市场。相关:高德地理编码、天气预报。

适合做什么

  • 在看板上显示杭州当天天气。
  • 用 4 天预报安排户外活动。

在画布里检索

  1. 打开节点创建器,选 Duaer 数据 → Amap weather in China。
  2. 填 City(如 杭州);View(forecast)可选。
  3. Limit 默认 10,最大 20。执行。

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

用 API 调用

  • GET https://api.duaer.com/v1/data/amap-weather?city=330100
  • Authorization: Bearer <Duaer key>

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

调用技能(英文)

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

---
name: duaer-amap-weather
description: >-
  Duaer Amap weather in China. Amap: current weather or the 4-day forecast for a Chinese city.
  One successful search uses 1 Duaer credit.
---

# Duaer Amap weather in China

Duaer Amap weather in China returns current weather or the 4-day forecast for a city or district in mainland China. Duaer holds the upstream API key; you only send your Duaer key.

## When to use

- Show today in Hangzhou on a dashboard.
- Plan an outdoor event with the 4-day forecast.

## When not to use

- Weather outside China. Use https://skills.duaer.com/weather.md.
- Hong Kong weather. Use https://skills.duaer.com/hk-weather.md.

## Call

`GET https://api.duaer.com/v1/data/amap-weather?city=330100`

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 `city`.

- `city` — Six-digit adcode such as 330100, or a URL-encoded city or district name.
- `view` — Optional. `current` or `forecast`. Default `current`.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/amap-weather?city=330100` — current weather in Hangzhou.
- `GET https://api.duaer.com/v1/data/amap-weather?city=110000&view=forecast` — the 4-day forecast for Beijing.

## Result

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

- `province`, `city`, `adcode`, `reportTime` — place and report time.
- `weather`, `temperatureC`, `humidityPct`, `windDirection`, `windPower` — current conditions.
- `date`, `weekday`, `dayWeather`, `nightWeather`, `maxTempC`, `minTempC` — forecast days.

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/amap-geocode.md — Duaer Amap geocoding in China
- https://skills.duaer.com/weather.md — Duaer Weather forecast

常见问题

Duaer 的高德天气检索扣多少额度?

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

Duaer 高德天气的 City 怎么填?

填六位 adcode(如杭州 330100)最准确;也可填城市或区县名,Duaer 会先查出 adcode。

同组