lhl
Retrieve cloud-to-ground and cloud-to-cloud lightning counts from Hong Kong Observatory. Supports JSON and CSV formats with language options.
Instructions
Cloud-to-Ground and Cloud-to-Cloud Lightning Count (LHL) API Request
Parameters:
lang: 'en', 'tc', or 'sc' (Language option, default: en)
rformat: 'json' or 'csv' (Response format, default: csv)
Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=LHL&lang=en&rformat=json
Response Keys (JSON format):
fields: Array with field names ["Date", "Time", "CloudToGround", "CloudToCloud"]
data: Array of arrays with lightning count data
Response Keys (CSV format):
Header row: Date,Time,CloudToGround,CloudToCloud
Data rows: Actual lightning count data
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language for the response: 'en' (English), 'tc' (Traditional Chinese), 'sc' (Simplified Chinese) | en |
| rformat | No | Output format: 'json' or 'csv' (default: 'csv') | csv |