item_get_specifications-获得跨境属性数据说明

85 阅读1分钟

item_get_specifications-获得跨境属性数据说明

一、应用场景

主要适用于国外买家采购商品,因为有报关要求,以及需要避免购买不能报关的商品,引起退货等相关手续

二、公共参数

请求地址:api-gw.cn/188/item_ge…

三、请求参数

请求参数:num_iid=725962595144

参数说明:num_iid:商品ID

四、请求示例

# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "https://api-gw.onebound.cn/1688/item_get_specifications/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=725962595144"
headers = {
    "Accept-Encoding": "gzip",
    "Connection": "close"
}
if __name__ == "__main__":
    r = requests.get(url, headers=headers)
    json_obj = r.json()
    print(json_obj)

五、响应示例

  {
      "item": {
        "item_weight": 0.1,
        "unit_weight": 0.1,
        "volume_length": 8,
        "volume_width": 6,
        "volume_height": 2.8,
        "_ddf": "ti"
    },
    "error": "",
    "reason": "",
    "error_code": "0000",
    "cache": 0,
    "api_info": "today:58 max:10100 all[106=58+24+24];expires:2030-12-31",
    "execution_time": "1.612",
    "server_time": "Beijing/2023-07-25 10:26:28",
    "client_ip": "115.153.49.128",
    "call_args": [],
    "api_type": "1688",
    "translate_language": "zh-CN",
    "translate_engine": "baidu",
    "server_memory": "3.99MB",
    "request_id": "1.64bf32d324b3b",
    "last_id": "1898688318"
}