---
title: "MTR heavy-rail next-train schedule"
method: GET
path: "/api/v1/data-gov-hk/mtr/next-train"
tags: ["Public Finance & Government"]
---

# MTR heavy-rail next-train schedule

`GET /api/v1/data-gov-hk/mtr/next-train`

Next-train schedule for Hong Kong MTR heavy-rail lines. Returns up to four upcoming arrivals in each direction (UP / DOWN) at the requested station. The `line` parameter uses MTR line codes (`TKL` = Tseung Kwan O, `TWL` = Tsuen Wan, `ISL` = Island, `KTL` = Kwun Tong, `EAL` = East Rail, `TML` = Tuen Ma, `SIL` = South Island, `DRL` = Disneyland Resort, `AEL` = Airport Express). Upstream returns `sys_time` / `curr_time` in naive HKT; Sugra converts both to UTC. Upstream refresh cadence is 10-30 s; Sugra caches for 5 minutes to match the shortest cache bucket.

## Query parameters

- `line` string, required — MTR line code (uppercase). Examples: `TKL`, `TWL`, `ISL`, `KTL`, `EAL`, `TML`, `SIL`, `DRL`, `AEL`.
- `station` string, required — MTR station code (uppercase). Examples: `TKO`, `LHP`, `POA`, `CEN`, `TST`, `MKK`, `HUH`, `ADM`.

## Response `200`

Next-train arrivals at the requested MTR line/station in both directions.

- EnvelopeMtrNextTrainPayload
  - `data` MtrNextTrainPayload, required — Response payload for `/api/v1/data-gov-hk/mtr/next-train`.
    - `line` string, required — MTR line code (uppercase, e.g. `TKL`, `TWL`, `ISL`).
    - `station` string, required — MTR station code (uppercase, e.g. `TKO`, `CEN`, `TST`).
    - `status` unknown
    - `message` string, nullable — Upstream status message.
    - `is_delay` string, nullable — Upstream delay flag (`Y` / `N`).
    - `sys_time_utc` string, nullable — Upstream `sys_time` as ISO 8601 UTC.
    - `curr_time_utc` string, nullable — Upstream `curr_time` as ISO 8601 UTC.
    - `up` MtrTrain[], required — Up-direction train arrivals (towards the line's upper terminus).
      - `seq` string, nullable — Arrival sequence (1 = next train).
      - `destination` string, nullable — Destination station code.
      - `platform` string, nullable — Platform number.
      - `time_utc` string, nullable — Scheduled arrival time as ISO 8601 UTC.
      - `time_hkt` string, nullable — Original scheduled arrival time in HKT (+08:00).
      - `time_to_next_train_s` string, nullable — Seconds until arrival as reported by upstream.
      - `valid` string, nullable — Upstream validity flag (`Y` if the arrival is valid).
      - `source` string, nullable — Upstream source flag (rarely populated).
    - `down` MtrTrain[], required — Down-direction train arrivals (towards the line's lower terminus).
      - `seq` string, nullable — Arrival sequence (1 = next train).
      - `destination` string, nullable — Destination station code.
      - `platform` string, nullable — Platform number.
      - `time_utc` string, nullable — Scheduled arrival time as ISO 8601 UTC.
      - `time_hkt` string, nullable — Original scheduled arrival time in HKT (+08:00).
      - `time_to_next_train_s` string, nullable — Seconds until arrival as reported by upstream.
      - `valid` string, nullable — Upstream validity flag (`Y` if the arrival is valid).
      - `source` string, nullable — Upstream source flag (rarely populated).
  - `meta` SugraMeta, required — Metadata attached to every /api/v1/* response envelope.
    - `endpoint` string, required — Requested endpoint path.
    - `data_time` string, required — ISO 8601 UTC timestamp of the source data, not of the request.
    - `response_time` string, required — ISO 8601 UTC timestamp when this response was produced.
    - `provider` string, required — API name and version.
    - `source` string, nullable — Identifier of the primary upstream source used for this response.
    - `attribution` string, nullable — Human-readable attribution mandated by an upstream source (e.g. a securities regulator or self-regulatory organization). Present only on responses whose source requires the owner and source to be clearly identified. Do not remove or alter it when using the response.
    - `fallback_used` boolean, nullable — True when the primary source failed and a fallback produced the data.
    - `fallback_chain` string[], nullable — Ordered list of sources attempted, in the order they were tried.
    - `cached` boolean, nullable — True when this response was served from the internal cache.
    - `stale` boolean, nullable — True when the cached response was returned after the upstream rate-limited or errored. Clients can use this to detect degraded data.

## Other responses

- `401` — Missing or invalid `x-api-key` header.
- `422` — Validation Error
- `429` — Daily rate limit exceeded. Check `X-RateLimit-Reset` for the next window.
- `503` — Upstream source is temporarily unavailable. Retry after a short delay.

---

[API](https://skmtc.net/sugra/apis/sugra-api.md) · [All operations](https://skmtc.net/sugra/apis/sugra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sugra/sugra-api/versions/4e2740743eb4/schema)
