clmtemp
Retrieve historical daily mean temperature data from Hong Kong Observatory. Specify station, year, and optional month to get temperatures in JSON or CSV format.
Instructions
Daily Mean Temperature (CLMTEMP) API Request
Parameters:
station: Station code (refer to documentation for full list)
year: Year (1884 - current year, station-specific range)
month: Month (1-12, optional but requires year)
rformat: 'json' or 'csv' (Response format, default: csv)
Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=CLMTEMP&station=HKO&year=2025&rformat=json
Response Keys (JSON format):
type: Array with data type ["Mean Temperature"]
fields: Array with field names ["Year", "Month", "Day", "Temperature(C)"]
data: Array of arrays with temperature data
legend: Array with station information
Response Keys (CSV format):
Type: Data type line
Header row: Year,Month,Day,Temperature(C)
Data rows: Actual temperature data
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| station | Yes | Station code (e.g., HKO for Hong Kong Observatory) | |
| year | Yes | Year between 1884 and current year | |
| month | No | Optional month (1-12) when specific month data is needed | |
| rformat | No | Output format: 'json' or 'csv' (default: 'json') | json |