HK Open Data Skill
Unified access to Hong Kong government open data. Combines weather, transport, parking, and geographic data. No API keys needed.
Available Data Sources
| Data | API | Format |
|---|---|---|
| Weather & Forecasts | HK Observatory | JSON |
| KMB Bus (1,621 routes) | data.etabus.gov.hk | JSON |
| Citybus (416 routes) | rt.data.gov.hk | JSON |
| GMB Minibus (569 routes) | data.etagmb.gov.hk | JSON |
| NLB Lantau Bus (64 routes) | rt.data.gov.hk | JSON |
| MTR Train Schedules | rt.data.gov.hk | JSON |
| Light Rail (LRT) | rt.data.gov.hk | JSON |
| Location Search | geodata.gov.hk | JSON |
| Parking Vacancy (541+) | api.data.gov.hk | JSON |
| A&E Wait Times (18 hospitals) | ha.org.hk | JSON |
| RTHK News | rthk.hk | RSS/XML |
| HKMA Financial Data | api.hkma.gov.hk | JSON |
| LCSD Facilities (116+) | lcsd.gov.hk | JSON |
| Historical Archives | api.data.gov.hk | JSON |
Quick API Reference
Weather
bash
# Current conditions curl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang=en" # 9-day forecast curl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=fnd&lang=en" # Warnings curl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=warnsum&lang=en"
Transport
bash
# KMB routes & ETA
curl -s "https://data.etabus.gov.hk/v1/transport/kmb/route/"
curl -s "https://data.etabus.gov.hk/v1/transport/kmb/stop-eta/{STOP_ID}"
# Citybus
curl -s "https://rt.data.gov.hk/v2/transport/citybus/route/ctb"
# MTR
curl -s "https://rt.data.gov.hk/v1/transport/mtr/getSchedule.php?line={LINE}&sta={STATION}"
Location
bash
curl -s "https://geodata.gov.hk/gs/api/v1.0.0/locationSearch?q={QUERY}"
Parking
bash
curl -s "https://api.data.gov.hk/v1/carpark-info-vacancy?data=info,vacancy&vehicleTypes=privateCar"
Hospital A&E
bash
curl -s "https://www.ha.org.hk/opendata/aed/aedwtdata2-en.json"
News (RTHK)
bash
curl -sL "http://rthk9.rthk.hk/rthk/news/rss/e_expressnews_elocal.xml"
Finance (HKMA)
bash
curl -s "https://api.hkma.gov.hk/public/market-data-and-statistics/daily-monetary-statistics/daily-figures-interbank-liquidity"
Facilities (LCSD)
bash
curl -s "https://www.lcsd.gov.hk/datagovhk/facility/facility-en.json"
Historical Data
bash
curl -s "https://api.data.gov.hk/v1/historical-archive/list-file-versions?url={RESOURCE_URL}&start={YYYYMMDD}&end={YYYYMMDD}"
Multi-Source Queries
For questions that span multiple data types, query relevant APIs in parallel and combine:
Example: "我想去中環,天氣點?有冇車位?"
- •Weather:
dataType=rhrread→ current conditions - •GeoData:
locationSearch?q=central→ get coordinates - •Parking:
vacancy_all.xml→ filter by Central district - •Present combined answer
Detailed Documentation
For complete API specs, response schemas, and usage patterns for each data source, install the individual skills:
- •
hk-weather— Full HKO API documentation - •
hk-transport— KMB/Citybus/GMB/NLB/MTR/LRT endpoints and station codes - •
hk-parking— Parking vacancy API and parsing - •
hk-geodata— Location search and coordinate conversion - •
hk-hospital— A&E wait times and triage categories - •
hk-news— RTHK news RSS feeds - •
hk-finance— HKMA monetary statistics - •
hk-facilities— LCSD sports and leisure venues