对于店铺的宝贝来说,设置淘宝库存数量也很重不要,可以在一定程度上影响到店铺的销量。比如说看到库存的数量比较的少了,很多的客户就会急着下单购买,怎么获取淘宝库存接口呢?
1)打开你的给的商品后发现库存都是个位数,立刻就去随便搜索了一个库存数稍微大一些的商品。( https://item.taobao.com/item.htm?id=531414649886 )
2)打开Fiddler发送请求。然后在Ctrl+ F搜索了某个SKU的库存 "689" 符合条件的只有个位数请求。一眼望过去,有一个域名是:" detailskip.taobao.com " 点开发现包含所有库存信息。
获取到请求地址 https://detailskip.taobao.com/service/getData/1/p2/item/detail/sib.htm?itemId=528392541802&modules=qrcode,viewer,price,contract,duty,xmpPromotion,dynStock
,delivery,upp,sellerDetail,activity,fqg,zjys,coupon&callback=onSibRequestSuccess
3)将请求中的itemId的值换成需要获取的商品ID,直接浏览器请求,返回403,确认服务器有验证,观察Fiddler中的请求,除了 "Referer" 并无其他信息。
4)请求时增加个"Referer"正常工作.到这里就全部完成了.。
额外提醒。这里并没有验证更多信息,比如说请求次数限制等问题,如果碰到可以尝试抓一下各个平台的接口测试。
需要如下代码:
header={
"referer":"https://item.taobao.com/item.htm?id=524122865207"
}
{
"code": {
"code": 0,
"message": "SUCCESS"
},
"data": {
"viewer": {
"admin": false,
"bs": "",
"buyDomain": "buy.taobao.com",
"buyerId": "",
"cartDomain": "cart.taobao.com",
"cc": false,
"ctUser": false,
"lgin": false,
"serviceTab": "ITEM",
"tkn": "eb11b76383e61"
},
"deliveryFee": {
"data": {
"areaId": 440300,
"areaName": "广东深圳",
"sendCity": "江苏南京",
"serviceInfo": {
"list": [
{
"id": "100_-4",
"info": "快递 免运费",
"isDefault": true,
"markInfo": "20小时内发货"
},
{
"id": "100_-7",
"info": "EMS ¥12.00",
"markInfo": "20小时内发货"
}
]
}
},
"dataUrl": "//detailskip.taobao.com/json/deliveryFee.htm",
"message": "ok",
"success": true
},
"activity": { },
"originalPrice": {
";1627207:1580782459;": {
"price": "13.80"
},
";1627207:1580782454;": {
"price": "13.80"
},
"def": {
"price": "13.80"
},
";1627207:1580782456;": {
"price": "13.80"
},
";1627207:1580782452;": {
"price": "13.80"
},
";1627207:1580782453;": {
"price": "13.80"
},
";1627207:1580782460;": {
"price": "13.80"
}
},
"price": "13.80",
"tradeContract": {
"pay": [
{
"icons": [
"//img.alicdn.com/tfs/TB1KTHfQFXXXXbnXFXXXXXXXXXX-16-16.png",
"//img.alicdn.com/tfs/TB1XeDvQFXXXXc5XXXXXXXXXXXX-32-32.png"
],
"title": "蚂蚁花呗",
"url": "//payservice.alipay.com/intro/index.htm?c=hb"
},
{
"icons": [
"//img.alicdn.com/tfs/TB1dvGWQFXXXXcFaXXXXXXXXXXX-16-16.png",
"//img.alicdn.com/tfs/TB1FdDlQFXXXXa5XpXXXXXXXXXX-32-32.png"
],
"title": "集分宝",
"url": "//jf.alipay.com"
}
],
"service": [
{
"desc": "8天退货,退货邮费买家承担",
"icons": [
"//img.alicdn.com/tps/i2/TB1XY_zGpXXXXbeXXXXAz6UFXXX-16-16.png",
null
],
"linkType": 1,
"title": "8天退货"
},
{
"desc": "购买该商品,每笔成交都会有相应金额捐赠给公益。感谢您的支持,愿公益的快乐伴随您每一天。",
"icons": [
"//img.alicdn.com/tfs/TB1wj5PQFXXXXX8apXXXXXXXXXX-16-16.png",
"//img.alicdn.com/tfs/TB13FrcQFXXXXaKXVXXXXXXXXXX-32-32.png"
],
"linkType": 2,
"title": "公益宝贝",
"url": "//service.taobao.com/support/knowledge-1117985.htm?spm=0.0.0.0.bOwpfZ&dkey=searchview"
}
]
},
"dynStock": {
"holdQuantity": 0,
"sellableQuantity": 10968,
"sku": {
";1627207:1580782459;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 24,
"stock": 24
},
";1627207:1580782454;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 456,
"stock": 456
},
";1627207:1580782456;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 436,
"stock": 436
},
";1627207:1580782452;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 102,
"stock": 102
},
";1627207:1580782453;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 9349,
"stock": 9349
},
";1627207:1580782460;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 601,
"stock": 601
}
},
"stock": 10968,
"stockType": "normal"
},
"qrcodeImgUrl": "//gcodex.alicdn.com/qrcode.do?biz_code=xcode&short_name=a.ZRs8&cmd=createSub¶m=id:541869292523;scm:20140619.pc_detail.itemId.0",
"couponActivity": {
"buyerHasMianxi": false,
"coupon": { },
"showMianxiTips": false
},
"soldQuantity": {
"confirmGoodsCount": 0,
"soldTotalCount": 0
},
"promotion": {
"promoData": {
";1627207:1580782459;": [
{
"cart": true,
"loginPromotion": false,
"price": "9.90",
"start": false,
"type": "店铺优惠"
}
],
"def": [
{
"cart": true,
"loginPromotion": false,
"price": "9.90",
"start": false,
"type": "店铺优惠"
}
],
";1627207:1580782454;": [
{
"cart": true,
"loginPromotion": false,
"price": "9.90",
"start": false,
"type": "店铺优惠"
}
],
";1627207:1580782456;": [
{
"cart": true,
"loginPromotion": false,
"price": "9.90",
"start": false,
"type": "店铺优惠"
}
],
";1627207:1580782452;": [
{
"cart": true,
"loginPromotion": false,
"price": "9.90",
"start": false,
"type": "店铺优惠"
}
],
";1627207:1580782453;": [
{
"cart": true,
"loginPromotion": false,
"price": "9.90",
"start": false,
"type": "店铺优惠"
}
],
";1627207:1580782460;": [
{
"cart": true,
"loginPromotion": false,
"price": "9.90",
"start": false,
"type": "店铺优惠"
}
]
},
"saleDetailMap": { }
}
}
}
{
"code": {
"code": 0,
"message": "SUCCESS"
},
"data": {
"viewer": {
"admin": false,
"bs": "",
"buyDomain": "buy.taobao.com",
"buyerId": "",
"cartDomain": "cart.taobao.com",
"cc": false,
"countryCode": "CN",
"ctUser": false,
"lgin": false,
"serviceTab": "ITEM",
"tkn": "73e34e3a76d31"
},
"deliveryFee": {
"data": {
"areaId": 440300,
"areaName": "广东深圳",
"sendCity": "江苏南京",
"serviceInfo": {
"list": [
{
"id": "100_-4",
"info": "快递 免运费",
"isDefault": true,
"markInfo": "72小时内发货"
}
]
}
},
"dataUrl": "//detailskip.taobao.com/json/deliveryFee.htm",
"message": "ok",
"success": true
},
"activity": { },
"originalPrice": {
";1627207:1580782458;": {
"price": "12.00"
},
";1627207:1580782459;": {
"price": "12.00"
},
";1627207:1580782454;": {
"price": "12.00"
},
"def": {
"price": "12.00"
},
";1627207:1580782455;": {
"price": "12.00"
},
";1627207:1580782456;": {
"price": "12.00"
},
";1627207:1580782452;": {
"price": "12.00"
},
";1627207:1580782453;": {
"price": "12.00"
},
";1627207:1580782460;": {
"price": "12.00"
}
},
"price": "12.00",
"tradeContract": {
"pay": [
{
"icons": [
"//img.alicdn.com/tfs/TB1dvGWQFXXXXcFaXXXXXXXXXXX-16-16.png",
"//img.alicdn.com/tfs/TB1FdDlQFXXXXa5XpXXXXXXXXXX-32-32.png"
],
"title": "集分宝",
"url": "//jf.alipay.com"
}
],
"service": [
{
"desc": "满足7天无理由退换货申请的前提下,包邮商品需要买家承担退货邮费,非包邮商品需要买家承担发货和退货邮费。",
"icons": [
"//img.alicdn.com/tps/i1/T1EQFpVgXXceOP_X-16-16.jpg",
null
],
"linkType": 1,
"title": "7天无理由"
}
]
},
"dynStock": {
"holdQuantity": 0,
"sellableQuantity": 12377,
"sku": {
";1627207:1580782458;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 193,
"stock": 193
},
";1627207:1580782459;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 36,
"stock": 36
},
";1627207:1580782454;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 523,
"stock": 523
},
";1627207:1580782455;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 181,
"stock": 181
},
";1627207:1580782456;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 590,
"stock": 590
},
";1627207:1580782452;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 354,
"stock": 354
},
";1627207:1580782453;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 9806,
"stock": 9806
},
";1627207:1580782460;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 694,
"stock": 694
}
},
"stock": 12377,
"stockType": "normal"
},
"qrcodeImgUrl": "//gcodex.alicdn.com/qrcode.do?biz_code=xcode&short_name=a.ZRs8&cmd=createSub¶m=id:561456069595;scm:20140619.pc_detail.itemId.0",
"couponActivity": {
"buyerHasMianxi": false,
"coupon": { },
"showMianxiTips": false
},
"soldQuantity": {
"confirmGoodsCount": 1,
"soldTotalCount": 4
},
"promotion": {
"promoData": { },
"saleDetailMap": { }
上面是开发技术员比较了解的东西,作为普通的卖家肯定是不会很理解的,总而言之,商家们在设置库存数量的时候一定要多斟酌衡量,不要去夸大其谈,也不可写的太少了,比如说只写几个等情况。
留言与评论(共有 条评论) |