Hong Kong Observatory

Hong Kong weather, warnings, and climate open data

🌦 WeatherHEALTHYchecked 11h ago
AUTH NONECORS AGENT HTTPS COMMERCIAL ?

The Hong Kong Observatory's open-data API returns current weather, rainfall by district, forecasts, and warnings as JSON. A single keyless GET with a dataType parameter pulls the current-conditions report. Data is bilingual (English and Chinese) via a lang switch.

60HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: 60 · healthy
Uptime history
100%90 days
100%30 days
1330P50 · ms
3670P95 · ms
operationalpartialdownno data
Response time · last 48 checks
Fastest 170 ms, slowest 3035 ms, most recent 594 ms.
Live response samplecaptured by our last successful check
GET https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang=en

{
  "rainfall": {
    "data": [
      {
        "unit": "mm",
        "place": "Central & Western District",
        "max": 0,
        "main": "FALSE"
      }
    ]
  }
}
Call itcurl · fetch · python
curl "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang=en"
const res = await fetch("https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang=en");
const data = await res.json();
console.log(data);
import requests

res = requests.get("https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang=en")
print(res.json())
Endpoints · 3HealthyFULL DOCS ↗
Monitored path responding — GET /weather.php?dataType=rhrread&lang=en1330 mschecked 11h ago
GET/weather.php?dataType=rhrread&lang=enPROBED

Hong Kong weather, warnings, and climate open data

GET/weather.php?limit=5

Weather Php — documented GET route.

GET/weather.php?page=1

Weather Php — documented GET route.

Machine-readable spec

We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.

Response-shape history

Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.

Hong Kong Observatory: common questions

Is Hong Kong Observatory free to use?

Yes — Hong Kong Observatory is a free weather API. Free tier: Free, no key. Whether the free tier allows commercial use is unclear — check the provider docs.

Does Hong Kong Observatory need an API key?

No — Hong Kong Observatory needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished).

Can I call Hong Kong Observatory from the browser?

Yes — Hong Kong Observatory returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.

Is Hong Kong Observatory up right now?

As of our last scheduled check, Hong Kong Observatory is healthy with 100% uptime over 90 days and a 1330 ms median response. We re-probe it every sweep — the status badge and uptime chart above always show the latest.