功能
1.查询商品在指定关键词下的排行情况,商家推广过程中,需要实时把握商品排行变化,以此来测量推广疗效。W:stkjnannan,价格可低至几分钱
2.手动在天猫搜索页翻查排行,如果商品排行靠后,查找会花费大量时间,查找过程也很苦闷,而且本地笔记本会遭到缓存,个性化,千人千面等影响,不利于真实排行的获取。
3.实时手动查询未登入帐号显示指定商品的搜索词下的排行,还原卖家搜索结果。服务器查询速度快,100页只需几秒钟,节省了大量时间提升工作效率。
4.排除干扰诱因,实现了在无帐号登入状态下,获取商品在搜索关键词下最真实有效的排行情况
接口文档
淘宝排行查询
接口地址:
接口介绍: 模拟手淘(或者 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恳求代码示例
$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
}
]
}
}
}
响应代码