﻿---
schema_version: 1
metadata_language: "zh-Hant"
resource_metadata_source: "en"
dataset_id: "hk-td-tis_21-etakmb"
title: "九龍巴士及龍運巴士路線實時到站數據"
publisher: {"id":"hk-td","name":"運輸署","html_url":"/zh-hant/?publisher=hk-td","markdown_url":"/zh-hant/datasets/index.md?publisher=hk-td"}
categories: [{"id":"transport","name":"運輸","html_url":"/zh-hant/?category=transport","markdown_url":"/zh-hant/datasets/index.md?category=transport"}]
tags: []
resource_count: 9
metadata_modified: "2024-11-11T16:36:16.389796"
update_frequency: "Estimated Time of Arrival (ETA) data updated every 1 minute.  Other data updated daily."
harvest_started: "2026-12-04T22:30:55.537Z"
license: null
source_url: "https://data.gov.hk/tc-data/api/3/action/package_show?id=hk-td-tis_21-etakmb"
html_url: "/zh-hant/datasets/hk-td-tis_21-etakmb/"
json_url: "/zh-hant/datasets/hk-td-tis_21-etakmb.json"
markdown_url: "/zh-hant/datasets/hk-td-tis_21-etakmb.md"
---

# 九龍巴士及龍運巴士路線實時到站數據

[← 文字目錄首頁](/zh-hant/index.md)

[HTML](/zh-hant/datasets/hk-td-tis_21-etakmb/) · [JSON](/zh-hant/datasets/hk-td-tis_21-etakmb.json) · [Markdown](/zh-hant/datasets/hk-td-tis_21-etakmb.md)

[API 資源](/zh-hant/datasets/hk-td-tis_21-etakmb/resources.md?api=true) · [所有資源連結](/zh-hant/datasets/hk-td-tis_21-etakmb/resources.md)

[官方詮釋資料紀錄](<https://data.gov.hk/tc-data/api/3/action/package_show?id=hk-td-tis_21-etakmb>)

## 簡介

原始數據的知識產權擁有人：九龍巴士\(一九三三\)有限公司 \(簡稱「九巴」\) 及 龍運巴士有限公司 \(簡稱「龍運」\)  
  
 基於九巴及龍運巴士提供的原始數據，運輸署發放相關的巴士實時預計到達時間\(ETA\)數據   
  
 九巴和龍運的路線、巴士站和實時預計到達時間\(ETA\)數據。  
  
 以下有9個JSON格式的數據資源，請參閱「數據字典」和「API規格」以獲取更多關於這些API之內容及關係的資料。   
  
關於公共交通路線的臨時改道安排，請查看相關公共交通服務營辦商網頁。

## API 文件

[API reference](</reference/?api=kmb-real-time-arrival-information-api>)

[Source documentation](<https://data.etabus.gov.hk/datagovhk/kmb_eta_api_specification.pdf>)

<details>
<summary>JSON and YAML</summary>

[JSON](</openapi/kmb-real-time-arrival-information-api.json>) · [YAML](</openapi/kmb-real-time-arrival-information-api.yaml>)

</details>


## 發布機構文件

- Data dictionary — [官方 PDF](<https://data.etabus.gov.hk/datagovhk/kmb_eta_data_dictionary.pdf>) · [API reference: KMB Real-time Arrival Information API](/reference/kmb/) (資料集背景)
- API Specifications — [官方 PDF](<https://data.etabus.gov.hk/datagovhk/kmb_eta_api_specification.pdf>) · [API reference: KMB Real-time Arrival Information API](/reference/kmb/) (資料集背景)

## 資源

資料集名稱及介紹採用官方繁體中文詮釋資料；資源欄位沿用英文目錄來源的原文，資源內容語言另列。

以下為詮釋資料提供的上游資源連結；本站未驗證資源內容或端點是否可用。

資源格式: JSON. 資源內容語言: en, zh-Hant, zh-Hans.

- Route ETA Data

  原始網址: ` https://data.etabus.gov.hk/v1/transport/kmb/route-eta/{route}/{service_type} `

  **網址範本：須替換參數。**

  參數位置: ` {route} `, ` {service_type} `. 請按發布機構文件替換參數後再取得資料。本站不推斷參數值或端點是否可用。

  This API takes the KMB’s operating bus route number\(s\) and service type\(s\); then, it returns the “estimated time of arrival” \(ETA\) information of all stops on the respective route\. The data format is the same as ETA API\.

- Stop ETA Data

  原始網址: ` https://data.etabus.gov.hk/v1/transport/kmb/stop-eta/{stop_id} `

  **網址範本：須替換參數。**

  參數位置: ` {stop_id} `. 請按發布機構文件替換參數後再取得資料。本站不推斷參數值或端點是否可用。

  This API takes a bus stop ID; then, it returns the “estimated time of arrival” \(ETA\) information of all routes at that stop\.

- Route-Stop Data

  原始網址: ` https://data.etabus.gov.hk/v1/transport/kmb/route-stop/{route}/{direction}/{service_type} `

  **網址範本：須替換參數。**

  參數位置: ` {route} `, ` {direction} `, ` {service_type} `. 請按發布機構文件替換參數後再取得資料。本站不推斷參數值或端點是否可用。

  This API takes a route direction and the KMB’s operating bus route number and returns the stop information of the respective route\.The data is updated once a day\. For better use of the open resource, please consider calling this API once after 5:00 am every day\. Repeated API calls will not return the latest data\.

- ETA Data

  原始網址: ` https://data.etabus.gov.hk/v1/transport/kmb/eta/{stop_id}/{route}/{service_type} `

  **網址範本：須替換參數。**

  參數位置: ` {stop_id} `, ` {route} `, ` {service_type} `. 請按發布機構文件替換參數後再取得資料。本站不推斷參數值或端點是否可用。

  This API takes a bus stop ID, the KMB’s operating bus route number and service type; then, it returns the “estimated time of arrival” \(ETA\) information of the respective route at that stop\.\(Remark: May return up to 3 ETA data for each direction\.\)

- Stop Data

  原始網址: ` https://data.etabus.gov.hk/v1/transport/kmb/stop/{stop_id} `

  **網址範本：須替換參數。**

  參數位置: ` {stop_id} `. 請按發布機構文件替換參數後再取得資料。本站不推斷參數值或端點是否可用。

  This API takes a 16\-character bus stop ID and returns the respective bus stop information\.\(Remark: To find the corresponding bus stop ID, the user can query the “Route\-Stop API”\)The data is updated once a day\. For better use of the open resource, please consider calling this API once after 5:00 am every day\. Repeated API calls will not return the latest data\.

- [Stop List Data](<https://data.etabus.gov.hk/v1/transport/kmb/stop>)

  This API returns all bus stop information at once\.The data is updated once a day\. For better use of the open resource, please consider calling this API once after 5:00 am every day\. Repeated API calls will not return the latest data\.

- Route Data

  原始網址: ` https://data.etabus.gov.hk/v1/transport/kmb/route/{route}/{direction}/{service_type} `

  **網址範本：須替換參數。**

  參數位置: ` {route} `, ` {direction} `, ` {service_type} `. 請按發布機構文件替換參數後再取得資料。本站不推斷參數值或端點是否可用。

  This API takes a KMB’s operating bus route number, direction and service type, and returns the respective route information\.The data is updated once a day\. For better use of the open resource, please consider calling this API once after 5:00 am every day\. Repeated API calls will not return the latest data\.

- [Route-Stop List Data](<https://data.etabus.gov.hk/v1/transport/kmb/route-stop>)

  This API takes returns the stop information of all routes\.The data is updated once a day\. For better use of the open resource, please consider calling this API once after 5:00 am every day\. Repeated API calls will not return the latest data\.

- [Route List Data](<https://data.etabus.gov.hk/v1/transport/kmb/route/>)

  This API return all bus routes of KMB\.The data is updated once a day\. For better use of the open resource, please consider calling this API once after 5:00 am every day\. Repeated API calls will not return the latest data\.
