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

{{item.type_name}}:

API 市场 / 品牌栏目
 

品牌栏目
吐槽建议
应用场景:
用于搭建应用内的特色品牌栏目
接口说明:
接口返回各个分类下大淘客收录的所有品牌数据,便于您挑选高品质的商品。(获取品牌id后调用单个品牌详情接口获取品牌下所有的商品信息)
使用人数: 2000+
品牌栏目 接口测试 建议使用通用GET方法调用
  • 接口说明
  • 更新日志
  • 接口版本号:v1.0.0

请求地址:https://openapi.dataoke.com/api/delanys/brand/get-column-list 复制

请求方式:GET

公共参数:
请求参数:

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

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

SDK调用示例
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkGetColumnListRequest request = new DtkGetColumnListRequest();
request.setCid(12);
request.setPageId("1");
request.setPageSize(50);
DtkApiResponse < DtkDiffPageResponse < DtkGetColumnListResponse >> execute = client.execute(request);
    //品牌栏目
    $data = [
        'appKey' => "xxxxxxxxxxxx",
        'version' => "v1.0.0",
        ...
    ];
    $host = "https://openapi.dataoke.com/api/delanys/brand/get-column-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 GetBrandColumnList();
    $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 {
		"cid": "4",
	}

	// 4.业务请求,示例使用品牌栏目和淘系万能解析接口,其它开放接口使用方法相同
	resp, err := client.BrandColumnList(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": 1605144966212,
    "code": 0,
    "msg": "成功",
    "data": {
        "lists": [
            {
                "brandId": 94385,
                "brandName": "仁和",
                "brandLogo": "https://img.alicdn.com/bao/uploaded///img.taobaocdn.com/tps/TB1i5tflFuWBuNjSspnXXX1NVXa",
                "brandFeatures": "一个会说故事的原创先锋品牌",
                "brandDesc": "仁和品牌诞生于中国药都樟树,作为上市药企,仁和以“为人类健康服务”为宗旨,精研产品,致力于传统国药与高科技医药产品的研发与推广。仁和希望以仁心制造的产品和服务达成产业报国、造福天下的宏伟愿景。仁和官方旗舰店作为仁和集团在天猫平台自营的品牌旗舰店,致力于为人们提供更丰富的仁和产品。",
                "sales": 134682,
                "maxDiscountAmount": 65.00,
                "maxDiscount": 6.6,
                "goodsList": [
                    {
                        "id": 30331380,
                        "goodsId": "",
                        "cid": 4,
                        "brandId": "94385",
                        "title": "仁和艾草暖贴宝宝贴自发热大姨妈贴女宫暖冬季宫寒调理益母草热贴",
                        "desc": "不是普通的自发热贴哦。可以当暖宫贴。添加了艾母草,暖经祛寒。持续12小时发热,贴肚子、后背、腿上一整天都是暖和的",
                        "specialText": [],
                        "commissionType": 3,
                        "commissionRate": 0.00,
                        "activityType": 1,
                        "dailySales": 1459,
                        "monthSales": 0,
                        "mainPic": "https://img.alicdn.com/imgextra/i4/2439616700/O1CN01e6zb7U1zMeHEVhqWI_!!2439616700.jpg",
                        "marketingMainPic": "https://sr.ffquan.cn/dtk_user_fd/20201111/bulqcaiulrg9h2eqof1g0.jpg",
                        "video": "https://cloud.video.taobao.com/play/u/2206574253611/p/2/e/6/t/1/283822548849.mp4?appKey=38829",
                        "originPrice": 4.90,
                        "actualPrice": 2.90,
                        "couponId": "deb8ea2d44424840a80aa6c2c97a5702",
                        "couponPrice": 2.0,
                        "couponLink": "https://uland.taobao.com/quan/detail?sellerId=2206574253611&activityId=deb8ea2d44424840a80aa6c2c97a5702",
                        "couponConditions": "4",
                        "couponReceiveNum": 1000,
                        "couponTotalNum": 99000,
                        "couponEndTime": "2020-11-14 23:59:59",
                        "couponStartTime": "2020-11-12 00:00:00",
                        "discount": 5.90,
                        "freeshipRemoteDistrct": 0,
                        "dTitle": "仁和艾草自发热暖贴5贴",
                       "flagshipStore": 0,
                    },
                    {
                        "id": 30301725,
                        "goodsId": "",
                        "cid": 4,
                        "brandId": "94385",
                        "title": "助眠神器快速入睡失眠贴睡不着改善睡眠贴秒睡深度催眠药安神正品",
                        "desc": "晚上睡不着多梦容易醒,杨四郎来帮你,比用药物好多了,安神助眠,每晚一贴,一觉睡到自然醒。",
                        "specialText": [],
                        "commissionType": 3,
                        "commissionRate": 0.00,
                        "activityType": 1,
                        "dailySales": 245,
                        "monthSales": 8,
                        "mainPic": "//img.alicdn.com/i8/O1CN01TiuWe51TNxhzKc90z_!!2-item_pic.png",
                        "marketingMainPic": "https://sr.ffquan.cn/dtk_user_fd/20201110/bul5s5qulrgej3hhcqfg0.jpg",
                        "video": "https://cloud.video.taobao.com/play/u/2208248381468/p/2/e/6/t/1/280438130523.mp4?appKey=38829",
                        "originPrice": 47.0,
                        "actualPrice": 37.0,
                        "couponId": "2710fdf4f3dd4ea19eba763046efb429",
                        "couponPrice": 10.0,
                        "couponLink": "https://uland.taobao.com/quan/detail?sellerId=2208248381468&activityId=2710fdf4f3dd4ea19eba763046efb429",
                        "couponConditions": "35",
                        "couponReceiveNum": 62,
                        "couponTotalNum": 9938,
                        "couponEndTime": "2020-11-12 23:59:59",
                        "couponStartTime": "2020-11-10 00:00:00",
                        "discount": 7.80,
                        "freeshipRemoteDistrct": 1,
                        "dTitle": "助眠神器失眠贴安神正品"
                    },
                    {
                        "id": 30226416,
                        "goodsId": "",
                        "cid": 4,
                        "brandId": "94385",
                        "title": "仁和布洛芬缓释胶囊缓解痛经女偏头痛止痛药牙痛止疼药感冒退烧药",
                        "desc": "【满2件9折】用于缓解轻至中度疼痛如:关节痛、肌肉痛、神经痛、头痛、偏头痛、牙痛痛经,也用于普通感冒或流行性感冒引起的发热。",
                        "specialText": [
                            "满2件9折"
                        ],
                        "commissionType": 3,
                        "commissionRate": 0.00,
                        "activityType": 3,
                        "dailySales": 227,
                        "monthSales": 2544,
                        "mainPic": "https://img.alicdn.com/bao/uploaded/TB16TWevET1gK0jSZFhXXaAtVXa.png",
                        "marketingMainPic": "https://sr.ffquan.cn/dtk_user_fd/20201106/buim9daulrgdh0dnir700.jpg",
                        "video": "",
                        "originPrice": 16.80,
                        "actualPrice": 11.80,
                        "couponId": "31b2022e53a942e3a5b83f78e9707ee1",
                        "couponPrice": 5.0,
                        "couponLink": "https://uland.taobao.com/quan/detail?sellerId=2928278102&activityId=31b2022e53a942e3a5b83f78e9707ee1",
                        "couponConditions": "5.1",
                        "couponReceiveNum": 10500,
                        "couponTotalNum": 19500,
                        "couponEndTime": "2020-11-12 23:59:59",
                        "couponStartTime": "2020-11-05 00:00:00",
                        "discount": 7.00,
                        "freeshipRemoteDistrct": 1,
                        "dTitle": "仁和布洛芬缓释胶囊22粒"
                    }
                ]
            }
        ],
        "currentPage": 1,
        "pageSize": 1,
        "totalCount": 20
    }
}
常见错误码:
{
    "msg":"服务器错误",
    "code":-1,
    "time":1554365022200
}
错误码列表: