hhhot
Retrieve hourly astronomical tide heights for Hong Kong stations by station code and year, with optional month, day, or hour filters.
Instructions
Hourly Heights of Astronomical Tides (HHOT) API Request
Parameters:
station: CCH/CLK/CMW/KCT/KLW/LOP/MWC/QUB/SPW/TAO/TBT/TMW/TPK/WAG
year: 2022-2024
month: (Optional) 1-12
day: (Optional) 1-31
hour: (Optional) 0-23
rformat: 'json' (Response format)
Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=HHOT&station=CCH&year=2025&rformat=json
Response Keys (JSON format):
type: Array with data type ["Hourly Heights of Astronomical Tides"]
fields: Array with field names ["Year", "Month", "Day", "Hour", "Height(m)"]
data: Array of arrays with tide data
legend: Array with station information
Response Keys (CSV format):
Type: Data type line
Header row: Year,Month,Day,Hour,Height(m)
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-2024 | |
| month | No | Optional month (1-12) | |
| day | No | Optional day of month (1-31) | |
| hour | No | Optional hour (0-23) | |
| rformat | No | Output format (only 'json' supported) | json |