大淘客,让选品更简单! |

{{item.type_name}}:

API 市场 / 每日爆品推荐
 

每日爆品推荐
吐槽建议
应用场景:
用于搭建应用内的营销专区,或在社群内进行分发推广
接口说明:
接口返回每天满足联盟爆品规则的商品合集,单价10~20元商品当日热销超过3000单,20~40元商品当日热销超过1000单,大于等于40元的热销超过500单。 (因为统计的是商品当天的热销,所以早上可能存在数量很少的情况。10分钟会刷新一次)
使用人数: 2000+
每日爆品推荐 接口测试 建议使用通用GET方法调用
  • 接口说明
  • 更新日志
  • 接口版本号:v1.0.0

请求地址:https://openapi.dataoke.com/api/goods/explosive-goods-list 复制

请求方式:GET

公共参数:
请求参数:

注:请求参数须区分大小写

返回数据:
调用示例:
String url = "https://openapi.dataoke.com/api/goods/explosive-goods-list";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.0.0");
paraMap.put("appKey", appKey);
paraMap.put("pageSize", "2");
paraMap.put("pageId", "1");
String data = ApiClient.sendReq(url, appSecret, paraMap);

SDK调用示例
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkExplosiveGoodsListRequest request = new DtkExplosiveGoodsListRequest();
request.setPageId("1");
request.setPageSize(50);
request.setPriceCid("1");
request.setCids("2");
DtkApiResponse < DtkPageResponse < DtkPopularGoodsListResponse >> execute = client.execute(request);
    //每日爆品推荐
    $data = [
        'appKey' => "xxxxxxxxxxxx",
        'version' => "v1.0.0",
        ...
    ];
    $host = "https://openapi.dataoke.com/api/goods/explosive-goods-list";
    $url = $host . '?' . http_build_query($data);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    $output = curl_exec($ch);
    $a = curl_error($ch);
    if(!empty($a)){
        return json_encode(array('code'=>10003, 'msg'=>$a));
    }
    curl_close($ch);
    return $output;

    SDK调用示例
    $client = new GetExplosiveGoodsList();
    $client->setAppKey("xxxxxxxxx");
    $client->setAppSecret("xxxxxxxxxxxxxxxxxxxxxxxxx");
    $client->setVersion("v1.0.0");

    $res = $client->setParams([])->request();
package main

import (
	"fmt"
	"gitee.com/dtk-developer/openapi-sdk-go/sdk"
)

func main() {
	// 1.初始化所需要的参数appKey, appSecret, version
	var (
		appKey = "xxxxxxxxxx"
		appSecret = "xxxxxxxxxx"
		version = "v1.3.1"
	)

	// 2.初始化开放平台api的客户端句柄
	oa := &sdk.OpenApi{}
	oa.AppKey = appKey
	oa.AppSecret = appSecret
	oa.Version = version
	client :=  oa.GetClient()

	// 3.准备请求参数
	params := map[string]string {
		"pageSize": "10",
	}

	// 4.业务请求,示例使用每日爆品推荐和淘系万能解析接口,其它开放接口使用方法相同
	resp, err := client.ExplosiveGoodsList(params)
	if err != nil {
		panic(err)
	}
	fmt.Println(resp)

	// 复用client句柄
	params = map[string]string {
		// 指定接口版本
		"version": "v1.0.0",
		"content": "1👈¥fym8XiJU9Oi¥ https://s.click.taobao.com/Ys3TNlu  包邮 漫花抽纸10包4层加厚280张/包纸巾卫生纸家用实惠装面巾纸",
	}
	resp, err = client.ParseContent(params)
	if err != nil {
		panic(err)
	}
	fmt.Println(resp)
}
返回示例:
{
    "time": 1599458382024,
    "code": 0,
    "msg": "成功",
    "data": {
        "list": [
            {
                "id": 28763821,
                "goodsId": "45891821150",
                "title": "【京都念慈庵】新靓声宝礼盒 四味同糖喉糖礼盒 教师节礼物礼品",
                "dtitle": "【京都念慈庵】进口枇杷润喉糖礼盒装",
                "originalPrice": 99.0,
                "actualPrice": 69.0,
                "shopType": 1,
                "goldSellers": 0,
                "monthSales": 4702,
                "twoHoursSales": 274,
                "dailySales": 2594,
                "commissionType": 3,
                "desc": "【教师节送礼优选】【京都念慈菴旗舰店】草本传承,甘润养声,凝聚多种草本精华,有效缓解咽喉不适,洋溢着新鲜水果气息,还能清新口气,高级定制手绘礼盒4盒装,有手提袋。2种礼盒可选。送礼的至臻选择!",
                "couponReceiveNum": 17000,
                "couponLink": "https://uland.taobao.com/quan/detail?sellerId=2127030673&activityId=e6cf0806ac2b4fd5b442a5c5a21d8b2b",
                "couponEndTime": "2020-09-07 23:59:59",
                "couponStartTime": "2020-09-01 00:00:00",
                "couponPrice": 30.0,
                "couponConditions": "99",
                "activityType": 1,
                "createTime": "2020-08-31 20:55:09",
                "mainPic": "https://img.alicdn.com/imgextra/i3/292438365/O1CN01GjGGCl2BfDi36ZGIm_!!292438365.jpg",
                "marketingMainPic": "https://sr.ffquan.cn/dtk_www/20200814/bsr7vc4q57br3hc0rk9g0.jpg",
                "sellerId": "2127030673",
                "cid": 6,
                "discounts": 0.30,
                "commissionRate": 20.01,
                "couponTotalNum": 100000,
                "activityStartTime": "",
                "activityEndTime": "",
                "shopName": "京都念慈庵旗舰店",
                "shopLevel": 15,
                "descScore": 4.9,
                "brand": 0,
                "brandId": 3229833,
                "brandName": "京都念慈菴",
                "hotPush": 872,
                "teamName": "七匹狼精品联盟",
                "itemLink": "https://detail.tmall.com/item.htm?id=45891821150",
                "tchaoshi": 0,
                "dsrScore": 4.90,
                "dsrPercent": 63.27,
                "shipScore": 4.90,
                "shipPercent": 54.04,
                "serviceScore": 4.90,
                "servicePercent": 57.57,
                "subcid": [
                    8409,
                    116909
                ],
                "video": "https://cloud.video.taobao.com/play/u/2127030673/p/2/e/6/t/1/271341637157.mp4?appKey=38829",
                "quanMLink": 0,
                "hzQuanOver": 0,
                "yunfeixian": 0,
                "estimateAmount": 0,
                "freeshipRemoteDistrict": 0,
                "specialText": [],
                "tbcid": 50008056
            }
        ],
        "totalNum": 81,
        "pageId": "0c77dcc68110f8ab"
    }
}
错误码列表: