Duaer

Get started

Hong Kong MTR next trains in Duaer

In Duaer: MTR: the next trains at a Hong Kong station with line, destination, platform, and minutes. One successful search uses 1 credit.

What you get

Duaer Hong Kong MTR next trains returns the next trains at one MTR station on every line that stops there, soonest first.

Pick Duaer Data → Hong Kong MTR next trains in the node creator, or open the data market. Related: Hong Kong KMB bus arrivals, Hong Kong weather.

When to use it

  • Show the next trains at Admiralty.
  • Check the platform for the next train to LOHAS Park.

When not to use it

Search on the canvas

  1. Open the node creator and pick Duaer Data → Hong Kong MTR next trains.
  2. Fill Station (such as Admiralty). Optional: Line (TKL).
  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-mtr?station=Tseung%20Kwan%20O
  • 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-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

Questions

How many credits does a Hong Kong MTR next trains search use in Duaer?

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

How do I name a station in Duaer Hong Kong MTR next trains?

Use the English name, the Chinese name, or the three-letter code, such as Admiralty or ADM. A partial name that fits several stations returns 400 listing them.

In this section