Post

新增接口:根据itemId查询淘宝商品详情

2019年2月18日更新:这个接口停止使用。

我这里提供一个可以根据淘宝商品ID查询到商品详情的接口,包括橱窗图片和内容详情富文本等。

接口地址:https://gateway.kouss.com/tbpub/itemDetail?item_id=商品ID&buyer_ip=购买者IP

入参:item_id商品ID,buyer_ip购买者IP(选填)

返回太长了,省略了部分没用的信息,字段名描述可以参考官方文档。

由于数据量比较大,禁止在客户端直接调用,请存数据库后使用,注意并发频率。

文档地址:https://www.yuque.com/kouss/taoke/pfc5ni

精简后的返回示范:

{
    "data":{
        "coupon_info":{
            "shop_coupon":"false"
        },
        "delivery_info":{
            "carriage_list":{
                "carriage":[
                    {
                        "name":"快递",
                        "price":"免运费"
                    }
                ]
            },
            "destination":"广东广州",
            "location":"广东深圳"
        },
        "desc_info":{
            "content":"<wapDesc><img>https://img.alicdn.com/imgextra/i3/4161794528/O1CN015V7Y6P1jJrsawUnrZ_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i3/4161794528/O1CN011jJrqsitvAeJq8O_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i4/4161794528/O1CN011jJrqtMrOPKcBW2_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i1/4161794528/O1CN011jJrqsCxa7xpbBs_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i4/4161794528/O1CN011jJrqt3ZlgFUSg1_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i2/4161794528/O1CN011jJrqt1M6Z93oJz_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i4/4161794528/O1CN011jJrqtatGHYAAvo_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i4/4161794528/O1CN01MZ1jBH1jJrsZXpazS_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i3/4161794528/O1CN01cmLyD41jJrseeVvBQ_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i2/4161794528/O1CN01UywYOj1jJrshAzc0K_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i2/4161794528/O1CN01mxkT4K1jJrsh3XS7t_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i4/4161794528/O1CN01h8rMDP1jJrsh3Yj8T_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i4/4161794528/O1CN010s5HoX1jJrsh3Qk01_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i4/4161794528/O1CN01GoR0GH1jJrsZXmN5Y_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i3/4161794528/O1CN013y005W1jJrsf1luHA_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i1/4161794528/O1CN01xH7ik21jJrsh0ueyM_!!4161794528.jpg</img><img>https://img.alicdn.com/imgextra/i3/4161794528/O1CN014qZgli1jJrsZmCDsK_!!4161794528.jpg</img></wapDesc>",
            "type":"mobile"
        },
        "dev_info":"detailskip011023099145.center.na61@11.23.99.145",
        "item_buy_info":{
            "cart_support":"true"
        },
        "item_info":{
            "in_sale":"true",
            "item_props":{
                "item_property":[
                    {
                        "name":"品牌",
                        "value":"娜彤蜜"
                    },
                    {
                        "name":"功能",
                        "value":"聚拢"
                    },
                    {
                        "name":"颜色分类",
                        "value":"【至尊款】湖蓝色【单件】,【经典款】肤色【单件】,【经典款】西瓜红【单件】,【至尊款】金色【单件】,【经典款黑色【单件】,【经典款】红色【单件】,【至尊款】紫色【单件】,幸福花肤色【单件】,幸福花黑色【单件】"
                    },
                    {
                        "name":"罩杯厚度",
                        "value":"AB杯为中厚模杯,C杯为薄模杯"
                    },
                    {
                        "name":"插片",
                        "value":"棉垫"
                    },
                    {
                        "name":"有无钢圈",
                        "value":"无钢圈"
                    },
                    {
                        "name":"上市时间",
                        "value":"2014年秋冬季"
                    },
                    {
                        "name":"款号",
                        "value":"0708"
                    },
                    {
                        "name":"罩杯款式",
                        "value":"3/4"
                    },
                    {
                        "name":"肩带样式",
                        "value":"可拆卸双肩带"
                    },
                    {
                        "name":"适用对象",
                        "value":"青年女性"
                    },
                    {
                        "name":"文胸款式",
                        "value":"V型"
                    },
                    {
                        "name":"尺码",
                        "value":"70A,70B,75A,75B,75C,80A,80B,80C,85A,85B,85C,90C"
                    },
                    {
                        "name":"搭扣排数",
                        "value":"后四排搭扣"
                    }
                ]
            },
            "pics":{
                "string":[
                    "http://img.alicdn.com/bao/uploaded/i1/4161794528/O1CN01uOS3db1jJrsaFewTE_!!0-item_pic.jpg",
                    "http://img.alicdn.com/bao/uploaded/i4/4161794528/O1CN01SiDInR1jJrsgQWqbO_!!4161794528.jpg",
                    "http://img.alicdn.com/bao/uploaded/i4/4161794528/O1CN01XJSsBt1jJrsiJ9nXl_!!4161794528.jpg",
                    "http://img.alicdn.com/bao/uploaded/i4/4161794528/O1CN01TByTkI1jJrsi5HKuQ_!!4161794528.jpg",
                    "http://img.alicdn.com/bao/uploaded/i2/4161794528/O1CN01mxkT4K1jJrsh3XS7t_!!4161794528.jpg"
                ]
            },
            "sku_item":"true",
            "start":"1546097084000",
            "sub_title":"",
            "title":"香港正品幸福狐狸内衣女无钢圈无痕聚拢文胸胸罩收副乳"
        },
        "seller_info":{
            "seller_nick":"娜彤蜜旗舰店",
            "seller_type":"tmall",
            "shop_name":"娜彤蜜旗舰店"
        }
    },
    "request_id":"10lct8ii2wuwy"
}

 

Leave a Reply

  • 评论3则,共1页,当前第1
    • bobo

      这个接口只能 聚石塔内调用好像

    • spring

      这个接口是不是挂掉了?还是我用的不对......
      {"code":48,"msg":"Access Forbidden:Access denied by LBAC at API

      • 确实,看来百川的接口不能随便用,被限制了。