The DATA.GOV.HK catalogue is powered by CKAN, a powerful open source data portal software that includes a robust API which serves metadata about datasets. The metadata includes URLs and descriptions of dataset.
The full CKAN API documentation is available at http://docs.ckan.org/en/latest/api/index.html. The CKAN API endpoint prefixes in DATA.GOV.HK are:
https://data.gov.hk/en-data/api/3/action/for the English part
https://data.gov.hk/tc-data/api/3/action/for the Traditional Chinese part
https://data.gov.hk/sc-data/api/3/action/for the Simplified Chinese part
The responses are in JSON format.
- List all datasets (in the English part)
- Show the ‘Traffic Snapshot Images’ dataset and its associated dataset resources (in the Traditional Chinese part)
- List all data categories (in the English part)
- List all datasets in the ‘Environment’ category (in the Simplified Chinese part)