Duaer

入门

在 Duaer 里查香港九巴到站

在 Duaer 里:九巴:香港某条路线每个车站的下一班车,含分钟数与到站时间。一次成功查询用 1 额度。

能拿到什么

Duaer 数据市场里的「香港九巴到站」:九巴:香港某条路线每个车站的下一班车,含分钟数与到站时间。查到结果时用 1 额度,结果交给数字组织的下一个节点。

从节点创建器选 Duaer 数据 → 香港九巴到站,或打开 数据市场。相关:香港港铁下一班车、香港天气。

适合做什么

  • 显示 1A 巴士还有几分钟到站。
  • 列出一条路线全部车站的实时到站。

在画布里检索

  1. 打开节点创建器,选 Duaer 数据 → Hong Kong KMB bus arrivals。
  2. 填 Route(如 1A);Direction(inbound)、Stop(Mong Kok)可选。
  3. Limit 默认 10,最大 20。执行。

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

用 API 调用

  • GET https://api.duaer.com/v1/data/hk-bus-eta?route=1A
  • Authorization: Bearer <Duaer key>

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

调用技能(英文)

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

---
name: duaer-hk-bus-eta
description: >-
  Duaer Hong Kong KMB bus arrivals. KMB: the next buses at each stop of a Hong Kong route, in minutes and clock times.
  One successful search uses 1 Duaer credit.
---

# Duaer Hong Kong KMB bus arrivals

Duaer Hong Kong KMB bus arrivals returns one row per stop of a KMB route in route order, with the next buses in minutes and their clock times.

## When to use

- Show when the next 1A bus reaches a stop.
- List every stop of a route with live arrivals.

## When not to use

- MTR trains. Use https://skills.duaer.com/hk-mtr.md.
- Hong Kong weather. Use https://skills.duaer.com/hk-weather.md.

## Call

`GET https://api.duaer.com/v1/data/hk-bus-eta?route=1A`

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

- `route` — KMB route such as 1A or 960.
- `direction` — Optional. `outbound` or `inbound`. Default `outbound`.
- `stop` — Optional. Words in the stop name, in English or Chinese.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/hk-bus-eta?route=1A` — next buses at every outbound stop of route 1A.
- `GET https://api.duaer.com/v1/data/hk-bus-eta?route=960&direction=inbound&stop=tuen%20mun` — inbound 960 stops in Tuen Mun.

## Result

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

- `route`, `direction`, `stopSeq`, `stopId` — route, direction, stop order, and KMB stop id.
- `stopName`, `stopNameZh`, `destination`, `destinationZh` — stop and destination in English and Chinese.
- `nextMinutes`, `nextEta`, `etas`, `remark` — minutes to the next bus, its time, the next few times, and the KMB remark.
- `latitude`, `longitude` — stop location.

A stop with no bus scheduled still appears, without `nextMinutes`.

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/hk-mtr.md — Duaer Hong Kong MTR next trains
- https://skills.duaer.com/hk-weather.md — Duaer Hong Kong weather

常见问题

Duaer 的香港九巴到站检索扣多少额度?

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

Duaer 香港九巴到站包括城巴吗?

不包括。Duaer 香港九巴到站只查九巴(KMB)与龙运路线。

同组