一般在开发淘宝客APP、公众号时,经常会在商品详情页下,展示卖家的信息。
比如:
卖家昵称、店铺头像、店铺评分、店铺好评率等等
这些信息可以直接显示在您的APP、微信公众号或网站上,减少客户跳转到淘宝查看的机率,对提升用户体验很有帮助。
如下图,就是淘宝APP的店铺信息:
PS:近期我们还将推出店铺所有商品的搜索接口.
那么,要怎么获取上面的图片中的信息?
很简单哦,调用维易商品详情接口即可,调用itemdetail接口时,只要传递moreinfo 参数,就可以获取到。如果您不想要产品详细信息,那么传递onlyglobalinfo=1参数,效率更高。
如下:
http://apipro.vephp.com/itemdetail?vekey=xxx¶=573853907998&shoptype=B&moreinfo=1&onlyglobalinfo=1
这样,就取到商品概要信息和店铺信息,相关字段说明参考
店铺信息返回值如下:
{
"error": "0",
"msg": "获取产品详情成功",
"debugCode": "10001",
"isHtml": 0,
"data": {
"title": "2019夏季新款女装修身显瘦温柔风裙子收腰气质中长碎花雪纺连衣裙",
"subtitle": "",
"shoptype": "C",
"categoryId": "50010850",
"rootCategoryId": "16",
"images": [
"//img.alicdn.com/imgextra/i2/695924102/TB1EgWpEStYBeNjSspkXXbU8VXa_!!0-item_pic.jpg",
"//img.alicdn.com/imgextra/i4/695924102/TB2Yk4wlljTBKNjSZFuXXb0HFXa_!!695924102.jpg",
"//img.alicdn.com/imgextra/i2/695924102/TB23yW0EGmWBuNjy1XaXXXCbXXa_!!695924102.jpg",
"//img.alicdn.com/imgextra/i4/695924102/TB2uRfvwcyYBuNkSnfoXXcWgVXa_!!695924102.jpg",
"//img.alicdn.com/imgextra/i2/695924102/TB28RRjc.z.BuNjt_j7XXX0nFXa_!!695924102.jpg"
],
"baseinfo": [
{
"材质": "醋纤"
},
{
"尺码": "M"
},
{
"面料": "雪纺"
},
{
"图案": "碎花"
},
{
"风格": "通勤"
},
{
"通勤": "韩版"
},
{
"领型": "V领"
},
{
"腰型": "中腰"
},
{
"衣门襟": "套头"
},
{
"颜色分类": "浅紫色"
},
{
"袖型": "喇叭袖"
},
{
"组合形式": "单件"
},
{
"货号": "18060781"
},
{
"成分含量": "95%以上"
},
{
"裙型": "荷叶边裙"
},
{
"年份季节": "2018年夏季"
},
{
"袖长": "五分袖"
},
{
"裙长": "中长裙"
},
{
"流行元素/工艺": "蝴蝶结,荷叶边,系带,绑带,拉链,树脂固色,印花,蝴蝶结 荷叶边 系带 绑带 拉链 树脂固色 印花"
},
{
"廓形": "X型"
}
],
"comment": {
"commenttotal": "164",
"newcomment": [
{
"content": "差评,穿了一天就破了,补都不好补",
"userName": "唐**华",
"headPic": "//gtms03.alicdn.com/tps/i3/TB1yeWeIFXXXXX5XFXXuAZJYXXX-210-210.png_80x80.jpg",
"memberLevel": "4",
"dateTime": "2019-03-17",
"tmallMemberLevel": "0",
"headExtraPic": "",
"memberIcon": "",
"isVip": "false"
}
],
"keywords": []
},
"shopProm": [],
"sellCount": "10",
"reserve_price": "888",
"zk_final_price": "158",
"has_sku": "false",
"express": {
"from": "浙江杭州",
"postage": "快递: 免运费",
"freeshipping": "不包邮"
},
"seller": {
"userId": "695924102",
"shopId": "66293913",
"shopName": "辰墨家",
"shopUrl": "tmall://page.tm/shop?item_id=573853907998&shopId=66293913",
"taoShopUrl": "//shop.m.taobao.com/shop/shop_index.htm?user_id=695924102&item_id=573853907998",
"shopIcon": "//img.alicdn.com/imgextra//15/63/TB1SCyOKCzqK1RjSZFjSuvlCFXa.jpg",
"fans": "2.7万",
"certIcon": "//gw.alicdn.com/tfs/TB1zgzmlZLJ8KJjy0FnXXcFDpXa-171-148.png",
"certText": "金牌卖家",
"isShowCertIcon": true,
"allItemCount": "121",
"showShopLinkIcon": false,
"shopCard": "本店共121件宝贝在热卖",
"sellerType": "C",
"shopType": "C",
"evaluates": [
{
"title": "宝贝描述",
"score": "4.7 ",
"type": "desc",
"level": "-1",
"levelText": "低",
"levelTextColor": "#23D2BD",
"levelBackgroundColor": "#D8FFFA",
"tmallLevelTextColor": "#23D2BD",
"tmallLevelBackgroundColor": "#D8FFFA"
},
{
"title": "卖家服务",
"score": "4.8 ",
"type": "serv",
"level": "0",
"levelText": "平",
"levelTextColor": "#999999",
"levelBackgroundColor": "#EEEEEE",
"tmallLevelTextColor": "#FF0036",
"tmallLevelBackgroundColor": "#FFF1EB"
},
{
"title": "物流服务",
"score": "4.8 ",
"type": "post",
"level": "0",
"levelText": "平",
"levelTextColor": "#999999",
"levelBackgroundColor": "#EEEEEE",
"tmallLevelTextColor": "#FF0036",
"tmallLevelBackgroundColor": "#FFF1EB"
}
],
"sellerNick": "麟主流",
"creditLevel": "13",
"creditLevelIcon": "//gw.alicdn.com/tfs/TB1Bw2CixrI8KJjy0FpXXb5hVXa-132-24.png",
"starts": "2011-04-20 13:06:24",
"goodRatePercentage": "98.77%",
"fbt2User": "麟主流",
"simpleShopDOStatus": "1"
},
"video": []
}
}