抖店獲取商品詳情
專題首頁> 應用市場> 抖店開放平臺API文檔 >抖店獲取商品詳情

/product/detail

 

獲取商品詳情

獲取商品的詳細信息(默認讀取的是線上數據,而非草稿數據;如無線上數據,則讀取草稿數據)

一、公共參數

參數名稱參數類型是否必須示例值參數描述
methodStringproduct.detail調用的API接口名稱
app_keyStringasd78172s8ds9a921j9qqwda12312w1w21211應用創建完成后被分配的key
access_tokenStringasd78172s8ds9a921j9qqwda12312w1w21211用于調用 API 的 access_token
param_jsonString{"cid":"12","page":"1"}標準json類型,里面是業務參數按照參數名的字符串大小排序具體參數值,參考每個接口的參數表
timestampString2010/01/01 12:12:12時間戳,格式為yyyy-MM-dd HH:mm:ss,時區為GMT+8,例如:2016-01-01 12:00:00
vString2API協議版本,當前版本為2
signStringE4DE3ED21002510DED352819E7AE6775API輸入參數簽名結果,簽名算法參照 API調用指南

二、業務參數

參數名稱參數類型是否必須示例值參數描述
product_idString3539925204033339668商品id
show_draftString"true""true":讀取草稿數據;"false":讀取上架數據

三、請求示例

https://openapi-fxg.jinritemai.com/product/detail?app_key=your_app_key_here&method=product.detail&access_token=your_accesstoken_here&param_json={"product_id":"product_id_here"}&timestamp=2018-06-19 16:06:59&v=2&sign=your_sign_here

四、響應示例

{    "data": {        "product_id": 3276192774554309600,        "open_user_id": 353992520403334****,        "name": "氣質時尚女裝碎花修身顯瘦裙子",        "description": "<img src='https://sf6-ttcdn-tos.pstatp.com/obj/temai/93addf0cd27c5ac835767731e33aa1dfe02c5854' style='width:100%;'><img src='https://sf6-ttcdn-tos.pstatp.com/obj/temai/d63de94a01d287f10cc1e58da57b162e594986c5' style='width:100%;'>",        "img": "https://sf6-ttcdn-tos.pstatp.com/obj/temai/0c71ce6acb4e3b508e0d30042b1a94262818ab41",        "market_price": 29800,        "discount_price": 26800,        "status": 0,        "spec_id": 1,        "check_status": 2,        "mobile": "13122223333",        "first_cid": 2,        "second_cid": 123,        "third_cid": 1234,        "pay_type": 2,        "recommend_remark": "remark...",        "is_create": 0,        "create_time": "2018-05-06 16:42:25",        "pic": [            "https://sf6-ttcdn-tos.pstatp.com/obj/temai/0c71ce6acb4e3b508e0d30042",            "https://sf3-ttcdn-tos.pstatp.com/obj/temai/b4c2ab334236f8141e41faa14"
        ],        "product_format": "{\"上市年份季節\":\"2018年秋季\",\"品牌\":\"ss\",\"貨號\":\"8888\"}",        "spec_pics": [
            {                "spec_detail_id": 5,                "pic": "https://sf1-ttcdn-tos.pstatp.com/obj/temai/b637513c50b994f4c89de56a1788"
            }
        ],        "spec_prices": [
            {                "sku_id": 1431,                "spec_detail_ids": [                    3141,                    3142,                    3143
                ],                "stock_num": 500,                "price": 32800,                "settlement_price": 26000,                "code": "A00018001"
            }
        ],        "specs": [
            {                "id": 3144,                "spec_id": 123,                "name": "顏色",                "pid": 0,                "is_leaf": 0,                "values": [
                    {                        "id": 3148,                        "spec_id": 316314,                        "name": "黑色",                        "pid": 3148915,                        "is_leaf": 1,                        "status": 0
                    },
                    {                        "id": 3149,                        "spec_id": 316314,                        "name": "白色",                        "pid": 3148915,                        "is_leaf": 1,                        "status": 0
                    },
                    {                        "id": 3150,                        "spec_id": 316314,                        "name": "黃色",                        "pid": 3148915,                        "is_leaf": 1,                        "status": 0
                    }
                ]
            }
        ]
    },    "err_no": 0,    "message": "success"}


雷竞技电竞