package_show API

To get the details of a particular dataset, the package_show API can be used: https://data.gov.hk/en-data/api/3/action/package_show?id=[dataset_id]

Note: the parameter id is mandatory for this function.

For example, to show metadata of hk-td-tis_2-traffic-snapshot-images in English: https://data.gov.hk/en-data/api/3/action/package_show?id=hk-td-tis_2-traffic-snapshot-images

The returned JSON will look similar to:

{
    "help": "Return the metadata of a dataset (package) and its resources.\n\n …",
    "success": true,
    "result": {
        "license_title": null,
        "maintainer": "TD General Enquiry Hotline",
         …
        "resources": [
            {
                "share_id": "08e6c…",
                "description": "CCTV Camera Locations (English)",
                "state": "active",
                …
            },  …
        ], …
    }
}

results matching ""

    No results matching ""