Districts

This API returns all districts in Hong Kong.
https://api.useful-api.com/districts

Headers

X-API-KEY
Your API key.

Parameters

langzh-hk | en
Language of the response content. Default to zh-hk.
regionIdnumber
Filter districts by region id.
subDistrictsboolean
When true, sub-districts will be included in the response. Default to false.

Response Example

[
  {
    "id": 2,
    "region": "九龍",
    "districts": [
      {
        "id": 20,
        "name": "九龍城區",
        "subDistricts": [
          {
            "id": 2000,
            "name": "紅磡"
          }
        ]
      }
    ]
  }
]