> For the complete documentation index, see [llms.txt](https://doc.duaer.com/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/getting-started/hk-weather.md).

# Hong Kong weather in Duaer

In Duaer: Hong Kong Observatory: current temperatures and warnings across Hong Kong, or the 9-day forecast. One successful search uses 1 credit.
## What you get

Duaer Hong Kong weather reads Hong Kong Observatory open data in English, Simplified Chinese, or Traditional Chinese.

Pick Duaer Data → Hong Kong weather in the node creator, or open the [data market](/getting-started/data-market.md). Related: [Weather forecast](/getting-started/weather.md), [Marine forecast](/getting-started/marine.md).

## When to use it

- Show current Hong Kong temperatures and warnings.
- Plan an outdoor event with the 9-day forecast.

## When not to use it

- Weather anywhere else. Use [Weather forecast](/getting-started/weather.md).
- Past weather. Use [Weather history](/getting-started/weather-history.md).

## Search on the canvas

1. Open the node creator and pick Duaer Data → Hong Kong weather.
2. Fill View (current or forecast). Optional: Language (zh-Hans or zh-Hant).
3. Limit defaults to 10, max 20. Execute.

A search uses 1 credit only when it returns rows. No rows, wrong input, or an upstream failure uses 0.

## Call the API

- GET https://api.duaer.com/v1/data/hk-weather?view=current
- Authorization: Bearer <Duaer key>

The call skill below matches Copy skill in the Duaer data market, with parameters, examples, and result fields.

## Call skill

Same text as Copy skill.

```
---
name: duaer-hk-weather
description: >-
  Duaer Hong Kong weather. Hong Kong Observatory: current temperatures and warnings across Hong Kong, or the 9-day forecast.
  One successful search uses 1 Duaer credit.
---

# Duaer Hong Kong weather

Duaer Hong Kong weather reads Hong Kong Observatory open data in English, Simplified Chinese, or Traditional Chinese.

## When to use

- Show current Hong Kong temperatures and warnings.
- Plan an outdoor event with the 9-day forecast.

## When not to use

- Weather anywhere else. Use https://skills.duaer.com/weather.md.
- Past weather. Use https://skills.duaer.com/weather-history.md.

## Call

`GET https://api.duaer.com/v1/data/hk-weather?view=current`

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

- `view` — `current` or `forecast`. Default current.
- `language` — Optional. `en`, `zh-Hans`, or `zh-Hant`. Default en.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/hk-weather?view=current` — temperatures now, the Observatory first.
- `GET https://api.duaer.com/v1/data/hk-weather?view=forecast&language=zh-Hans` — the 9-day forecast in Simplified Chinese.

## Result

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

- `place`, `temperatureC`, `updated` — station, temperature, and observation time.
- `humidityPct`, `uvIndex`, `warnings` — on the Observatory row.
- `date`, `weekday`, `minTempC`, `maxTempC`, `weather`, `wind`, `rainChance` — on forecast rows.
- `outlook` — the general situation, on the first forecast row.

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/marine.md — Duaer Marine forecast

```
## Questions

### How many credits does a Hong Kong weather search use in Duaer?

One credit when Duaer returns rows. A search with no rows or an error uses 0.

### Does Duaer Hong Kong weather support Chinese?

Yes. Set language to zh-Hans for Simplified or zh-Hant for Traditional Chinese.

## Related

- [Weather forecast in Duaer](https://doc.duaer.com/getting-started/weather.md)
- [Marine forecast in Duaer](https://doc.duaer.com/getting-started/marine.md)

