淘宝卖家论坛,淘宝运营卖家开店教程,淘宝社区推广技巧方法分享,淘宝论坛经验交流平台。
网站地图
当前位置:首页 > 淘宝冲销量 > 正文

淘宝库存接口如何获取

 2019-09-10 03:22:13      阅读量:7138

对于店铺的宝贝来说,设置淘宝库存数量也很重不要,可以在一定程度上影响到店铺的销量。比如说看到库存的数量比较的少了,很多的客户就会急着下单购买,怎么获取淘宝库存接口呢?

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": { }

上面是开发技术员比较了解的东西,作为普通的卖家肯定是不会很理解的,总而言之,商家们在设置库存数量的时候一定要多斟酌衡量,不要去夸大其谈,也不可写的太少了,比如说只写几个等情况。

相关标签:
留言与评论(共有 条评论)
验证码:
热门内容
  • 淘宝双12赢金条靠谱吗

    淘宝在双12活动的时候推出了赢金条的活动,但是很多人也不知道是否靠谱?毕竟,大家也害怕上当,所以,今天,我们就来好生的讲下这个内容,对于赢今天有兴趣的朋友,就可以来看下。 赢取的...
  • 淘宝联盟20号几点提现

    淘宝联盟算是电子商务里最大最专业的营销推广方式了,很多人都会去淘宝联盟上通过分享商品来赚佣金。那么,淘宝联盟提现的时间是20号的几点?一定要在20号吗? 1.淘宝联盟必须20...
  • 淘宝联盟多久可以看到订单

    想要做好一家店铺,就需要学会进行推广,那么淘宝店铺推广的方法有很多种,比如说淘宝联盟,直通车,直播推广等等,那么在操作淘宝联盟的时候,有卖家不知道淘宝联盟多久可以看到订单?只...
  • 网店补单物流怎么弄

    补单现象为什么屡禁不止,为什么那么多商家明知道补单违法,却还是要做。商家补单其实都是为了补单、为了排名、为了转化率。那么,网店补单物流怎么搞? 有哪几种方法?1、一种是大...
  • 京东代收点怎么申请

    我们现在在网上购物了后,商家们会发货,有的时候因为不在家,所以无法及时收到快递,这个时候代收点就很重要了。接下来的内容中为大家介绍一下怎么去申请京东的代收点。 申请流程:1...
  • 淘宝复盘报告怎么写

    我国的经济水平和科学技术得到了非常迅猛的发展,推动着中国的经济领域不断的改革,,促成了电子商务的出现和发展。很多人都在淘宝创业,那么淘宝复盘报告怎么写?淘宝复盘报告怎么...
  • 抖音小店客服电话是多少

    无论是买家还是开抖音小店的卖家,在使用抖音小店的过程中可能都会遇到一些问题想要咨询一下客服,那么怎么才能联系到抖音小店的客服呢?今天我们一起来了解一下抖音小店的客服...
  • 亚马逊店铺转让后还能再开吗

    虽然现在有越来越多卖家到亚马逊开店,但是也有一些卖家是会退出亚马逊的。如果退出亚马逊,卖家是可以选择将账号转让给其他人的,这样也能让自己回一点本。那么,亚马逊店铺转让退...
  • 决胜双十二你不得不知道的6个运营重点

    一年一度的淘宝天猫盛宴双十二对很多中小卖家产生的流量效益之大不用我多说。双十二前的店铺准备工作决定了双十二的成败。那到底从哪些个方面做准备,又如何做好双十二准备呢...
  • 玩转淘宝群聊做好老客户营销促进转化不再难

    店铺新品上新时,除了微淘、朋友圈的预热之外,最不能忽视的就是店铺淘宝群聊的新品预告。什么是淘宝群?淘宝群是将在店铺购买过产品的会员以及粉丝聚集在一起在线群聊,卖家可以...
相关文章
回到顶部