Hong Kong address API
doorplate.dev's API is free. Send it a Hong Kong address written any way people write one (English, Chinese, abbreviated, misspelt, in any order) and it returns the building the government's address gazetteer files it under, every part of the address in English and Chinese, coordinates, and how sure it is. When it is not sure, it says how far it got (a street, an estate) rather than guessing.
A request
curl -s https://doorplate.dev/api/resolve \
-H 'Content-Type: application/json' \
-d '{"text": "1 Queen'"'"'s Road Central"}'
The answer is JSON in the shape the JSON schema describes. The fields most callers read:
reason_code:MATCHED,AMBIGUOUS,UNDER_SPECIFIED,OUT_OF_SCOPEand the rest. Every answer has one.resolution.level: the finest level reached, fromunit,floorandbuildingtostreetanddistrict.building_key: the gazetteer's building id (its GeoAddress).building_id: our own building id, the one in this site's building pages.partsandfull: every part of the address and the whole of it, in English and Chinese, each part with its source.location: latitude and longitude.confidence: the probability the answer is right.
Limits
Twelve requests per ten seconds per client; beyond that you get 429 with Retry-After. For batches or commercial use, write to us from the home page.
Sources and attribution
Answers reproduce the Digital Policy Office's Address Lookup Service and the Land Registry's Address dataset, obtained through DATA.GOV.HK and the CSDI Portal. Every response carries the attribution their terms require in its Link and X-Data-Attribution headers; keep it with the answers if you republish them.