package_show 應用程式介面

開發者可以透過package_show應用程式介面取得特定資料集的詮釋資料: https://data.gov.hk/tc-data/api/3/action/package_show?id=[dataset_id]

請留意參數id 為必要參數,代表想取得的特定資料集。

例如,當我們想取得英文網站中資料集id為hk-td-tis_2-traffic-snapshot-images的詮釋資料,可作以下請求: https://data.gov.hk/en-data/api/3/action/package_show?id=hk-td-tis_2-traffic-snapshot-images

以下是應用程式介面所回傳的例子:

{
    "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 ""