貿易統計網上互動數據發布服務
貿易統計網上互動數據發布服務。發布機構:政府統計處。已記錄的資源數量:2。已記錄的資源格式:JSON、XLS。
資料預覽
Interactive Data Dissemination Service for Trade Statistics - API Enquiry
顯示 1 / 1 筆來源紀錄
| header |
|---|
{"status":{"name":"Access denied","code":4,"description":"Access denied","apiHelp":"https://tradeidds.censtatd.gov.hk/PageID/ApiSpec","message":["We use cookies to collect the usages to this website, please enable and give consent for cookies to be used. / You have sent too many API Calls simultaneously."]}} |
查看全部樣本欄位
紀錄 1
- header
- {"status":{"name":"Access denied","code":4,"description":"Access denied","apiHelp":"https://tradeidds.censtatd.gov.hk/PageID/ApiSpec","message":["We use cookies to collect the usages to this website, please enable and give consent for cookies to be used. / You have sent too many API Calls simultaneously."]}}
查看樣本 JSON
[
{
"header": {
"status": {
"name": "Access denied",
"code": 4,
"description": "Access denied",
"apiHelp": "https://tradeidds.censtatd.gov.hk/PageID/ApiSpec",
"message": [
"We use cookies to collect the usages to this website, please enable and give consent for cookies to be used. / You have sent too many API Calls simultaneously."
]
}
}
}
]觀察到的欄位
| 欄位 | 樣本 JSON 類型 |
|---|---|
| header | object |
資源
資料集名稱及介紹採用官方繁體中文詮釋資料;資源欄位沿用英文目錄來源的原文,資源內容語言另列。
格式: JSON, XLS · 語言: en, zh-Hant, zh-Hans
-
Interactive Data Dissemination Service for Trade Statistics - API Enquiry
格式: JSON
###Data Request Format: HTTP GET request method
https://tradeidds.censtatd.gov.hk/api/get?lang=<param>&sv=<param,...>&freq=<param>&period=<start,end>&ttype=<param>&tm=<param>&coclass=<param>&co=<param,...>&ccclass=<param>&cc=<param,...>&codeclass=<param>&code=<param,...>
For annual data:
[https://tradeidds.censtatd.gov.hk/api/bb6578c6535a4269b76c5e7034a3b337/get?lang=en&sv=VCy&freq=A&period=2015,2017&ttype=ALL](https://tradeidds.censtatd.gov.hk/api/bb6578c6535a4269b76c5e7034a3b337/get?lang=en&sv=VCy&freq=A&period=2015,2017&ttype=ALL)For monthly data:
[https://tradeidds.censtatd.gov.hk/api/df5eaaf5f7fb498397408c731c5823e6/get?lang=en&sv=VCm&freq=M&period=201501,201712&ttype=ALL](https://tradeidds.censtatd.gov.hk/api/df5eaaf5f7fb498397408c731c5823e6/get?lang=en&sv=VCm&freq=M&period=201501,201712&ttype=ALL)
###Query string parameters:
- **lang**: Language for the descriptions in the Data Response (JSON). Mandatory. One value only. Valid values are:
- **EN**: English
- **TC**: Traditional Chinese
- **SC**: Simplified Chinese
- **sv**: Statistics. Mandatory. Allow multiple values (e.g. sv=VCm,VCy). Valid values are:
- **VCm**: Value (Monthly)
- **QCm**: Quantity (Monthly)
- **VCy**: Value (Annual/Year-to-date)
- **QCy**: Quantity (Annual/Year-to-date)
- **freq**: Frequency. Mandatory. One value only. Valid values are:
- **A**: Annual
- **M**: Monthly
- **period**: Period. Mandatory. Range of values (e.g. period=2015,2017 queries for Year 2015 to 2017). Valid value formats are:
- **_YYYY,YYYY_**: For Annual, e.g. 2015,2017
- **_YYYYMM,YYYYMM_**: For Monthly, e.g. 201701,201712
- **ttype**: Trade Type. Mandatory. One value only. Valid values are:
- **1**: Imports
- **2**: Domestic exports
- **3**: Re-exports
- **4**: Total exports
- **5**: Total trade
- **ALL**: All
- **tm**: Transport Mode. Optional. One value only. Nil is default or unspecified. Valid value is:
- **Y**: Yes
- **coclass**: Origin class. Optional. One value only. Nil is default or unspecified. Valid values are:
- **R**: Region
- **C**: Country/Territory
- **co**: Origin. Optional. Allow multiple values (e.g. co=CN,US). Nil is default or unspecified.
- Refer to Annex 1 of the [Documentation](https://tradeidds.censtatd.gov.hk/MetadataLink/ApiSpec/API_eng.pdf) for valid values.
- **ccclass**: Consignment class. Optional. One value only. Nil is default or unspecified. Valid values are:
- **R**: Region
- **C**: Country/Territory
- **cc**: Consignment. Optional. Allow multiple values (e.g. cc=CN,US). Nil is default or unspecified.
- Refer to Annex 1 of the [Documentation](https://tradeidds.censtatd.gov.hk/MetadataLink/ApiSpec/API_eng.pdf) for valid values.
- **codeclass**: Commodity Classification. Optional. One value only. Nil is default or unspecified. Valid values are:
- HKHS
- **HKHS2**: 2-digit (division)
- **HKHS4**: 4-digit (heading)
- **HKHS6**: 6-digit (subheading)
- **HKHS8**: 8-digit (code)
- SITC
- **SITC1**: 1-digit (section)
- **SITC2**: 2-digit (division)
- **SITC3**: 3-digit (group)
- **SITC5**: 5-digit (item)
- EUC
- **EUC**: End-Use Category
- **code**: Commodity codes. Optional. Allow multiple values (e.g. code=06,07). Nil is default or unspecified.
- For HKHS and SITC, refer to Annex 2 of the [Documentation](https://tradeidds.censtatd.gov.hk/MetadataLink/ApiSpec/API_eng.pdf) for valid values. Max 20.
- For EUC, no need to specify.
###HTTP Response:
- The response is encoded in UTF-8
- Refer to the [Documentation](https://tradeidds.censtatd.gov.hk/MetadataLink/ApiSpec/API_eng.pdf) for details. -
Interactive Data Dissemination Service for Trade Statistics
格式: XLS