Weather · head-to-head
Hong Kong Observatory vs weather-api
The Hong Kong Observatory's Open Data API exposes roughly 50 machine-readable datasets covering real-time weather observations, 9-day forecasts, lightning counts, tropical cyclone tracking, tidal predictions, UV index and radiation levels, plus historical rainfall and sunshine records, for Hong Kong and nearby waters. It is a free, keyless service built for machine-to-machine consumption, mirrored on the government's data.gov.hk portal alongside the Observatory's own documented endpoint.
This is an MIT-licensed Go application that returns current conditions, wind speed, and a three-day forecast as JSON for a city name. The author runs a free public demo at goweather.xyz/v2/weather/{city}. It needs no key and sends open CORS headers. The older /weather/{city} route on that host now returns 404, so use the /v2 path. The repo is not archived, and the last push was in October 2026. You can also build the app and host it yourself.
| Hong Kong Observatory | weather-api | |
|---|---|---|
| Authentication | None | None |
| Pricing | free | free |
| Formats | JSON, XML, CSV | JSON |
| CORS | yes | yes |
| HTTPS | Yes | Yes |
Hong Kong Observatory supports 3 response formats, while weather-api offers fewer — pick Hong Kong Observatory for more integration flexibility.