hlt
Obtain astronomical high and low tide times and heights for Hong Kong stations by providing station code and year, with optional month, day, or hour filters.
Instructions
Times and Heights of Astronomical High and Low Tides (HLT) API Request
Parameters:
station: CCH/CLK/CMW/KCT/KLW/LOP/MWC/QUB/SPW/TAO/TBT/TMW/TPK/WAG
year: 2022-current year+1
month: (Optional) 1-12
day: (Optional) 1-31
hour: (Optional) 1-24
rformat: 'json' or 'csv' (Response format, default: json)
Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=HLT&station=CLK&year=2025&rformat=json
Response Keys (JSON format):
fields: Array with field names ["Date", "Time", "Height(m)", "Type"]
data: Array of arrays with tide data
Response Keys (CSV format):
Header row: Date,Time,Height(m),Type
Data rows: Actual tide data
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| station | Yes | Tide station code (e.g., 'CCH', 'CLK', etc.) | |
| year | Yes | Year between 2022 and current year + 1 | |
| month | No | Optional month (1-12) | |
| day | No | Optional day of month (1-31) | |
| hour | No | Optional hour (1-24) | |
| rformat | No | Output format: 'json' or 'csv' (default: 'json') | json |