请求方式:GET
注:请求参数须区分大小写
String url = "https://openapi.dataoke.com/api/goods/get-ranking-list";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.3.0");
paraMap.put("appKey", appKey);
paraMap.put("rankType", "1");
String data = ApiClient.sendReq(url, appSecret, paraMap);
SDK调用示例
String appKey = "xxx";
String appSecret = "xxx";
(包含所有榜单类型)请求参数实体
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkGetRankingListRequest request = new DtkGetRankingListRequest();
request.setRankType(1);
request.setCid(12);
request.setPageSize(20);
request.setPageId("1");
DtkApiResponse < List < DtkGetRankingListMergeResponse >> execute = client.execute(request);
(综合热搜榜)请求参数实体
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkGetRankingListByHotSearchRequest request = new DtkGetRankingListByHotSearchRequest();
request.setRankType(1);
request.setCid(12);
request.setPageSize(20);
request.setPageId("1");
DtkApiResponse < List < DtkGetRankingListByHotSearchResponse >> execute = client.execute(request);
(热词排行榜)请求参数实体
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkGetRankingListByHotWordRequest request = new DtkGetRankingListByHotWordRequest();
request.setRankType(1);
request.setCid(12);
request.setPageSize(20);
request.setPageId("1");
DtkApiResponse < List < DtkGetRankingListByHotWordResponse >> execute = client.execute(request);
(热词排行榜)请求参数实体
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkGetRankingListByHotWordUpRequest request = new DtkGetRankingListByHotWordUpRequest();
request.setRankType(1);
request.setCid(12);
request.setPageSize(20);
request.setPageId("1");
DtkApiResponse < List < DtkGetRankingListByHotWordUpResponse >> execute = client.execute(request);
(复购榜)请求参数实体
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkGetRankingListByReBuyRequest request = new DtkGetRankingListByReBuyRequest();
request.setRankType(1);
request.setCid(12);
request.setPageSize(20);
request.setPageId("1");
DtkApiResponse < List < DtkGetRankingListByReBuyResponse >> execute = client.execute(request);
(1(实时榜),2(全天榜),3(热推榜))请求参数实体
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkGetRankingListByTimeWholeHotRequest request = new DtkGetRankingListByTimeWholeHotRequest();
request.setRankType(1);
request.setCid(12);
request.setPageSize(20);
request.setPageId("1");
DtkApiResponse < List < DtkGetRankingListByTimeWholeHotResponse >> execute = client.execute(request);
{
"time": 1555659228144,
"code": 0,
"msg": "成功",
"data": [
{
"id": 22801533,
"goodsId": "602048053451",
"ranking": 1,
"dtitle": "【北极绒旗舰店】加绒加厚保暖衬衫",
"actualPrice": 49.9,
"commissionRate": 30.0,
"couponPrice": 20.0,
"couponReceiveNum": 2000,
"couponTotalNum": 100000,
"monthSales": 63231,
"twoHoursSales": 16589,
"dailySales": 121,
"hotPush": 64,
"mainPic": "https://img.alicdn.com/imgextra/i4/2914820571/O1CN01XRNllu1G5YiTySpkO_!!2914820571.jpg",
"title": "北极绒2019秋冬季加绒加厚商务男士青年保暖衬衫中年长袖格子衬衣",
"desc": "大牌北极绒旗舰店,加绒加厚保暖!绒面一体钻石绒,蓄热37℃恒温,液氨免烫工艺,一件抵三件,休闲百搭,不显臃肿,穿上秒变男神,抢到赚到啦!!!【赠运费险】",
"originalPrice": 69.9,
"couponLink": "https://uland.taobao.com/quan/detail?sellerId=2914820571&activityId=3fc7bf39266a42ee8918c908f17d77be",
"couponStartTime": "2019-10-18 00:00:00",
"couponEndTime": "2019-10-20 23:59:59",
"commissionType": 3,
"createTime": "2019-10-18 08:59:11",
"activityType": 1,
"imgs": "https://img.alicdn.com/imgextra/i3/2914820571/O1CN01pHOAHs1G5YiZbny9F_!!2914820571.jpg,https://img.alicdn.com/imgextra/i4/2914820571/O1CN01C1K6Ji1G5Yi4pSGvc_!!2914820571.jpg,https://img.alicdn.com/imgextra/i3/2914820571/O1CN01aD07e21G5Yi5zKKCu_!!2914820571.jpg,https://img.alicdn.com/imgextra/i3/2914820571/O1CN01P63ZMj1G5Yi7I7lgc_!!2914820571.jpg,https://img.alicdn.com/imgextra/i3/2914820571/O1CN01FzeT3Y1G5Yi0ETF19_!!2914820571.jpg",
"guideName": "小黑驴",
"shopType": 1,
"couponConditions": "59",
"newRankingGoods": 0,
"sellerId": "2914820571",
"quanMLink": 0,
"hzQuanOver": 0,
"yunfeixian": 1,
"estimateAmount": 0,
"freeshipRemoteDistrict": 0
}
]
}
请求方式:GET
注:请求参数须区分大小写
String url = "https://openapi.dataoke.com/api/goods/get-ranking-list";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.3.0");
paraMap.put("appKey", appKey);
paraMap.put("rankType", "1");
String data = ApiClient.sendReq(url, appSecret, paraMap);
SDK调用示例
String appKey = "xxx";
String appSecret = "xxx";
(包含所有榜单类型)请求参数实体
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkGetRankingListRequest request = new DtkGetRankingListRequest();
request.setRankType(1);
request.setCid(12);
request.setPageSize(20);
request.setPageId("1");
DtkApiResponse < List < DtkGetRankingListMergeResponse >> execute = client.execute(request);
(综合热搜榜)请求参数实体
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkGetRankingListByHotSearchRequest request = new DtkGetRankingListByHotSearchRequest();
request.setRankType(1);
request.setCid(12);
request.setPageSize(20);
request.setPageId("1");
DtkApiResponse < List < DtkGetRankingListByHotSearchResponse >> execute = client.execute(request);
(热词排行榜)请求参数实体
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkGetRankingListByHotWordRequest request = new DtkGetRankingListByHotWordRequest();
request.setRankType(1);
request.setCid(12);
request.setPageSize(20);
request.setPageId("1");
DtkApiResponse < List < DtkGetRankingListByHotWordResponse >> execute = client.execute(request);
(热词排行榜)请求参数实体
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkGetRankingListByHotWordUpRequest request = new DtkGetRankingListByHotWordUpRequest();
request.setRankType(1);
request.setCid(12);
request.setPageSize(20);
request.setPageId("1");
DtkApiResponse < List < DtkGetRankingListByHotWordUpResponse >> execute = client.execute(request);
(复购榜)请求参数实体
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkGetRankingListByReBuyRequest request = new DtkGetRankingListByReBuyRequest();
request.setRankType(1);
request.setCid(12);
request.setPageSize(20);
request.setPageId("1");
DtkApiResponse < List < DtkGetRankingListByReBuyResponse >> execute = client.execute(request);
(1(实时榜),2(全天榜),3(热推榜))请求参数实体
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkGetRankingListByTimeWholeHotRequest request = new DtkGetRankingListByTimeWholeHotRequest();
request.setRankType(1);
request.setCid(12);
request.setPageSize(20);
request.setPageId("1");
DtkApiResponse < List < DtkGetRankingListByTimeWholeHotResponse >> execute = client.execute(request);
{
"time": 1555659228144,
"code": 0,
"msg": "成功",
"data": [
{
"id": 22801533,
"goodsId": "602048053451",
"ranking": 1,
"dtitle": "【北极绒旗舰店】加绒加厚保暖衬衫",
"actualPrice": 49.9,
"commissionRate": 30.0,
"couponPrice": 20.0,
"couponReceiveNum": 2000,
"couponTotalNum": 100000,
"monthSales": 63231,
"twoHoursSales": 16589,
"dailySales": 121,
"hotPush": 64,
"mainPic": "https://img.alicdn.com/imgextra/i4/2914820571/O1CN01XRNllu1G5YiTySpkO_!!2914820571.jpg",
"title": "北极绒2019秋冬季加绒加厚商务男士青年保暖衬衫中年长袖格子衬衣",
"desc": "大牌北极绒旗舰店,加绒加厚保暖!绒面一体钻石绒,蓄热37℃恒温,液氨免烫工艺,一件抵三件,休闲百搭,不显臃肿,穿上秒变男神,抢到赚到啦!!!【赠运费险】",
"originalPrice": 69.9,
"couponLink": "https://uland.taobao.com/quan/detail?sellerId=2914820571&activityId=3fc7bf39266a42ee8918c908f17d77be",
"couponStartTime": "2019-10-18 00:00:00",
"couponEndTime": "2019-10-20 23:59:59",
"commissionType": 3,
"createTime": "2019-10-18 08:59:11",
"activityType": 1,
"imgs": "https://img.alicdn.com/imgextra/i3/2914820571/O1CN01pHOAHs1G5YiZbny9F_!!2914820571.jpg,https://img.alicdn.com/imgextra/i4/2914820571/O1CN01C1K6Ji1G5Yi4pSGvc_!!2914820571.jpg,https://img.alicdn.com/imgextra/i3/2914820571/O1CN01aD07e21G5Yi5zKKCu_!!2914820571.jpg,https://img.alicdn.com/imgextra/i3/2914820571/O1CN01P63ZMj1G5Yi7I7lgc_!!2914820571.jpg,https://img.alicdn.com/imgextra/i3/2914820571/O1CN01FzeT3Y1G5Yi0ETF19_!!2914820571.jpg",
"guideName": "小黑驴",
"shopType": 1,
"couponConditions": "59",
"newRankingGoods": 0,
"sellerId": "2914820571",
"quanMLink": 0,
"hzQuanOver": 0,
"yunfeixian": 1,
"estimateAmount": 0,
"freeshipRemoteDistrict": 0
}
]
}
{
"msg":"服务器错误",
"code":-1,
"time":1554365022200
}请求方式:GET
注:请求参数须区分大小写
String url = "https://openapi.dataoke.com/api/goods/get-ranking-list";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.2.2");
paraMap.put("appKey", appKey);
paraMap.put("rankType", "1");
String data = ApiClient.sendReq(url, appSecret, paraMap);
1(实时榜),2(全天榜),3(热推榜)
{
"requestId": "c2ec3a1391be46f5b75e400efb7b46b0",
"time": 1606287483833,
"code": 0,
"msg": "成功",
"data": [
{
"id": 30610102,
"goodsId": "622626394297",
"ranking": 41,
"dtitle": "【小鸡卡迪】新生婴儿玻璃奶瓶140ml",
"actualPrice": 12.90,
"commissionRate": 40.00,
"couponPrice": 25.00,
"couponReceiveNum": 16000,
"couponTotalNum": 100000,
"monthSales": 7338,
"twoHoursSales": 2488,
"dailySales": 7323,
"hotPush": 3036,
"mainPic": "https://img.alicdn.com/imgextra/i4/2103308564/O1CN01Z29rrL2D8MXguTVsQ_!!2103308564.jpg",
"title": "新生婴儿标准口径玻璃奶瓶宝宝防胀气超软仿母乳奶瓶140/240ml",
"desc": "缓冲不呛奶!仿母乳外形,贴合宝宝嘴巴吮吸,智能防胀气设计,方便吮吸~",
"originalPrice": 37.90,
"couponLink": "https://uland.taobao.com/quan/detail?sellerId=2103308564&activityId=9089f2de32884158bdb8d65e52bad104",
"couponStartTime": "2020-11-25 00:00:00",
"couponEndTime": "2020-11-28 23:59:59",
"commissionType": 3,
"createTime": "2020-11-24 18:40:06",
"activityType": 1,
"imgs": "",
"guideName": "无限蓝传媒",
"shopType": 1,
"couponConditions": "39",
"newRankingGoods": 0,
"sellerId": "2103308564",
"quanMLink": 0,
"hzQuanOver": 0,
"yunfeixian": 1,
"estimateAmount": 0,
"freeshipRemoteDistrict": 0
}
]
}
4(复购榜)
{
"requestId": "64bd7492742c4707b81ad7fc486b139c",
"time": 1606287516662,
"code": 0,
"msg": "成功",
"data": [
{
"id": 30619446,
"goodsId": "627495064273",
"ranking": 1,
"dtitle": "6.9秒杀【植护抽纸14包】",
"actualPrice": 6.99,
"commissionRate": 30.00,
"couponPrice": 3.00,
"couponReceiveNum": 3500,
"couponTotalNum": 50000,
"monthSales": 1181463,
"twoHoursSales": 3738,
"dailySales": 6372,
"hotPush": 2716,
"mainPic": "https://img.alicdn.com/imgextra/i3/4000077792/O1CN01RVtsY127QmlbjIN09_!!4000077792.jpg",
"title": "植护抽纸14包餐巾纸面纸卫生间纸面巾手纸抽家用实惠纸巾整箱批发",
"desc": "【整箱14大包仅需6.9元,超划算!】植护原生竹浆抽纸巾超值14包,无荧光剂,柔韧吸水不易破,擦拭无尘屑,皮肤不刺激,限时抢购,手慢无~",
"originalPrice": 9.99,
"couponLink": "https://uland.taobao.com/quan/detail?sellerId=725677994&activityId=32018cf8628541a7ba120ef0031b0095",
"couponStartTime": "2020-11-25 00:00:00",
"couponEndTime": "2020-11-25 23:59:59",
"commissionType": 3,
"createTime": "2020-11-25 09:39:28",
"activityType": 1,
"imgs": "http://img.alicdn.com/imgextra/i4/725677994/O1CN01uMdB6T28vImy2acX7_!!0-item_pic.jpg,http://img.alicdn.com/imgextra/i4/725677994/O1CN01nH3ffB28vImqYVO6f_!!725677994.jpg,http://img.alicdn.com/imgextra/i4/725677994/O1CN01H7WrSA28vImrZ5q23_!!725677994.jpg,http://img.alicdn.com/imgextra/i2/725677994/O1CN01VSfI5928vImVD6nud_!!725677994.jpg,http://img.alicdn.com/imgextra/i2/725677994/O1CN01tx3n7X28vImVD8LYi_!!725677994.jpg",
"guideName": "守护者联盟",
"shopType": 1,
"couponConditions": "3.01",
"newRankingGoods": 1,
"sellerId": "725677994",
"quanMLink": 0,
"hzQuanOver": 0,
"yunfeixian": 0,
"estimateAmount": 0,
"freeshipRemoteDistrict": 0,
"avgSales": 52959,
"entryTime": "2020-11-25 10:40:19"
}
]
}
5(热词飙升榜)
{
"requestId": "583d1ff418a74f999f4c6dc82cdfd67b",
"time": 1606287721312,
"code": 0,
"msg": "成功",
"data": [
{
"top": 1,
"keyWord": "暖风机",
"upVal": 177,
"goodsList": [
{
"id": 30589881,
"goodsId": "629268535032",
"dtitle": "usw家用塔式智能取暖器速热风电暖器",
"actualPrice": 59.00,
"commissionRate": 30.00,
"couponPrice": 60.00,
"couponReceiveNum": 3000,
"couponTotalNum": 100000,
"monthSales": 26039,
"twoHoursSales": 262,
"dailySales": 760,
"mainPic": "https://img.alicdn.com/imgextra/i1/1849117669/O1CN01ysA0XA26WS3czlk5e_!!1849117669.png",
"title": "取暖器暖风机立式浴室防水家用节能小太阳电暖气卧室小型速热风机",
"desc": "快抢,过阵子就不是这个价了,三档可调,即开即热,倾倒断电,大牌信得过~",
"originalPrice": 119.00,
"couponLink": "https://uland.taobao.com/quan/detail?sellerId=2202583615891&activityId=dbaf6f958d8e4574a08fc8de16a6da28",
"couponStartTime": "2020-11-24 00:00:00",
"couponEndTime": "2020-11-26 23:59:59",
"commissionType": 3,
"createTime": "2020-11-23 22:59:05",
"activityType": 1,
"shopType": 1,
"couponConditions": "109",
"sellerId": "2202583615891",
"quanMLink": 0,
"hzQuanOver": 0,
"yunfeixian": 1,
"freeshipRemoteDistrict": 0,
"fresh": 0,
"lowest": 0,
"score": 1302
}
]
}
]
}
6(热词排行榜)
{
"requestId": "583d1ff418a74f999f4c6dc82cdfd67b",
"time": 1606287721312,
"code": 0,
"msg": "成功",
"data": [
{
"top": 1,
"keyWord": "暖风机",
"hotVal": 177,
"goodsList": [
{
"id": 30589881,
"goodsId": "629268535032",
"dtitle": "usw家用塔式智能取暖器速热风电暖器",
"actualPrice": 59.00,
"commissionRate": 30.00,
"couponPrice": 60.00,
"couponReceiveNum": 3000,
"couponTotalNum": 100000,
"monthSales": 26039,
"twoHoursSales": 262,
"dailySales": 760,
"mainPic": "https://img.alicdn.com/imgextra/i1/1849117669/O1CN01ysA0XA26WS3czlk5e_!!1849117669.png",
"title": "取暖器暖风机立式浴室防水家用节能小太阳电暖气卧室小型速热风机",
"desc": "快抢,过阵子就不是这个价了,三档可调,即开即热,倾倒断电,大牌信得过~",
"originalPrice": 119.00,
"couponLink": "https://uland.taobao.com/quan/detail?sellerId=2202583615891&activityId=dbaf6f958d8e4574a08fc8de16a6da28",
"couponStartTime": "2020-11-24 00:00:00",
"couponEndTime": "2020-11-26 23:59:59",
"commissionType": 3,
"createTime": "2020-11-23 22:59:05",
"activityType": 1,
"shopType": 1,
"couponConditions": "109",
"sellerId": "2202583615891",
"quanMLink": 0,
"hzQuanOver": 0,
"yunfeixian": 1,
"freeshipRemoteDistrict": 0,
"fresh": 0,
"lowest": 0,
"score": 1302
}
]
}
]
}
7(综合热搜榜)
{
"requestId": "64bd7492742c4707b81ad7fc486b139c",
"time": 1606287516662,
"code": 0,
"msg": "成功",
"data": [
{
"id": 30493967,
"goodsId": "617670252302",
"dtitle": "【50只】维德一次性医用外科口罩",
"actualPrice": 19.55,
"commissionRate": 20.00,
"couponPrice": 25.00,
"couponReceiveNum": 186000,
"couponTotalNum": 300000,
"monthSales": 321057,
"twoHoursSales": 2334,
"dailySales": 10474,
"mainPic": "https://img.alicdn.com/imgextra/i3/2451761503/O1CN01n6qBUA1MyPtzCpxTX_!!2451761503.png",
"title": "维德医疗一次性医用外科口罩灭菌医疗机构防尘透气无菌防病菌50只",
"desc": "外科医生专用,灭菌防尘,更严苛更安心,三层加厚款防护更安全,三褶设计,阻隔外界飞尘,飞沫~合格证书齐备!防疫必备,呵护您的安全!",
"originalPrice": 44.55,
"couponLink": "https://uland.taobao.com/quan/detail?sellerId=2928278102&activityId=43a9c4a69ace4fb6a1a89fd2be5f99e9",
"couponStartTime": "2020-11-19 00:00:00",
"couponEndTime": "2020-11-25 23:59:59",
"commissionType": 3,
"createTime": "2020-11-19 09:25:46",
"activityType": 1,
"shopType": 1,
"couponConditions": "44",
"sellerId": "2928278102",
"quanMLink": 0,
"hzQuanOver": 0,
"yunfeixian": 0,
"freeshipRemoteDistrict": 0,
"fresh": 0,
"lowest": 0,
"score": 11170,
"searchNum": 68229,
"keyWord": "口罩",
"ranking": 1
}
]
}
{
"msg":"服务器错误",
"code":-1,
"time":1554365022200
}