CTB/NWFB Bus Routes
Source
Section titled “Source”Citybus Limited (CTB)
- API Base: https://rt.data.gov.hk/
- Routes Endpoint:
https://rt.data.gov.hk/v1/transport/citybus/route/ctb - NWFB Routes:
https://rt.data.gov.hk/v1/transport/citybus/route/nwfb
Format
Section titled “Format”JSON Real-time. No API key. CORS-enabled.
~180
CTB Routes
~120
NWFB Routes
HK Island
Primary Coverage
Schema / Fields
Section titled “Schema / Fields”| Field | Type | Example | Description |
|---|---|---|---|
co | string | "CTB" | Company: CTB or NWFB |
route | string | "1" | Route number |
bound | string | "O" | Direction: O (outbound) or I (inbound) |
service_type | string | "1" | Service variant |
orig_en | string | "KENNEDY TOWN" | Origin terminal (English) |
orig_tc | string | "堅尼地城" | Origin terminal (Chinese) |
dest_en | string | "SHAU KEI WAN" | Destination terminal (English) |
dest_tc | string | "筲箕灣" | Destination terminal (Chinese) |
Example API Call
Section titled “Example API Call”# All CTB routescurl "https://rt.data.gov.hk/v1/transport/citybus/route/ctb" | jq '.data[0:5]'
# All NWFB routescurl "https://rt.data.gov.hk/v1/transport/citybus/route/nwfb" | jq '.data[0:5]'
# Get stops for a specific route (e.g., Route 1 outbound)curl "https://rt.data.gov.hk/v1/transport/citybus/route-stop/ctb/1/O"Example Response
Section titled “Example Response”{ "type": "RouteList", "version": "2.0", "generated_timestamp": "2024-01-15T09:00:00+08:00", "data": [ { "co": "CTB", "route": "1", "bound": "O", "service_type": "1", "orig_en": "KENNEDY TOWN", "orig_tc": "堅尼地城", "dest_en": "SHAU KEI WAN", "dest_tc": "筲箕灣" }, { "co": "CTB", "route": "40", "bound": "I", "service_type": "1", "orig_en": "JARDINE'S LOOKOUT", "orig_tc": "渣甸山", "dest_en": "CENTRAL", "dest_tc": "中環" } ]}Stop Coordinates Endpoint
Section titled “Stop Coordinates Endpoint”# Get stop with coordinatescurl "https://rt.data.gov.hk/v1/transport/citybus/stop/{stop_id}"# Returns: stop_id, name_en, name_tc, lat, longUsed By
Section titled “Used By”| Model | How |
|---|---|
| Catchment Area | HK Island bus network extends pedestrian catchment along Queen’s Road, Des Voeux Road, Connaught Road |
Notes / Gotchas
Section titled “Notes / Gotchas”- CTB and NWFB merged operations in 2021 but remain separate API entities
- Cross-harbour tunnel routes operated by CTB/NWFB connect Kowloon to HK Island — include for cross-harbour visitor flow
- Bus stop coordinates endpoint requires individual stop ID lookup — batch requests needed for full spatial dataset