拼多多高级API - 拼多多商品推荐接口 拼多多相似推荐接口 多多进宝商品推荐AP 拼多多商品接口

多多进宝商品推荐API

1、注册订单侠开放平台账号

注册地址: https://www.dingdanxia.com/user/register/index.html  

2、获取接口秘钥apikey

登录个人中心 - 系统设置 - 接口管理 找到接秘钥apikey,apikey 接口秘钥是调用接口的唯一凭证,请妥善保管! 

3、PHP代码调用示例

<?php
// +----------------------------------------------------------------------
// | 订单侠开放平台 www.dingdanxia.com  [ 专为淘客开发者提供一站式API解决方案 ] 
// +----------------------------------------------------------------------
//接口秘钥
$apikey = '这里填写你的apikey';
//拼多多商品推荐接口
$apiurl = "http://api.tbk.dingdanxia.com/pdd/goods_recommend";
 
 
//开始调用
$result = curl_post($apiurl, array(
    //接口秘钥
        "apikey"    => $apikey,
        "channel_type"  =>3,
        "goods_ids"     =>"148681910312"
));
 
 
//打印结果
print_r($result);
 
/**
 * post请求
 * @param string $url
 * @param array $params
 * @param int $timeout
 */
function curl_post($url, $params, $timeout = 3) {
    try {
        foreach ($params as $key => $val) {
            $post[] = "{$key}={$val}";
        }
        $post_data  = implode('&', $post);
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
        return curl_exec($ch);
    }
    catch (Exception $e) {
        return false;
    }
}

4、接口返回结果


{
    "code":200,
    "msg":"请求成功【success】",
    "data":{
        "total":1,
        "list_id":"1594647031528_c241eabac346ff046cb2c36aadc04336",
        "list":[
            {
                "coupon_remain_quantity":0,
                "promotion_rate":10,
                "cat_ids":[
                    6630,
                    6654,
                    6655,
                    7573
                ],
                "coupon_min_order_amount":0,
                "mall_id":752803377,
                "mall_name":"关小琦的小店",
                "coupon_total_quantity":0,
                "merchant_type":"6",
                "lgst_txt":"高",
                "goods_name":"五常稻花香大米真空包装大米10斤东北大米19新米五常大米防潮防虫",
                "sales_tip":"1.8万",
                "goods_id":102503107581,
                "desc_txt":"高",
                "goods_desc":"五常稻花香大米真空包装大米10斤东北大米19新米五常大米防潮防虫",
                "opt_name":"食品",
                "goods_thumbnail_url":"https://t00img.yangkeduo.com/goods/images/2020-06-05/3dc9843c2b6400729cc6a4c2121509c0.jpeg",
                "opt_id":"1",
                "opt_ids":[
                    1,
                    20741,
                    8584,
                    10696,
                    8585,
                    8586,
                    10700,
                    12,
                    5964,
                    5965,
                    5966,
                    22926,
                    22931,
                    11542,
                    5914,
                    219,
                    6364,
                    6366,
                    6879,
                    6367,
                    6368,
                    6370,
                    10723,
                    10020,
                    232,
                    11882,
                    5867,
                    6389,
                    22966,
                    9975,
                    8569,
                    8570,
                    8571,
                    124,
                    9980
                ],
                "search_id":"201f57ffd32964431bf0361df74857ce9d2",
                "goods_image_url":"https://t00img.yangkeduo.com/goods/images/2020-06-05/5305165c-f74f-41c2-81e0-26c99e6b623a.jpeg",
                "has_coupon":false,
                "min_normal_price":3181,
                "serv_txt":"高",
                "coupon_start_time":0,
                "min_group_price":3081,
                "coupon_discount":0,
                "coupon_end_time":0
            }
        ],
        "request_id":"15946470315132750",
        "search_id":"201f57ffd32964431bf0361df74857ce9d2"
    }
}

接口文档:https://www.dingdanxia.com/doc/153/86

在线测试:https://www.dingdanxia.com/apitest/153/86

淘宝相似推荐接口:https://www.dingdanxia.com/doc/41/8

京东相似推荐接口:https://www.dingdanxia.com/doc/100/94

实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值