功能
1.查询商品在指定关键词下的排名情况,商家推广过程中,需要实时掌握商品排名变化,以此来检测推广效果。W:stkjnannan,价格可低至几分钱
2.手动在淘宝搜索页翻查排名,如果商品排名靠后,查找会耗费大量时间,查找过程也很痛苦,而且本地电脑会受到缓存,个性化,千人千面等影响,不利于真实排名的获取。
3.实时自动查询未登陆账号显示指定商品的搜索词下的排名,还原买家搜索结果。服务器查询速度快,100页只需几秒钟,节省了大量时间提高工作效率。
4.排除干扰因素,实现了在无账号登录状态下,获取商品在搜索关键词下最真实有效的排名情况
接口文档
淘宝排名查询
接口地址: http://xxxxxxxxxxx.com/tool/accounts/item-rank
接口介绍: 模拟手淘(或者 pc 端)未登陆账号显示指定商品的搜索词下的排名 点击查看详情
请求方式: POST
传参方式: form-data
返回格式: JSON
接口收费: 已满,包年包月,W:stkjnannan,价格可低至几分钱
频率限制: 10 次/秒
请求头参数
请求参数
请求示例
media:1
sort:0
pattern:1
keywor:好欢螺
item_id: https://detail.tmall.com/item.htm?id=604618443394&ali_trackid=2:mm_124190590_30248727_109212350230:1596447162_115_871152963&spm=a231o.7712113/g.1004.338&pvid=200_11.8.64.128_4701_1596447149036&bxsign=tbk1596447162349fad57f7d8f659cc9f697b3b32d70e180
start_page: 1
page_step: 3
tag_id: 0
type:tmall
请求代码示例
cURL请求代码示例
curl --location --request POST 'http://xxxxxxxxxxx.com/tool/accounts/item-rank' \
--header 'Authorization: Bearer c2c20409e5f3f34437aece02c69b9a9dxxxxxxxx' \
--header 'Cookie: PHPSESSID=9clrl8itapsmakj80smt4rr0ts; _csrf=ef2da6cdf78743574ec4cbdec8fe8d959eb0b7c9e34418e3bffbad55ea2c034ba%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%228DZXA6sKgG5y_7mQSJO6M2QtvDvRbvP-%22%3B%7D' \
--form 'media=1' \
--form 'sort=0' \
--form 'pattern=1' \
--form 'keyword=好欢螺' \
--form 'item_id=https://detail.tmall.com/item.htm?id=604618443394&ali_trackid=2:mm_124190590_30248727_109212350230:1596447162_115_871152963&spm=a231o.7712113/g.1004.338&pvid=200_11.8.64.128_4701_1596447149036&bxsign=tbk1596447162349fad57f7d8f659cc9f697b3b32d70e180' \
--form 'start_page=1' \
--form 'page_step=2' \
--form 'tag_id=14' \
--form 'type=all'
PHP请求代码示例
<?php$curl = curl_init();curl_setopt_array($curl, array(CURLOPT_URL => "http://xxxxxxxxxxxxxxxxxxxxxxx.com/tool/accounts/item-rank",CURLOPT_RETURNTRANSFER => true,CURLOPT_ENCODING => "",CURLOPT_MAXREDIRS => 10,CURLOPT_TIMEOUT => 0,CURLOPT_FOLLOWLOCATION => true,CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,CURLOPT_CUSTOMREQUEST => "POST",CURLOPT_POSTFIELDS => array('media' => '1','sort' => '0','pattern' => '1','keyword' => '好欢螺','item_id' => 'https://detail.tmall.com/item.htm?id=604618443394&ali_trackid=2:mm_124190590_30248727_109212350230:1596447162_115_871152963&spm=a231o.7712113/g.1004.338&pvid=200_11.8.64.128_4701_1596447149036&bxsign=tbk1596447162349fad57f7d8f659cc9f697b3b32d70e180','start_page' => '1','page_step' => '2','tag_id' => '14','type' => 'all'),CURLOPT_HTTPHEADER => array("Authorization: Bearer c2c20409e5f3f34437aece02c69b9a9dxxxxxxxx","Cookie: PHPSESSID=9clrl8itapsmakj80smt4rr0ts; _csrf=ef2da6cdf78743574ec4cbdec8fe8d959eb0b7c9e34418e3bffbad55ea2c034ba%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%228DZXA6sKgG5y_7mQSJO6M2QtvDvRbvP-%22%3B%7D"),
));$response = curl_exec($curl);curl_close($curl);
echo $response;
JAVA请求代码示例
OkHttpClient client = new OkHttpClient().newBuilder().build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM).addFormDataPart("media", "1").addFormDataPart("sort", "0").addFormDataPart("pattern", "1").addFormDataPart("keyword", "好欢螺").addFormDataPart("item_id", "https://detail.tmall.com/item.htm?id=604618443394&ali_trackid=2:mm_124190590_30248727_109212350230:1596447162_115_871152963&spm=a231o.7712113/g.1004.338&pvid=200_11.8.64.128_4701_1596447149036&bxsign=tbk1596447162349fad57f7d8f659cc9f697b3b32d70e180").addFormDataPart("start_page", "1").addFormDataPart("page_step", "2").addFormDataPart("tag_id", "14").addFormDataPart("type", "all").build();
Request request = new Request.Builder().url("http://xxxxxxxxxxxxxx.com/tool/accounts/item-rank").method("POST", body).addHeader("Authorization", "Bearer c2c20409e5f3f34437aece02c69b9a9dxxxxxxxx").addHeader("Cookie", "PHPSESSID=9clrl8itapsmakj80smt4rr0ts; _csrf=ef2da6cdf78743574ec4cbdec8fe8d959eb0b7c9e34418e3bffbad55ea2c034ba%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%228DZXA6sKgG5y_7mQSJO6M2QtvDvRbvP-%22%3B%7D").build();
Response response = client.newCall(request).execute();
响应参数
返回数据
{"code": 0,"msg": "获取排名数据成功","msec": 4265,"time": 1596449461,"data": {"info": {"totalpage": 37,"startpage": 1,"nextpage": 4,"pagestep": 3},"data": {"items": [{"id": "604618443394","pos": 20,"page": 2,"title": "好欢螺螺蛳粉300g*10袋礼盒装螺丝粉广西柳州螺狮粉正宗整箱包邮","nick": "迅荟食品专营店","url": "https://item.taobao.com/item.htm?id=604618443394","img": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i2/3400066719/O1CN01K386yS1zVLj5tJsAw_!!3400066719.jpg","isp4p": 0,"view_sales": 5808,"category": null,"price": "38.70","area": "广西 柳州","seller_type": "1","seller_level": null}]}}
}
响应代码