当前位置:首页 > 开店经验 > 淘宝开店

淘宝库存接口如何获取

关注:21 发布时间:2022-01-17 09:12:01

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" 并无其他信息。 "//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/t1eqa5fpvgxxceop_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": { }

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

淘宝库存接口

获取到请求地址 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/t1eqa5fpvgxxceop_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": { }

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

淘宝库存接口

猜你喜欢

  • 淘宝关键词的来源有哪些

    淘宝关键词的来源有哪些22人支持

    第一种:在淘宝网首页输入你所在类目的相关关键词;第二种:在淘宝搜索框输入关键词的时候会出现下拉框,下面的关键词也可以作为参考;第三种:top.taobao.com这个是淘宝搜索排行榜,这里可以从各类目的完整榜单中寻找对自己有价值的关键词。第四种:进入卖家中心…

  • 如何快速赚淘金币

    如何快速赚淘金币27人支持

    1.首先,需要告诉大家的是,淘金币在你的淘宝网的登录界面就会有提醒,手机可以登录领取,电脑也可以再领取,两者不冲突。淘宝界面登录后,点击去领取淘金币。2.首先是电脑签到,签到后会增加淘金币,点击赚更多金币,进入新的界面,点击最上方的“我的淘金币”,进入资产…

  • 淘宝买的商品不保修怎么办

    淘宝买的商品不保修怎么办11人支持

    在淘宝买普通商品如生活用品纸巾水杯等都是不保修的,但如家用电器,数码商品等都会有一定的保修期,只要在保修期内出现问题你都可以和商家进行沟通保修。当然,如果你的商品过了保修期,那是不能保修的。如果商品不保修了,你可以联系卖家看要怎么进行处理,一般…

  • 苏宁2021双11活动有哪些

    苏宁2021双11活动有哪些100人支持

    一、苏宁双十一活动10月20日-31日好货预售最高直降2000元,定金10倍翻,还有买1送1优惠11月1日独一无二日,嗨购开启;11月2日-9日品类嗨购日,天天有惊喜;11月10日-12日o2o购物节爆发,尖货不止5折。二、活动折扣1、冰箱洗衣机预交定金最高抵1000元,电视家影预…

  • 马云王健林大赌局:电商pk实体

    马云王健林大赌局:电商pk实体73人支持

    4年前,马云一句:“电商不可能完全取代零售行业,同时也告诉你一个坏消息,它会基本取代你们!”语惊四座,让所有参加2012年cctv经济年度人物颁奖盛典上的人员大感不解,马云当时态度之傲慢、语气之强硬,仿佛若有所指。当时与马云同台的还有中国首富王健林。作为…

  • 淘宝提供哪些店内营销工具

    淘宝提供哪些店内营销工具31人支持

    免费的有优惠券、店铺红包、淘宝拼团、淘宝心选、天天特价和淘金币等。另外有指数、量子恒道、江湖策、生意参谋和橱窗等。有什么功能?1、除特殊商品(充值类、酒店类、医药类、票务类等)以外,其他类目的商品卖家均可对其进行打折销售,买家购买直接按照…

  • 宝贝利益点是什么意思

    宝贝利益点是什么意思90人支持

    一、什么是宝贝利益点?宝贝利益点意思就是购买该产品能够给买家带来什么额外的好处,比如厂家直销,0利润,或者前100名购买赠送雨伞等等,通俗点说利益点就是客户能得到的优惠,比如在本店购物满400元立减50,并包邮;或者买3样打八折,这个就是利益点。利益点只是…

  • 淘宝店铺怎么增加权重

    淘宝店铺怎么增加权重78人支持

    一、注意活动价格和活动方式拉回混乱的标签。我们可以通过生意参谋,选择流量,到访客分析中可以看到消费层级。图中的消费层级占比最高的为0-50元的层级上的,如果我们产品的定价在这个消费层级内,那就说明我们店铺的标签与人群标签一致,相反如果我们店铺本…

  • 造成跨境电商物流成本高的原因有哪些

    造成跨境电商物流成本高的原因有哪些47人支持

    1、低周转率低周转率导致存货成本攀高,远高于发达国家的水平。为谁生产、何时生产、何时实现货物的交割依然是企业需要关注度的头等大事。我国物流管理费用偏高,一般发达国家为5%,我国高出一倍还要多,这表明在管理体制、机制等诸多方面仍存在需要完善和…

  • ebay跨境电商怎么做

    ebay跨境电商怎么做49人支持

    1、首先应该选择自己合适的平台ebay中国官网,是国际贸易全球门户网,ebay致力于为中国商家开辟海外网络直销渠道,免费注册,直面3.8亿海外买家,零门槛轻松创业!对于想要做跨境电商的亲们来说是个很好的起点。当然个人能力过硬的话,可以同时运营多个平台或者…

  • 闲鱼买家不确认收货的解决方法是什么

    闲鱼买家不确认收货的解决方法是什么25人支持

    用户可以通过闲鱼将自己闲置余下的物品发布看看是否有人需要,最重要的是它支持支付宝交易,让用户不用开店就能轻松在网上出售物品。自己不需要的二手物品都可以拿到闲鱼来卖,总比丢了好,即清理了衣柜还赚了钱。那么闲鱼买家不确认收货怎么办?闲鱼买家不…

  • 新开淘宝店铺能改名字吗

    新开淘宝店铺能改名字吗15人支持

    那么接下来,我们就来看看如何更改你的淘宝店铺名。第一步:淘宝卖家在浏览器打宝网网址进入淘宝网首页,点击页面右上角“卖家中心”,输入淘宝账号和密码;第二步:登录成功后,卖家进入淘宝网卖家中心,在左侧菜单栏中找到“店铺管理-店铺基本设置”,或者点击页面…