最新淘宝商品销量接口API(精准总销月销)

        商品销量是直接评判卖得好不好的依据,也是计算销售额的基础。自己店铺的商品,销售情况在后台当然能够看得到,但竟店、品牌以及行业的数据要看就麻烦了。相信很多企业、商家甚至是个人都会有这样的需求,本文就分享下商品销量的采集方法。

PC端

Chrome随便打开一个商品,可以看到页面上显示了月销量,一定要登录才能看到哦。

 然后直接F12打开开发者工具,搜索3509,出来的有很多,筛选下就能找到正确的接口。能不能快速找到就看个人经验了,主要就搜索相关关键词,老司机很快都能找到的。

 没错,就是这个接口了

请求头:

https://detailskip.taobao.com/service/getData/1/p1/item/detail/sib.htm?itemId=573678898150&sellerId=3969446167&modules=dynStock,qrcode,viewer,price,duty,xmpPromotion,delivery,upp,activity,fqg,zjys,couponActivity,soldQuantity,page,originalPrice,tradeContract&callback=onSibRequestSuccess

响应数据:

onSibRequestSuccess({"code":{"code":0,"message":"SUCCESS"},"data":{"viewer":{"admin":false,"bs":"149","buyDomain":"buy.taobao.com","buyerId":"755832606","cartDomain":"cart.taobao.com","cc":false,"countryCode":"CN","ctUser":false,"lgin":true,"serviceTab":"ITEM","tkn":"97b36ee76e0b"},"deliveryFee":{"data":{"areaId":330109,"areaName":"\u6D59\u6C5F\u676D\u5DDE\u8427\u5C71\u533A","sendCity":"\u6D59\u6C5F\u91D1\u534E","serviceInfo":{"sku":{"3931588103184":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"4760161323126":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708220":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708221":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708222":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708223":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708224":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708225":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3936973055769":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708226":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708227":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708228":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708229":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"default":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"4416136758870":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"4310586218759":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"4464222204758":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708230":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708231":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708232":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708233":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708234":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708235":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708238":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"4464222204757":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708239":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708218":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3743723708219":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"4328374144896":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}],"3924267871090":[{"id":"100_-4","info":"\u5FEB\u9012 \u514D\u8FD0\u8D39","isDefault":true,"markInfo":"\u73B0\u8D27 \u4ED8\u6B3E\u540E48\u5C0F\u65F6\u5185\u53D1\u8D27\uFF0C\u9884\u8BA111\u670822\u65E5\u9001\u8FBE"}]}}},"dataUrl":"\/\/detailskip.taobao.com\/json\/deliveryFee.htm","message":"ok","success":true},"originalPrice":{";1627207:28334;":{"price":"5.01"},";1627207:80557;":{"price":"5.01"},";1627207:28326;":{"price":"5.01"},"def":{"price":"5.01"},";1627207:28320;":{"price":"5.01"},";1627207:80882;":{"price":"5.01"},";1627207:4918587664;":{"price":"5.01"},";1627207:3232479;":{"price":"5.01"},";1627207:21178725;":{"price":"5.01"},";1627207:15409374;":{"price":"5.01"},";1627207:7447408;":{"price":"5.01"},";1627207:39491616;":{"price":"5.01"},";1627207:3232483;":{"price":"5.01"},";1627207:20412615;":{"price":"5.01"},";1627207:5483105;":{"price":"5.01"},";1627207:12367710720;":{"price":"5.01"},";1627207:28341;":{"price":"5.01"},";1627207:3594022;":{"price":"5.01"},";1627207:3883690;":{"price":"5.01"},";1627207:3232484;":{"price":"5.01"},";1627207:6535235;":{"price":"5.01"},";1627207:90554;":{"price":"5.01"},";1627207:3232480;":{"price":"5.01"},";1627207:28866;":{"price":"5.01"},";1627207:3819996;":{"price":"5.01"},";1627207:52813;":{"price":"5.01"},";1627207:28327;":{"price":"5.01"},";1627207:129819;":{"price":"5.01"},";1627207:13808289;":{"price":"5.01"},";1627207:3707775;":{"price":"5.01"}},"upp":{"-2":"\u6DD8\u91D1\u5E01\u6700\u9AD8\u53EF\u62B5\u5546\u54C1\u4EF7<em class='tb-h'> 3%<\/em>","-5":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708221":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708220":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708223":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708222":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708219":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708218":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","4416136758870":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","4310586218759":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","4328374144896":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","4760161323126":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3931588103184":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3936973055769":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708229":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708228":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708231":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708230":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708225":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3924267871090":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708224":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708227":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708226":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","4464222204758":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708239":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","4464222204757":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708238":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708233":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708232":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708235":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>","3743723708234":"<em class='tb_red'><strong>15<\/strong>\u6DD8\u91D1\u5E01<\/em><em class='tb_dashes_box'> \u62B5\uFFE50.15<\/em> <em class='tb_tjb_price'>\uFFE54.85<\/em>"},"price":"5.01","tradeContract":{"pay":[{"icons":["\/\/img.alicdn.com\/tfs\/TB1KTHfQFXXXXbnXFXXXXXXXXXX-16-16.png","\/\/img.alicdn.com\/tfs\/TB1XeDvQFXXXXc5XXXXXXXXXXXX-32-32.png"],"title":"\u8682\u8681\u82B1\u5457","url":"\/\/payservice.alipay.com\/intro\/index.htm?c=hb"},{"icons":["\/\/img.alicdn.com\/tfs\/TB1w6O3QFXXXXX4aXXXXXXXXXXX-16-16.png","\/\/img.alicdn.com\/tfs\/TB1c7HAQFXXXXakXXXXXXXXXXXX-32-32.png"],"title":"\u4FE1\u7528\u5361\u652F\u4ED8","url":"\/\/payservice.alipay.com\/intro\/index.htm?c=xyk"},{"icons":["\/\/img.alicdn.com\/tfs\/TB1dvGWQFXXXXcFaXXXXXXXXXXX-16-16.png","\/\/img.alicdn.com\/tfs\/TB1FdDlQFXXXXa5XpXXXXXXXXXX-32-32.png"],"title":"\u96C6\u5206\u5B9D","url":"\/\/jf.alipay.com"}],"service":[{"desc":"\u6EE1\u8DB37\u5929\u65E0\u7406\u7531\u9000\u6362\u8D27\u7533\u8BF7\u7684\u524D\u63D0\u4E0B\uFF0C\u5305\u90AE\u5546\u54C1\u9700\u8981\u4E70\u5BB6\u627F\u62C5\u9000\u8D27\u90AE\u8D39\uFF0C\u975E\u5305\u90AE\u5546\u54C1\u9700\u8981\u4E70\u5BB6\u627F\u62C5\u53D1\u8D27\u548C\u9000\u8D27\u90AE\u8D39\u3002","icons":["\/\/img.alicdn.com\/tps\/i1\/T1EQA5FpVgXXceOP_X-16-16.jpg",null],"linkType":1,"title":"7\u5929\u65E0\u7406\u7531"}]},"dynStock":{"holdQuantity":0,"sellableQuantity":200,"sku":{";1627207:28334;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:80557;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:28326;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:28320;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:80882;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:4918587664;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:3232479;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:21178725;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:15409374;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:7447408;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:39491616;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:3232483;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:20412615;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:5483105;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:12367710720;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:28341;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:3594022;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:3883690;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:3232484;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:6535235;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:90554;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:3232480;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:28866;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:3819996;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:52813;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:28327;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:129819;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:13808289;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200},";1627207:3707775;":{"holdQuantity":0,"oversold":false,"sellableQuantity":200,"stock":200}},"stock":200,"stockType":"normal"},"qrcodeImgUrl":"\/\/gcodex.alicdn.com\/qrcode.do?biz_code=xcode&short_name=a.ZRs8&cmd=createSub&param=id:573678898150;scm:20140619.pc_detail.itemId.0","couponActivity":{"buyerHasMianxi":false,"coupon":{},"showMianxiTips":false},"promotion":{"promoData":{";1627207:28334;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:80557;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:28326;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],"def":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:28320;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:80882;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:4918587664;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:3232479;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:21178725;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:15409374;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:7447408;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:39491616;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:3232483;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:20412615;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:5483105;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:12367710720;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:28341;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:3594022;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:3883690;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:3232484;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:6535235;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:90554;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:3232480;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:28866;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:3819996;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:52813;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:28327;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:129819;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:13808289;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}],";1627207:3707775;":[{"cart":true,"loginPromotion":false,"price":"5.00","start":false,"type":"\u6D3B\u52A8\u4E2D"}]},"saleDetailMap":{}},"soldQuantity":{"soldTotalCount":"3509"}}});

既然接口找到了,那就是测试验证了,看看是不是其他商品也能用,请求的数据对不对等等,过程这里就赘述了,最后要解决两个问题:

  1. 需要登录cookie
  2. 销量会有模糊值,如500+,2000+这种

第一个问题,自己准备一些登录的cookie,或者网上买一些;只有cookie还不行,因为请求不了多少就会需要滑滑块了,还需要搞定滑块问题,获取x5sec参数,带上这个参数就可以持续请求一段时间,滑块可以自己解决或者找其他打码的。

第二个问题,通过调整相关参数来解决返回精确销量。​

App端

app端的销量数据就在详情接口里,sellCount,vagueSellCount字段。

淘特App

淘特的销量也在商品详情接口里,但只有总销量没有月销量,而且部分商品还获取不了。

其他

天猫、点淘、e淘什么的有兴趣的可以自行研究。

Python接入示例

请求:

def get_item_sold():proxy = ''app_key = '' # 需要联系作者api_id = '03252f337ac364122353eda0b02d0e20'  # 总销# api_id = '51a47c99a0eb960e3e8c791b9241fa3c'  # 月销data = dict(tids='614452582693,581732170816', proxy=proxy)t = int(time.time())params = dict(app_key=app_key, t=t, data=json.dumps(data))url = f'http://hostname:port/api/{api_id}'res = requests.get(url=url, params=params, timeout=15)print(res.text)

响应:

{"code": 1, "msg": "success", "data": [{"tid": 614452582693, "ts": 907}, {"tid": 629369723186, "ts": 441}]}

错误码:

    # 未知异常UNKNOWN_ERROR = 0# 非法签名ILLEGAL_SIGN = 201CONCURRENT_OVERRUN = 202# 应用未授权APP_UNAUTHORIZED = 301# API未授权API_UNAUTHORIZED = 302# API授权未生效API_AUTH_INEFFECTIVE = 303

交流学习或接入测试+作者Q(昵称)

如有问题请联系删除或调整

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/70961.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

【062】百度识图-以图搜图,查找图源及相似图

搜索引擎是大家日常生活经常使用的工具&#xff0c;遇到不了解的事就搜一下&#xff0c;很方便。但有时候&#xff0c;如果根本不知道要搜索的东西是什么&#xff0c;就很难去搜索。对此&#xff0c;我们可以以图搜图&#xff0c;用图片去搜索&#xff0c;解决上述难题。 地址…

以图搜图功能实现

以图搜图这个功能相当实用, 之前在实现这个功能的时候, 有一些笔记, 今天就整合成博文, 分享给大家。 这个demo主要实现的功能包括: 自定义拍照界面图像识别以图搜图信息获取(通过识别出的图像, 获取对应信息) 下面是一个简单的演示, 如下: 那么如何实现这样的功能呢? 如果自…

【Milvus的以图搜图】

0. 介绍 Milvus官方在bootcamp项目中给开发者提供多种解决方案&#xff0c;包含常见的以图搜图、人脸检索、DNA相似性检索、视频检索等等&#xff0c;具体可以参考bootcamp项目。 本文主要就bootcamp中以图搜图reverse_image_search的代码介绍如何运行该样例&#xff0c;进而了…

文心一言独立APP支持语音/ 知乎限制AI生成回答/ AMD新掌机芯片性能超NS二十倍...今日更多新鲜事在此...

日报君 发自 凹非寺量子位 | 公众号 QbitAI 大家好&#xff0c;今天是4月26日星期三&#xff0c;离五一不远了&#xff0c;大家安排好假期怎么过了吗&#xff1f; 如果不打算出门&#xff0c;也可以利用这个时间研究一下最新的AI工具。 今日科技圈新鲜事也会送上&#xff5e;‍…

波士顿动力新机器人登场!

问耕 编译整理 量子位 出品 | 公众号 QbitAI 互联网改变了现代人类生活的方方面面。 未来还能更好么&#xff1f; “互联网让人们收到世界上所有的信息&#xff0c;但是机器人技术能让人们触达和操纵世界上所有的东西。不仅仅局限于信息&#xff0c;而是一切”&#xff0c;莱伯…

服务器ip被封一般是什么情况?

在什么情况下&#xff0c;我们的网站才会有被封的概率?跟我们所选择的服务器有所关联? 使用国外云主机ip被封的几率会比国内云主机高&#xff0c;有朋友就认为使用国外云主机ip容易被封&#xff0c;其实这个观点是错误的。由于使用国外云主机不用备案&#xff0c;有不少站长…

服务器ip总是被封,怎么办?

服务器IP被封如何预防?IP被封了&#xff0c;会对网站带来影响&#xff0c;要解决这一问题&#xff0c;我们需要从预防这一步开始。下面跟大家讲讲如何操作。 1、预防流量超载   如果你的服务器流入/流出的数据过多&#xff0c;远超出已订购的服务器带宽资源&#xff0c;那么…

为什么自己的IP会被服务器封?

网络爬虫类是获取互联网大数据的主流方式&#xff0c;但在获取信息时&#xff0c;IP地址总是受到目标站点的限制。   在很多情况下&#xff0c;IP地址是网站反爬机制的依据。当我们访问网站时&#xff0c;我们的ip地址将被记录下来。   如果抓取频率高于目标网站的限制阀值…

Linux做爬虫被封IP怎么办

如果您的 Linux 爬虫被目标网站封禁了 IP 地址&#xff0c;可以考虑以下几种解决方案&#xff1a; 1、切换 IP 地址 您可以使用代理服务器或 PPTP 等工具来改变您的 IP 地址。这些工具可以模拟不同的网络位置并使您的爬虫变得更加隐蔽。例如在 Python 中&#xff0c;可以通过…

论文解读:GPT Understands, Too

论文解读&#xff1a;GPT Understands, Too 虽然GPT在传统的预训练微调方面并没有在自然语言理解任务上达到最好的效果&#xff0c; 但是当使用我们提出的P-tuning方法时&#xff0c;便可以与BERT相媲美。P-tuning是一种新的微调方法&#xff0c;其使用可训练的连续空间内的pro…

【论文阅读】GPT系列论文详解

文章目录 GPTIntroductionFrameworkUnsupervised pre-trainingSupervised fine-tuningTask-specific input transformations Experiment Language Models are Unsupervised Multitask Learners(GPT-2)AbsIntroductionApproachDataset & Model Results Language Models are …

做知识付费,这十大知识付费平台一定要知道

做知识付费&#xff0c;这十大知识付费平台一定要知道 想成为李一舟、透透堂这样通过知识付费赚钱的人&#xff0c;一定要知道下面中国排名前十大知识付费平台&#xff0c;这里面呢&#xff0c;你完全能看到各类课程是怎么制作的&#xff0c;以及怎么从0到1做一个能赚钱的课程。…

知识付费哪个领域最火?

小说要花钱才能看了&#xff0c;电影也需要会员了&#xff0c;就连音乐都需要花钱才能听了。如此种种&#xff0c;在生活中比比皆是&#xff0c;时代的进步提升了大众的版权意识&#xff0c;尊重原创。而这也意味着&#xff0c;在以后越来越多的知识内容&#xff0c;都需要通过…

知识付费网课项目靠谱吗?为什么依然有人对它有偏见

知识付费网课项目,是近几年来特别热门的一种网络赚钱方式,从操作方式来讲,适合公司,适合工作室,也适合个人,越来越多的人靠知识付费网课分销项目月入过万。 这是时代的产物,是经济发展的产物,是自然的产物,尽管如此,当提到知识付费网课项目的时候,还是很多人对它有偏…

浅谈短剧授权推广,会简单视频剪辑即可。

什么是短剧推广&#xff1f;相信很多人在短视频平台都有看到过一些账号发布的像电视剧一样的短剧&#xff0c;内容时长短&#xff0c;集数多&#xff0c;作品左下方有个按钮&#xff0c;点击进去可以看全集&#xff0c;但要看后续需要像看小说或漫画一样去充值。 短剧推广就是对…

剪映VS会声会影哪个好用,视频剪辑软件剪映会声会影之间对比之

随着网络视频的发展&#xff0c;越来越多的人开始学习视频剪辑&#xff0c;毕竟技多不压身&#xff0c;而在众多剪辑软件中&#xff0c;剪映和会声会影是很适合新手使用的软件&#xff0c;那剪映与会声会影的区别有哪些&#xff1f;剪映会声会影哪个好用&#xff1f;下面就仔细…

CapCut_v2.0 国际版本剪映

这是一款免费的多合一视频编辑应用程序。可帮助您创建令人赞叹的视频&#xff0c;专业风格滤镜&#xff0c;一键轻松美颜&#xff0c;让生活一秒变大片&#xff01; 从后台下载压缩包解压后&#xff0c;双击应用安装&#xff0c;然后根据上图勾选、同意&#xff0c;即可一键安装…

剪辑副业怎么接单?学完剪辑去哪里可以接单赚钱

我们熟悉了剪辑的流程之后呢&#xff0c;剪辑一条视频就只需要每天的两三个小时的时间。之后的项目多了话&#xff0c;还可能熟能生巧&#xff0c;进行高效率的剪辑。而根据目前市场上的价格&#xff0c;剪辑一个视频的价格在200到500之间不等。当然了&#xff0c;这种兼职的前…

OpenAI估值已达290亿美元:新一轮融资宣告完成

点击下方卡片&#xff0c;关注“CVer”公众号 AI/CV重磅干货&#xff0c;第一时间送达 点击进入—>【计算机视觉】微信技术交流群 转载自&#xff1a;机器之心 因为 ChatGPT 的发布&#xff0c;OpenAI 成为了目前最炙手可热的创业公司&#xff0c;很多投资者都希望加入光荣的…

利用Python实现作业自动批改系统

在日常的工作和生活中&#xff0c;我们经常会遇到需要抠图的场景&#xff0c;即便是只有一张图片需要抠&#xff0c;也会抠得&#xff0c;我们不耐烦&#xff0c;倘若遇到许多张图片需要抠&#xff0c;那就今天教你用Python制作一款界面化的抠图小程序吧! 正文 PS 小故事 一…