很多电商系统,如返利系统、ERP、OMS软件等,需要通过商品API接口获取商品详情信息,来满足业务场景需要。具体包括:商品的标题、价格、SKU、主图、评价等维度信息。
重点优化了抓取速度、及抓取稳定性,接口REST方式进行调用,支持Java、php、python等主流编程语言。
接口测试地址:URL: https://xxx/api/product/info
请求方式:GET
HEADER示例:
RESPONSE返回数据一览:
{
"msg": "success",
"code": 0,
"data": {
"seller": {
"shopCard": "本店共38件宝贝在热卖",
"shopName": "恒捷电器旗舰店",
"evaluates": [
{
"score": "4.9 ",
"tmallLevelTextColor": "#999999",
"level": "1",
"levelText": "高",
"levelBackgroundColor": "#EEEEEE",
"levelTextColor": "#999999",
"title": "宝贝描述",
"type": "desc",
"tmallLevelBackgroundColor": "#EEEEEE"
},
{
"score": "4.9 ",
"tmallLevelTextColor": "#999999",
"level": "1",
"levelText": "高",
"levelBackgroundColor": "#EEEEEE",
"levelTextColor": "#999999",
"title": "卖家服务",
"type": "serv",
"tmallLevelBackgroundColor": "#EEEEEE"
},
{
"score": "4.9 ",
"tmallLevelTextColor": "#999999",
"level": "1",
"levelText": "高",
"levelBackgroundColor": "#EEEEEE",
"levelTextColor": "#999999",
"title": "物流服务",
"type": "post",
"tmallLevelBackgroundColor": "#EEEEEE"
}
],
"entranceList": [
{
"borderColor": "#FF5000",
"backgroundColor": "#ffffff",
"action": [
{
"params": {
"url": "//shop.m.taobao.com/shop/shop_index.htm?user_id=2217180559&item_id=528156979604¤tClickTime=-1"
},
"key": "open_url"
},
{
"params": {
"trackParams": {
"spm": "a.2141.7631564.shoppage"
},
"trackName": "Button-NewShopcard-ShopPage"
},
"key": "user_track"
}
],
"text": "进店逛逛",
"textColor": "#FF5000"
},
{
"borderColor": "#FF5000",
"backgroundColor": "#ffffff",
"action": [
{
"params": {
"url": "//shop.m.taobao.com/shop/shop_index.htm?user_id=2217180559&item_id=528156979604&shop_navi=allitems"
},
"key": "open_url"
},
{
"params": {
"trackParams": {
"spm": "a.2141.7631564.allitem"
},
"trackName": "Button-NewShopcard-AllItem"
},
"key": "user_track"
}
],
"text": "全部宝贝",
"textColor": "#FF5000"
}
],
"showShopLinkIcon": false,
"simpleShopDOStatus": "1",
"fbt2User": "恒捷电器旗舰店",
"taoShopUrl": "//shop.m.taobao.com/shop/shop_index.htm?user_id=2217180559&item_id=528156979604",
"creditLevel": "14",
"evaluates2": [
{
"score": "4.9 ",
"titleColor": "#999999",
"level": "1",
"scoreTextColor": "#999999",
"levelText": "高",
"levelTextColor": "#FF7333",
"title": "宝贝描述",
"type": "desc"
},
{
"score": "4.9 ",
"titleColor": "#999999",
"level": "1",
"scoreTextColor": "#999999",
"levelText": "高",
"levelTextColor": "#FF7333",
"title": "卖家服务",
"type": "serv"
},
{
"score": "4.9 ",
"titleColor": "#999999",
"level": "1",
"scoreTextColor": "#999999",
"levelText": "高",
"levelTextColor": "#FF7333",
"title": "物流服务",
"type": "post"
}
],
"allItemCount": "38",
"creditLevelIcon": "//gw.alicdn.com/tfs/TB1QoJUIwmTBuNjy1XbXXaMrVXa-84-36.png?getAvatar=avatar",
"atmosphereColor": "#ffffff",
"shopId": "113293884",
"starts": "2014-09-03 15:14:47",
"brandIconRatio": "7.3",
"sellerNick": "恒捷电器旗舰店",
"goodRatePercentage": "100.00%",
"shopIcon": "//img.alicdn.com/imgextra//77/46/TB1F5bIGXXXXXbGXXXXSutbFXXX.jpg",
"shopUrl": "tmall://page.tm/shop?item_id=528156979604&shopId=113293884",
"userId": "2217180559",
"brandIcon": "//gw.alicdn.com/tfs/TB1pHLqjbH1gK0jSZFwXXc7aXXa-368-52.png?getAvatar=avatar",
"shopVersion": "0",
"fans": "1.3万",
"atmophereMask": false,
"shopType": "B",
"sellerType": "B",
"shopTextColor": "#111111"
},
"propsCut": "对讲机配件品牌 对讲机配件类型 售后服务 ",
"item": {
"images": [
"//img.alicdn.com/imgextra/i2/2217180559/O1CN01ZriE9L1G04726E4AC_!!2217180559.jpg",
"//img.alicdn.com/imgextra/i1/2217180559/O1CN015LxfOx1G040tZWsNh_!!2217180559.jpg",
"//img.alicdn.com/imgextra/i2/2217180559/O1CN01UPQfhB1G046no2Hj5_!!2217180559.jpg",
"//img.alicdn.com/imgextra/i1/2217180559/O1CN01yitRqV1G046kE9ZNr_!!2217180559.jpg",
"//img.alicdn.com/imgextra/i4/2217180559/O1CN01MBC26O1G03vsdRw7A_!!2217180559.jpg"
],
"tmallDescUrl": "//mdetail.tmall.com/templates/pages/desc?id=528156979604",
"moduleDescUrl": "//hws.m.taobao.com/d/modulet/v5/WItemMouldDesc.do?id=528156979604&f=icoss20761659618e6d7ca6b1188ee2",
"favcount": "25708",
"countMultiple": [],
"cartUrl": "https://h5.m.taobao.com/awp/base/cart.htm",
"exParams": {},
"title": "对讲讲机耳机耳麦电话机对机讲耳机线 通用型高档耳挂式小机耳线",
"openDecoration": false,
"rootCategoryId": "50012100",
"commentCount": "17935",
"itemId": "528156979604",
"moduleDescParams": {
"f": "desc/icoss20761659618e6d7ca6b1188ee2",
"id": "528156979604"
},
"brandValueId": "11133538",
"subtitle": "6种通用接头 急速发货",
"taobaoDescUrl": "//market.m.taobao.com/app/detail-project/desc/index.html?id=528156979604&descVersion=7.0&type=0&f=desc/icoss20761659618e6d7ca6b1188ee2&sellerType=B",
"h5moduleDescUrl": "//mdetail.tmall.com/templates/pages/itemDesc?id=528156979604",
"taobaoPcDescUrl": "//market.m.taobao.com/app/detail-project/desc/index.html?id=528156979604&descVersion=6.0&type=1&f=icoss1988161618b9f8e30e9b51cca3&sellerType=B",
"categoryId": "50012955"
},
"debug": {
"app": "alidetail",
"host": "detail033060155114.center.na620@33.60.155.114"
},
"resource": {
"entrances": {
"askAll": {
"icon": "https://img.alicdn.com/tps/TB1tVU6PpXXXXXFaXXXXXXXXXXX-102-60.png",
"link": "https://web.m.taobao.com/app/mtb/ask-everyone/list?pha=true&disableNav=YES&refId=528156979604",
"text": "\"耳机质量可以用多久,店家勿回\""
}
}
},
"vertical": {
"askAll": {
"showNum": "2",
"askIcon": "https://img.alicdn.com/tps/TB1tVU6PpXXXXXFaXXXXXXXXXXX-102-60.png",
"askText": "耳机质量可以用多久,店家勿回",
"modelList": [
{
"askText": "耳机质量可以用多久,店家勿回",
"answerCountText": "5个回答",
"firstAnswer": "挺久的"
},
{
"askText": "听的清楚吗?可以买不?对讲机用",
"answerCountText": "11个回答",
"firstAnswer": "可以呀\n可以呀"
}
],
"answerText": "挺久的",
"questNum": "68",
"linkUrl": "https://web.m.taobao.com/app/mtb/ask-everyone/list?pha=true&disableNav=YES&refId=528156979604",
"model4XList": [
{
"askIcon": "//gw.alicdn.com/tfs/TB1lneilZLJ8KJjy0FnXXcFDpXa-36-36.png",
"askText": "耳机质量可以用多久,店家勿回",
"askTextColor": "#162B36",
"answerCountText": "5个回答"
},
{
"askIcon": "//gw.alicdn.com/tfs/TB1lneilZLJ8KJjy0FnXXcFDpXa-36-36.png",
"askText": "听的清楚吗?可以买不?对讲机用",
"askTextColor": "#162B36",
"answerCountText": "11个回答"
}
],
"title": "问大家(68)",
"answerIcon": "https://img.alicdn.com/tps/TB1Z7c2LXXXXXXmaXXXXXXXXXXX-132-42.png"
}
},
"params": {
"trackParams": {
"brandId": "11133538",
"BC_type": "B",
"categoryId": "50012955"
}
},
"apiStack": [
{
"name": "esi",
"value": "{\"feature\":{\"makeup\":\"false\",\"isVirtualRechargeItem\":\"false\",\"isDonateItem\":\"false\",\"bSeller\":\"true\",\"useMeiLiHuiPrice\":\"false\",\"o2O\":\"false\",\"showCommonBanner\":\"false\",\"guessYouLike\":\"false\",\"isXiaXuan\":\"false\",\"isJuPinTuan\":\"false\",\"tmall2018\":\"true\",\"abNewDetailRoute\":\"false\",\"nabundleItem\":\"false\",\"hasSku\":\"false\",\"bundleItem\":\"false\",\"wygProtect\":\"true\",\"hasCartRecommend\":\"false\",\"openNewSku\":\"true\",\"hasBrandScene\":\"false\",\"fmcgRecommend\":\"false\",\"superActTime\":\"false\",\"isXinxuan\":\"false\",\"notUseVip95CardBar\":\"false\",\"hasApparelIcon\":\"false\",\"isCloudChanger\":\"false\",\"bybtForTmall\":\"true\",\"hideAsk\":\"false\",\"overSeaBuy\":\"false\",\"wygItem\":\"false\",\"hasIntervalPrice\":\"true\",\"isDamai\":\"false\",\"waitForStart\":\"false\",\"newAddress\":\"true\",\"hideSMww\":\"false\",\"useNewRate\":\"false\",\"renovation\":\"false\",\"enablePriceAttract\":\"false\",\"hasAddCartCoudan\":\"false\",\"showCuntaoTag\":\"false\",\"recommendReason\":\"false\",\"switchToOldApp\":\"false\",\"isNewShareGift\":\"false\",\"hideShopDsr\":\"false\",\"pricedCoupon\":\"false\",\"hasCoupon\":\"false\",\"buhuo\":\"false\",\"cainiaoNoramal\":\"true\",\"xinxuanRec\":\"false\",\"showSku\":\"false\",\"showShopCard\":\"false\",\"showYaoDai\":\"false\",\"useBenifitNew\":\"false\",\"isXXSale\":\"false\",\"enableDpbModule\":\"false\",\"showLiteAppRec\":\"false\",\"customSkuImage\":\"false\",\"closefindsimilar\":\"true\",\"showTmallApp\":\"false\",\"hasNewCombo\":\"true\",\"noShareGroup\":\"true\",\"enableBusiness2020\":\"true\",\"showSkuProRate\":\"false\",\"hasAddTmallCartCoudan\":\"false\",\"multistage\":\"false\",\"hasQualification\":\"false\",\"isTspace\":\"false\",\"tmallAskAll\":\"true\",\"series\":\"false\",\"isTTSale\":\"false\",\"hideDsrNew\":\"false\",\"shareGroup\":\"false\",\"showSMww\":\"false\",\"smSpeBottomBar\":\"false\",\"isShopVipMember\":\"false\",\"includeSkuData\":\"true\"},\"trade\":{\"buyEnable\":\"true\",\"cartParam\":{\"areaId\":\"320500\"},\"cartConfirmEnable\":\"true\",\"outerCartParam\":{},\"tradeParams\":{},\"cartEnable\":\"true\",\"isWap\":\"false\",\"useWap\":\"false\",\"cartJumpUrl\":\"https://h5.m.taobao.com/awp/base/cart.htm\",\"buyParam\":{\"areaId\":\"320500\"}},\"item\":{\"extraMap\":{},\"sellCount\":\"1万+\",\"vagueSellCount\":\"1万+\",\"itemPoint\":\"4\",\"descType\":\"2\",\"infoText\":{},\"containerDimension\":\"1:1\",\"spuId\":\"0\",\"itemId\":\"528156979604\",\"title\":\"对讲讲机耳机耳麦电话机对机讲耳机线 通用型高档耳挂式小机耳线\"},\"h5DegradeReasonData\":{},\"buyer\":{\"tmallMemberLevel\":\"0\"},\"price\":{\"priceTag\":[{\"text\":\"专属优惠\",\"bigmarkdownTag\":\"false\"}],\"newExtraPrices\":[{\"priceText\":\"12\",\"priceTitle\":\"价格\",\"showTitle\":\"true\",\"lineThrough\":\"true\",\"sugProm\":\"false\"}],\"extraPrices\":[{\"priceText\":\"12\",\"priceTitle\":\"价格\",\"showTitle\":\"true\",\"lineThrough\":\"true\",\"sugProm\":\"false\"}],\"transmitPrice\":{\"priceText\":\"8.8\",\"sugProm\":\"false\"},\"shopPromTitle\":\"促销\",\"superMarketShopProm\":[],\"price\":{\"priceText\":\"8.8\",\"sugProm\":\"false\"}},\"consumerProtection\":{\"passValue\":\"none\",\"serviceProtection\":{\"basicService\":{\"id\":\"204\",\"name\":\"基础保障\",\"services\":[{\"serviceId\":\"3838\",\"name\":\"假一赔四\",\"desc\":[\"正品保障,假一赔四\"],\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa-54-54.png\",\"priority\":\"12900\"},{\"serviceId\":\"3851\",\"name\":\"退货运费险\",\"desc\":[\"卖家投保退货运费险,负担一定金额退货运费(保单生效以下单显示为准)\"],\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa-54-54.png\",\"priority\":\"6580\"},{\"serviceId\":\"2979\",\"name\":\"极速退款\",\"desc\":[\"满足相应条件时,诚信用户在退货寄出后,享受极速退款到账\"],\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa-54-54.png\",\"priority\":\"6505\"},{\"serviceId\":\"6556\",\"name\":\"七天无理由退换\",\"desc\":[\"满足相应条件(有使用痕迹不支持)时,消费者可申请“七天无理由退换货”\"],\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa-54-54.png\",\"priority\":\"5130\"}]}},\"items\":[{\"serviceId\":\"3838\",\"title\":\"假一赔四\",\"desc\":\"正品保障,假一赔四\",\"type\":\"0\",\"priority\":\"12900\"},{\"serviceId\":\"3851\",\"title\":\"退货运费险\",\"desc\":\"卖家投保退货运费险,负担一定金额退货运费(保单生效以下单显示为准)\",\"type\":\"0\",\"priority\":\"6580\"},{\"serviceId\":\"2979\",\"title\":\"极速退款\",\"desc\":\"满足相应条件时,诚信用户在退货寄出后,享受极速退款到账\",\"type\":\"0\",\"priority\":\"6505\"},{\"serviceId\":\"6556\",\"title\":\"七天无理由退换\",\"desc\":\"满足相应条件(有使用痕迹不支持)时,消费者可申请“七天无理由退换货”\",\"type\":\"0\",\"priority\":\"5130\"}],\"params\":\"204:3838,3851,2979,6556\",\"strength\":\"normal\"},\"resource\":{\"indexCouponData\":{},\"entrances\":{},\"entrancesBizsContent\":\"\",\"promsCalcInfo\":{\"cheapestMoney\":\"0\",\"hasCoupon\":\"false\",\"needReqCouDan\":\"false\"},\"floatView\":{}},\"priceAttractData\":{},\"vertical\":{\"askAll\":{\"askIcon\":\"https://img.alicdn.com/tps/TB1tVU6PpXXXXXFaXXXXXXXXXXX-102-60.png\",\"askText\":\"耳机质量可以用多久,店家勿回\",\"answerText\":\"挺久的\",\"answerIcon\":\"https://img.alicdn.com/tps/TB1Z7c2LXXXXXXmaXXXXXXXXXXX-132-42.png\",\"showNum\":\"2\",\"questNum\":\"68\",\"linkUrl\":\"https://web.m.taobao.com/app/mtb/ask-everyone/list?pha=true&disableNav=YES&refId=528156979604\",\"modelList\":[{\"askText\":\"耳机质量可以用多久,店家勿回\",\"answerCountText\":\"5个回答\",\"firstAnswer\":\"挺久的\"},{\"askText\":\"听的清楚吗?可以买不?对讲机用\",\"answerCountText\":\"11个回答\",\"firstAnswer\":\"可以呀\\n可以呀\"}],\"title\":\"问大家(68)\"},\"freshFood\":{\"nationalFlag\":\"//g.alicdn.com/mui/flag-img/circle@2x/CN.png\"},\"tmallLeaseData\":{\"rentOfficialPriceFen\":\"0\",\"rentGuaranteePriceFen\":\"0\",\"zhiMaSigned\":\"false\"},\"degrade\":\"Sugar\"},\"delivery\":{\"completedTo\":\"苏州市\",\"overseaContraBandFlag\":\"false\",\"postage\":\"快递: 免运费\",\"to\":\"苏州市\",\"areaSell\":\"false\",\"areaId\":\"320500\",\"from\":\"福建泉州\",\"extras\":{}},\"skuCore\":{\"skuItem\":{\"showAddress\":\"false\",\"hideQuantity\":\"false\",\"location\":\"苏州市\"},\"sku2info\":{\"0\":{\"price\":{\"priceMoney\":\"880\",\"priceText\":\"8.8\",\"showTitle\":\"false\",\"sugProm\":\"false\"},\"quantity\":\"6026\"}},\"abSwitch\":{\"enableShowPic\":\"false\",\"enableShowProtection\":\"false\"},\"atmosphere\":{}},\"promotionFloatingData\":{\"detailPromotionTimeDO\":{\"promotionType\":\"NLORMAL\"},\"skuMoney\":{\"skuId\":\"0\",\"cent\":\"880\"},\"buyEnable\":\"true\"},\"skuVertical\":{},\"weappData\":{\"wapComboId01\":{\"params\":{\"jumpUrl\":\"https://h5.m.taobao.com/cm/collocation.html?itemId=528156979604&sellerId=2217180559&type=taobao\"},\"mtopModel\":{\"API_NAME\":\"mtop.collocation.detail.query\",\"VERSION\":\"1.0\"}}},\"params\":{\"trackParams\":{\"traceId\":\"2133c05b16351482014965040e3f4c\",\"promotionType\":\"richang\",\"serverAbTest\":\"detail_main_video_test_base\",\"shop_id\":\"113293884\",\"itemId\":\"528156979604\",\"detailabtestdetail\":\"159515_24786\",\"picRouteInfo\":\"picUrl::O1CN01ZriE9L1G04726E4AC_!!2217180559.jpg&original::1&picType::p11&channel::detail-item&biz::common&itemId::528156979604\",\"price1\":\"8.80\",\"skuId\":\"0\"},\"umbParams\":{\"aliBizName\":\"YWxpLmNoaW5hLnRtYWxs\",\"detail_categoryid\":\"50012100.50012135.50012955\",\"aliBizCode\":\"ali.china.tmall\"}},\"diversion\":{},\"otherInfo\":{\"bucketId\":\"0\",\"systemTime\":\"1635148201619\"},\"layout\":{},\"modules\":[],\"debug\":{\"type\":\"B\",\"status\":\"callback_success\",\"from\":\"malldetailskip\",\"construct\":\"malldetailskipdata\",\"version\":\"tcloud\"}}"
}
],
"props": {
"groupProps": [
{
"基本信息": [
{
"对讲机配件品牌": "恒捷"
},
{
"对讲机配件类型": "对讲机配件"
},
{
"售后服务": "店铺三包"
}
]
}
]
},
"mockData": "{\"delivery\":{},\"trade\":{\"buyEnable\":true,\"cartEnable\":true},\"feature\":{},\"price\":{\"price\":{\"priceText\":\"12.00\"}},\"skuCore\":{\"sku2info\":{\"0\":{\"price\":{\"priceMoney\":1200,\"priceText\":\"12.00\",\"priceTitle\":\"价格\"},\"quantity\":100}},\"skuItem\":{\"hideQuantity\":true}}}",
"rate": {
"keywords": [
{
"count": "17",
"attribute": "20021019-11",
"type": "1",
"word": "耳机线耐用"
},
{
"count": "55",
"attribute": "20161007-11",
"type": "1",
"word": "通话声音清晰"
},
{
"count": "193",
"attribute": "20161013-11",
"type": "1",
"word": "没有噪音"
},
{
"count": "3",
"attribute": "20171000-11",
"type": "1",
"word": "有小赠品"
},
{
"count": "4",
"attribute": "20241003-11",
"type": "1",
"word": "逼格太高了"
},
{
"count": "2",
"attribute": "20161013-13",
"type": "-1",
"word": "有噪音"
}
],
"rateList": [
{
"dateTime": "2021-10-08",
"feedId": "1151453139551",
"memberLevel": "9",
"createTimeInterval": "16天前",
"blackCardUserUrl": "//img.alicdn.com/tfs/TB1wrG1elv0gK0jSZKbXXbK2FXa-225-96.png",
"userName": "s**l",
"headPic": "//gtms03.alicdn.com/tps/i3/TB1yeWeIFXXXXX5XFXXuAZJYXXX-210-210.png_80x80.jpg",
"content": "做工质量不错,特别结实耐用!音效没得毛病,就是一开始搞了个乌龙,员工拿了之前坏的一台的对讲机插耳机怎么用都不行,呼不出去,也说不了话,还以为耳机问题,还把客服骂了一顿,全程客服一直很耐心的回复解答以及处理,换多台对讲机都可以使用,才发现员工拿的是坏的对讲机,搞得我多不好意思,总的来说效果挺好的!没得挑!戴耳朵上也是感觉很舒服,质量很耐用! ",
"isVip": "true",
"tmallMemberLevel": "3"
},
{
"dateTime": "2021-10-20",
"feedId": "1152909891721",
"memberLevel": "8",
"createTimeInterval": "5天前",
"userName": "t**2",
"headPic": "//wwc.alicdn.com/avatar/getAvatar.do?userIdStr=vGNuOHcWv88YXF-HPmvbM07HvG8SvFI0Xm7Hvm80MkxSXFkGMCQSPkQyXHQbXmIG&width=40&height=40&type=sns",
"content": "音质不错,物美价廉,而且一年内坏了换新的质量不好绝对不敢这样说,很满意的一次购物体验。收到货后打开一看外观感受挺不错的。然后戴着着也舒服,最主要的是音.质好,没让我失望,好久终于下手了,因为我太心急想看看耳机,所以忘记照包装的相片了,音质很好,戴着耳朵也不会疼!用一段时间估计会再入手。便宜又好用! ",
"isVip": "true",
"tmallMemberLevel": "3"
}
],
"utFeedId": "1151453139551_1152909891721",
"invite": {
"showInvite": "false",
"inviteText": ""
},
"totalCount": "17935"
},
"props2": {},
"skuBase": {}
},
"state": true
}