入门
在 Duaer 里查香港港铁下一班车
在 Duaer 里:港铁:香港某车站的下一班列车,含线路、终点站、月台与分钟数。一次成功查询用 1 额度。
能拿到什么
Duaer 数据市场里的「香港港铁下一班车」:港铁:香港某车站的下一班列车,含线路、终点站、月台与分钟数。查到结果时用 1 额度,结果交给数字组织的下一个节点。
从节点创建器选 Duaer 数据 → 香港港铁下一班车,或打开 数据市场。相关:香港九巴到站、香港天气。
适合做什么
- 显示金钟站的下一班列车。
- 查去康城的下一班车在哪个月台。
在画布里检索
- 打开节点创建器,选 Duaer 数据 → Hong Kong MTR next trains。
- 填 Station(如 Admiralty);Line(TKL)可选。
- Limit 默认 10,最大 20。执行。
查到结果才扣 1 额度;没有结果、输入有误或上游失败都不扣。
用 API 调用
- GET https://api.duaer.com/v1/data/hk-mtr?station=Tseung%20Kwan%20O
- Authorization: Bearer <Duaer key>
下方是与数据市场「复制技能」相同的英文技能,含参数、示例与返回字段。
调用技能(英文)
与数据市场「复制技能」一致。
---
name: duaer-hk-mtr
description: >-
Duaer Hong Kong MTR next trains. MTR: the next trains at a Hong Kong station with line, destination, platform, and minutes.
One successful search uses 1 Duaer credit.
---
# Duaer Hong Kong MTR next trains
Duaer Hong Kong MTR next trains returns the next trains at one MTR station on every line that stops there, soonest first.
## When to use
- Show the next trains at Admiralty.
- Check the platform for the next train to LOHAS Park.
## When not to use
- KMB buses. Use https://skills.duaer.com/hk-bus-eta.md.
- Singapore transport. Use https://skills.duaer.com/sg-taxis.md.
## Call
`GET https://api.duaer.com/v1/data/hk-mtr?station=Tseung%20Kwan%20O`
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 `station`.
- `station` — MTR station in English or Chinese, or its code, such as Tseung Kwan O or TKO.
- `line` — Optional. Line code: AEL, TCL, TML, TKL, EAL, SIL, TWL, ISL, KTL, or DRL.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.
## Examples
- `GET https://api.duaer.com/v1/data/hk-mtr?station=Tseung%20Kwan%20O` — next trains at Tseung Kwan O.
- `GET https://api.duaer.com/v1/data/hk-mtr?station=ADM&line=ISL` — Island Line trains at Admiralty.
## Result
The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:
- `line`, `lineName`, `station`, `stationName`, `stationNameZh` — line and station.
- `direction`, `destination`, `destinationName`, `destinationNameZh` — up or down and the terminus.
- `platform`, `minutes`, `time`, `delayed` — platform, minutes to departure, departure time, and whether MTR reports a delay.
A partial name that fits several stations returns 400 listing them.
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-bus-eta.md — Duaer Hong Kong KMB bus arrivals
- https://skills.duaer.com/hk-weather.md — Duaer Hong Kong weather
常见问题
Duaer 的香港港铁下一班车检索扣多少额度?
查到结果时扣 1 额度;没有结果或出错不扣。
Duaer 香港港铁下一班车的车站名怎么填?
可填英文名、中文名或三字母车站代码,如 Admiralty、金鐘 或 ADM。名称只填一部分且对应多个车站时会返回 400 并列出候选。
同组