对于做竟店分析来说,首先要知道店铺有哪些商品,店铺宝贝列表则提供了这样的入口,可以查看该店铺的所有宝贝,也可以通过关键词全局搜索来获取店铺宝贝,但搜索会夹带这很多推荐的结果在里面,会比较混乱。
淘宝的店铺宝贝列表,PC端是可以获取到全部的宝贝,而m端和APP端最多只返回相同查询条件下的前2000个,或者在m端和APP端进行店内搜索或更换查询条件来获取最多的宝贝数量。
我已经封装好了接口方便大量对接点击获取测试key和secret
PC端
由于PC端页面店铺是可以自己定制装修的,所以很多店铺主页都不太一样,特别是大店,根本找不到“所有宝贝”的页面入口,那该怎么办呢?有没有统一的“所有宝贝”的页面的?答案是肯定的,大平台肯定是有统一的标准的,这里分享下个人经验:
https://店铺域名/search.htm
只要吧店铺域名换上打开就会跳到“所有宝贝”页,所有店铺都通用的。有了通用的店铺宝贝列表页后,接下来就是找接口和解决风控了。
找接口的话很简单了,随便搜一下就能找到。这接口返回的是html数据,需要自己解析。
前面的都很简单,最头疼的就是风控了。这些页面都是需要登录才返回宝贝数据的,不登录啥也没有。解决登录风控根本就是堆资源:
1、准备登录的cookie,自己账号自动生产或者网上买
2、解决滑块,自己弄或者找其他打码的,如果你cookie够多也不需要
当然应该也还有不需要登录的方案,有兴趣可以自己去研究。
APP端
app端接口就比较多了,这里就分享下笔者分析的两个接口,风控都差不多,需要x-mini-wua(设备)和登录的sid
mtop.taobao.wsearch.appsearch
这个既是店铺宝贝列表接口也是搜索接口,该在早期的app版本中使用的,最近的APP版本都不用了,但没有关停,用新版的签名也还可跑。
{"api":"mtop.taobao.wsearch.appsearch","data":{"_cost":157.512663,"pageTraceArgs":[{"value":"{\"for_bts\":\"newproduct_fe_1:6242;health_rerank:437130;ifashion_tab_fe:546012;tb_sug_rank:25832;tpp_search_app:17251;oversea_flow:433015;inshop_for_tpp:434767;inshop_wireless_adapt:5522;search_growth_outside:17105;navigation_kg:50013;tmall_tab_bucket:5545;magellan:716503;JK95:36181;newSearch:6445020;spl_suggest:97817;sophon_card_hs:565518;tpp_search_ab:198231;shop_combo:29019;search_growth_drop_down:21025;shopsearch_price_optimization:428417;pk_exp:35507;tpp_search_bucketId:1\",\"list_param\":\"_12_5cbbbd871f37268871bd79079a648127\"}","key":"utparam-cnt"}],"pageSize":"10","bucketId":"12","sessionid":"22f46fba5ac4eb54b91aaa17348b341b","pageName":"InShopSrp","tpp_trace":"2147b44716616797056854871e2b79","tpp_buckets":"17251#0#198231#0","totalResults":"2564","abtest":"12","pvid":"82bd3a5a-43e2-4e63-a347-c266d6e3afa3","sortMenu":{"showStyle":"true","showFilter":"false","sortBar":[{"trace":"Sort_Colligate","showText":"综合","type":"normal","selected":"true","paramValue":"_coefp"},{"trace":"Sort_Sale","showText":"销量","type":"normal","selected":"false","paramValue":"_sale"},{"trace":"NewItems","showText":"新品","type":"normal","selected":"false","paramValue":"first_new"},{"showText":"价格","type":"toggle","subSort":[{"trace":"Sort_Asc","showText":"价格","selected":"false","paramValue":"bid"},{"trace":"Sort_Desc","showText":"价格","selected":"false","paramValue":"_bid"}],"selected":"false"}]},"parameter":"q","pageTraceName":"Page_SearchItemList-InShopSrp","scm":"1007.27251.198231.0","paramValue":"","tabName":"新品","totalPage":"200","_host":"hippo.33.69.212.97.na63","version":1.0,"isJiaGou":true,"mainCategory":"30","order_by":"_coefp","style":"wf","page":"1","RN":"5cbbbd871f37268871bd79079a648127","itemsArray":[{"clickUrl":"","priceWap":"99.00","priceWithRate":"99.00","clickTrace":"query:;nid:632537905537;cat_id:;seller_id:196993935;seller_type:1;src:inshop;recType:;rn:5cbbbd871f37268871bd79079a648127;c_flag:false;client:wireless_other;sp_rank_features:vv%3A2.8249621391296387E-4%3Bvw%3A0.06445205211639404%3Bua%3A0.0%3Bub%3A0.0%3Bud%3A0.0%3Bue%3A0.0%3Buf%3A0.0%3Bug%3A3378.0%3Buh%3A0.0%3Bui%3A385.0%3Brqs%3A0.0%3Buj%3A0.0%3Bun%3A0.0%3Bi2i%3A0.0%3Bi2i2%3A4740.0%3Bxa%3A0.0018025386380031705%3Bis%3A0.0%3Bxb%3A1.8207460016128607E-5%3Bxc%3A-8.171845436096191%3Bvb%3A0.005620092153549194%3Bxd%3A-2.7418336868286133%3Bu2i%3A0.0%3Bxe%3A4.595119953155518%3Butm%3A0.0%3Bve%3A4.0%3Bvg%3A0.004834473133087158%3Bxi%3A13939.4287109375%3Bxj%3A950.8571166992188%3Bxk%3A5.4285712242126465%3Bxl%3A553.2186279296875%3Bxm%3A15711.6337890625%3Bvl%3A0.0%3Bxn%3A1126.7332763671875%3Bxo%3A7.133333206176758%3Bvn%3A0.0%3Bxp%3A750.2288818359375%3Bvp%3A99.0%3Bvq%3A0.0%3Bvu%3A0.36954259872436523;wlsort:null;price:null;sold:null;sort:_coefp;gray:0;grayBucket:0","uprightImg":"http://g.search2.alicdn.com/img/bao/uploaded/i4/i2/196993935/O1CN01N6qNsS1ewHHfDSo6Q_!!0-item_pic.jpg","extraParams":[{"value":"shop","key":"xxc"}],"type":"fixed","title":" 男装 宽腿工装束脚运动裤(抽绳) 436882 UNIQLO","tItemType":"nt_auction","utLogMap":{},"auctionUrl":"http://a.m.taobao.com/i632537905537.htm?&v=1.0&sid=17c44d0addf9c762eb952ccc38f35c16&jose=1","isCod":"0","isprepay":"1","shipping":"7.00","rateSum":"20","isInLimitPromotion":"false","price":"99.00","summaryTips":[],"realSales":"400+人付款","ordinaryPostFee":"7.00","sameCount":"0","isP4p":"false","sold":"412","quantity":"4","zkTime":"0","item_id":"632537905537","promotedService":"1","priceColor":"#000000","cardType":"item","auctionTag":"385 587 907 1154 1163 1478 1483 2049 2059 2123 3851 3974 4166 4491 4550 4555 6401 6603 7046 7174 10562 11083 11143 11339 11467 11531 12230 13953 15563 15809 16321 16385 17739 17803 18379 18763 20545 20609 21697 21953 22155 22337 24139 25282 28353 28482 28802 30017 30337 30401 30657 30849 30977 31489 32513 33217 34433 35458 35713 36161 36929 37569 37633 37697 39233 39489 39553 39745 43137 49218 49282 60418 62082 64129 65281 71745 73089 79169 79489 81793 82306 82625 83905 85697 95105 101121 101762 102785 103041 105218 105601 108673 112001 115329 120513 120577 123905 129793 130433 137281 141185 144321 146049 146881 148481 164801 166658 167489 167681 175746 176514 178369 184897 186945 188481 188737 190721 191489 191617 191681 192769 198593 198721 199553 199809 200321 206081 206401 212546 220865 222273 222337 222785 228225 228673 229441 235585 241218 241985 249858 258689 266817 281666 286337 295170 303553 303617 303681 328321 348929 349377 350529 355713 355905 356609 357505 361217 364225 364482 368641 368705 368769 372865 426754 427458 456450 490498 493250 1354242 1364098 1373570 1374658 1448258 1608642 1632386 1691586 1702530 1705858 1713410 1734978 1769346 1782274 1789826 1798210 1799170 1826434 1829634 1835330 1843202 1846530 1875458 1898114 1902338 1902402 1923522 1932674 1941314 1951170 1977538 1992066 1998018 2016450 2027074 2028098 2028162 2035842 2038594 2038978 2039042 2039426 2056514 2056706 2057410 2057474 2057538 2057602 2057666 2057730 2057922 2058370 2059138 2062594 2066690 2091714 2102466 2102914 2103810 2103874 2103938 2104130 2104194 2106370 2110722 2111042 2111490 2111554 2119618 2121410 2127938 2131202 2140162 2158210 2170114 2170242 2205762 2209026 2223554 2228354 2238850 2254274 2254338 2254466 2257858 2266498 2268354 2272962 2273026 2278466 2286978 2289154 2300994 2310018 2316162 2321090 2324482 2327042 2340674 108225 2285058 9345 2016386 354817 8257 2321474 23563 63105 131009 4171 28737 173313 27521 122881 11585 242433 317121 95169 157505 349570 348481 28865 1657986 59010 1968386 10305 1227 2032642 4619 504322 179649 11595 1845314 33409 15554 13377 84673 69057 4614 320065 1619266 2288706 12097 242242 6411 162689 317697 1649474 29889 1794690 156609 21889 162561 29761 3019 13505 235905 335681 24075 2443 897 1733890 4107 5835 1478530 2325826 4363 6146 2320770 293249 2187 200897 162433 1795010 41922 33345 336641 28043 122177 2201410 198849 10241 155073 1666626 361537 1803 52801 301441 350017 156225 1619202 9665 245697 2132674 141121 1709250 57026 2180482 2203202 7755 2032834 1665986 2507 51329 2153026 113602 48898 1666562 758210 27979 1765698 33281 7371 2635 192449 444802 1842882 4811 191873 321473 1862146 2090690 181249 326529 260033 2042690 1666498 109570 1765442 336577 198913 1902082 253697 2294274 1675 2183298 329089 1530178 120001 1904386 1794818 2106882 1474370 8641 297409 119809 180289 21057 162753 1794242 1778050 22145 353793 2157762 1618946 23755 32577 48193 3905 1794882 29697 150145 365377 1900354 89665 269761 4678 7947 1739842 36417","fastPostFee":"7.00","pic_path":"http://g.search.alicdn.com/img/bao/uploaded/i4/i2/196993935/O1CN01meaYYO1ewHHvJRW3G_!!0-item_pic.jpg","icons":[],"priceShow":{"unit":"¥","price":"99.00","preText":""},"zkType":"","jarvisData":{"sp_rank_features":"vv:2.8249621391296387E-4;vw:0.06445205211639404;ua:0.0;ub:0.0;ud:0.0;ue:0.0;uf:0.0;ug:3378.0;uh:0.0;ui:385.0;rqs:0.0;uj:0.0;un:0.0;i2i:0.0;i2i2:4740.0;xa:0.0018025386380031705;is:0.0;xb:1.8207460016128607E-5;xc:-8.171845436096191;vb:0.005620092153549194;xd:-2.7418336868286133;u2i:0.0;xe:4.595119953155518;utm:0.0;ve:4.0;vg:0.004834473133087158;xi:13939.4287109375;xj:950.8571166992188;xk:5.4285712242126465;xl:553.2186279296875;xm:15711.6337890625;vl:0.0;xn:1126.7332763671875;xo:7.133333206176758;vn:0.0;xp:750.2288818359375;vp:99.0;vq:0.0;vu:0.36954259872436523"},"isB2c":"1","userType":"1","similarCount":"0"},{"clickUrl":"","priceWap":"79.00","priceWithRate":"79.00","clickTrace":"query:;nid:676695558940;cat_id:;seller_id:196993935;seller_type:1;src:inshop;recType:;rn:5cbbbd871f37268871bd79079a648127;c_flag:false;client:wireless_other;sp_rank_features:vv%3A1.0856986045837402E-4%3Bvw%3A0.04600590467453003%3Bua%3A0.0%3Bub%3A0.0%3Bud%3A0.0%3Bue%3A0.0%3Buf%3A0.0%3Bug%3A11321.0%3Buh%3A1284.0%3Bui%3A1034.0%3Brqs%3A0.0%3Buj%3A0.0%3Bun%3A993723.0%3Bi2i%3A0.0%3Bi2i2%3A11729.0%3Bxa%3A3.9459351683035493E-4%3Bis%3A0.0%3Bxb%3A4.994854862161446E-6%3Bxc%3A-9.128116607666016%3Bvb%3A0.002725571393966675%3Bxd%3A-3.0789854526519775%3Bu2i%3A0.0%3Bxe%3A4.369447708129883%3Butm%3A0.0%3Bve%3A1575.0%3Bvg%3A0.004606902599334717%3Bxi%3A72465.0%3Bxj%3A4271.85693359375%3Bxk%3A88.42857360839844%3Bxl%3A9977.4365234375%3Bxm%3A83589.8984375%3Bvl%3A0.0%3Bxn%3A4916.10009765625%3Bxo%3A71.69999694824219%3Bvn%3A0.0%3Bxp%3A8347.404296875%3Bvp%3A79.0%3Bvq%3A0.0%3Bvu%3A0.029760092496871948;wlsort:null;price:null;sold:null;sort:_coefp;gray:0;grayBucket:0","uprightImg":"http://g.search2.alicdn.com/img/bao/uploaded/i4/i3/196993935/O1CN011J9heB1ewHIJnQpZc_!!0-item_pic.jpg","extraParams":[{"value":"shop","key":"xxc"}],"type":"fixed","title":" 女装 棉质罗纹圆领T恤(五分袖清凉甜美百搭上衣) 452213","tItemType":"nt_auction","utLogMap":{},"auctionUrl":"http://a.m.taobao.com/i676695558940.htm?&v=1.0&sid=17c44d0addf9c762eb952ccc38f35c16&jose=1","isCod":"0","isprepay":"1","shipping":"7.00","rateSum":"20","isInLimitPromotion":"false","price":"79.00","summaryTips":[],"realSales":"8000+人付款","ordinaryPostFee":"7.00","sameCount":"0","isP4p":"false","sold":"8765","quantity":"3133","zkTime":"0","item_id":"676695558940","promotedService":"1","priceColor":"#000000","cardType":"item","auctionTag":"385 587 907 1154 1163 1478 1483 2049 2059 3394 3851 3915 3974 4166 4491 4550 4555 6401 6603 7046 7174 9478 11083 11143 11266 11339 11531 13953 15563 15809 16321 16385 16395 17739 17803 20545 20609 21442 21697 21953 22155 22337 24139 25282 28353 28482 28802 30017 30337 30401 30657 30849 30977 31489 32513 33217 34433 35458 35713 36161 36929 37569 37633 37697 39233 39489 39553 39745 43137 46914 60418 62082 64129 65281 71745 73089 79169 79489 81793 82306 82625 83905 85697 95105 101121 101762 102785 103041 105218 105601 107522 108673 112001 115329 120513 120577 123905 129793 130433 137281 140994 141185 143746 144321 146049 146881 148481 164801 167489 167681 176514 178369 184897 186945 188481 188737 190721 191489 191617 191681 192769 198593 198721 199553 199809 200321 206081 206401 209666 212546 220865 222273 222337 222785 228225 228673 229441 235585 241985 249858 258689 266817 281666 286337 295170 303553 303617 303681 328321 348929 349377 350529 355713 355905 356609 357505 361217 364225 368641 368705 368769 372865 426754 456450 531906 1391874 1448258 1508482 1789826 1799170 1835330 1839426 1843202 1898114 2021442 2028098 2028162 2036994 2057410 2057474 2057538 2057602 2057666 2057730 2057922 2058370 2066690 2074818 2119618 2128578 2133506 2200066 2223554 2239106 2255170 2266498 2272962 2273026 2286978 2288386 2288450 2288578 2288770 2289090 2289154 2289602 2289730 2293954 2300994 2301122 2303490 2304642 2307074 2321090 2324482 2327042 2340290 108225 2285058 9345 2016386 354817 8257 61442 1771394 2321474 23563 63105 131009 4171 28737 2165442 1366978 173313 27521 122881 1440514 11585 107266 242433 317121 95169 2148034 157505 349570 348481 10818 28865 59010 10305 504322 179649 11595 33409 15554 13377 84673 69057 4614 320065 2288706 12097 242242 6411 162689 317697 29889 156609 21889 162561 29761 3019 13505 235905 335681 24075 2254018 2443 897 4107 5835 4363 6146 2320770 293249 2287682 200897 162433 41922 33345 336641 28043 122177 2201410 198849 10241 155073 1666626 361537 1803 52801 301441 350017 156225 9665 245697 2132674 48706 141121 57026 2180482 2203202 7755 2507 51329 113602 48898 27979 33281 7371 2635 192449 444802 2187842 4811 191873 321473 181249 326529 260033 2042690 109570 2304834 336577 198913 253697 2294274 1675 329089 2307266 120001 1904386 1474370 8641 297409 119809 180289 21057 162753 22145 353793 23755 32577 48193 3905 29697 150145 365377 1900354 89665 269761 4678 7947 1739842 36417 2064642 1988034","fastPostFee":"7.00","pic_path":"http://g.search1.alicdn.com/img/bao/uploaded/i4/i4/196993935/O1CN01mg6xGE1ewHIExREW5_!!196993935.jpg","icons":[],"priceShow":{"unit":"¥","price":"79.00","preText":""},"zkType":"","jarvisData":{"sp_rank_features":"vv:1.0856986045837402E-4;vw:0.04600590467453003;ua:0.0;ub:0.0;ud:0.0;ue:0.0;uf:0.0;ug:11321.0;uh:1284.0;ui:1034.0;rqs:0.0;uj:0.0;un:993723.0;i2i:0.0;i2i2:11729.0;xa:3.9459351683035493E-4;is:0.0;xb:4.994854862161446E-6;xc:-9.128116607666016;vb:0.002725571393966675;xd:-3.0789854526519775;u2i:0.0;xe:4.369447708129883;utm:0.0;ve:1575.0;vg:0.004606902599334717;xi:72465.0;xj:4271.85693359375;xk:88.42857360839844;xl:9977.4365234375;xm:83589.8984375;vl:0.0;xn:4916.10009765625;xo:71.69999694824219;vn:0.0;xp:8347.404296875;vp:79.0;vq:0.0;vu:0.029760092496871948"},"isB2c":"1","userType":"1","similarCount":"0"},{"clickUrl":"","priceWap":"39.00","priceWithRate":"39.00","clickTrace":"query:;nid:673838268854;cat_id:;seller_id:196993935;seller_type:1;src:inshop;recType:;rn:5cbbbd871f37268871bd79079a648127;c_flag:false;client:wireless_other;sp_rank_features:vv%3A1.1298060417175293E-4%3Bvw%3A0.07257318496704102%3Bua%3A0.0%3Bub%3A0.0%3Bud%3A0.0%3Bue%3A0.0%3Buf%3A0.0%3Bug%3A6318.0%3Buh%3A296.0%3Bui%3A640.0%3Brqs%3A0.0%3Buj%3A0.0%3Bun%3A983915.0%3Bi2i%3A0.0%3Bi2i2%3A18047.0%3Bxa%3A3.1977513572201133E-4%3Bis%3A0.0%3Bxb%3A8.19936212792527E-6%3Bxc%3A-9.08829402923584%3Bvb%3A0.0019342601299285889%3Bxd%3A-2.623159885406494%3Bu2i%3A0.0%3Bxe%3A3.6635615825653076%3Butm%3A0.0%3Bve%3A118.0%3Bvg%3A0.004507482051849365%3Bxi%3A71715.0%3Bxj%3A3913.28564453125%3Bxk%3A183.57142639160156%3Bxl%3A8807.798828125%3Bxm%3A33900.234375%3Bvl%3A0.0%3Bxn%3A1434.199951171875%3Bxo%3A67.69999694824219%3Bvn%3A0.0%3Bxp%3A3774.464599609375%3Bvp%3A39.0%3Bvq%3A0.0%3Bvu%3A0.07585817575454712;wlsort:null;price:null;sold:null;sort:_coefp;gray:0;grayBucket:0","uprightImg":"http://g.search.alicdn.com/img/bao/uploaded/i4/i2/196993935/O1CN01NiU25Z1ewHI01Tkd0_!!0-item_pic.jpg","extraParams":[{"value":"shop","key":"xxc"}],"type":"fixed","title":"UT 男装DORAEMON印花T恤(短袖哆啦A梦)特大特小尺码449512","tItemType":"nt_auction","utLogMap":{},"auctionUrl":"http://a.m.taob