請求方式:GET
注:請求參數須區(qū)分大小寫
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
注:請求參數須區(qū)分大小寫
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
注:請求參數須區(qū)分大小寫
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包餐巾紙面紙衛(wèi)生間紙面巾手紙抽家用實惠紙巾整箱批發(fā)",
"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": "取暖器暖風機立式浴室防水家用節(jié)能小太陽電暖氣臥室小型速熱風機",
"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": "取暖器暖風機立式浴室防水家用節(jié)能小太陽電暖氣臥室小型速熱風機",
"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只】維德一次性醫(yī)用外科口罩",
"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": "維德醫(yī)療一次性醫(yī)用外科口罩滅菌醫(yī)療機構防塵透氣無菌防病菌50只",
"desc": "外科醫(yī)生專用,滅菌防塵,更嚴苛更安心,三層加厚款防護更安全,三褶設計,阻隔外界飛塵,飛沫~合格證書齊備!防疫必備,呵護您的安全!",
"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
}