京东联盟高级API - 京粉精选商品查询接口 京东精选商品 京东联盟精选商品

京东联盟精选优质商品,每日更新,可通过频道ID查询各个频道下的精选商品。用获取的优惠券链接调用转链接口(https://www.dingdanxia.com/doc/97/94)时,需传入搜索接口link字段返回的原始优惠券链接。

可获取京东联盟:

1-好券商品,2-超级大卖场,10-9.9专区,22-热销爆品,23-为你推荐,24-数码家电,25-超市,26-母婴玩具,27-家具日用,28-美妆穿搭,29-医药保健,30-图书文具,31-今日必推,32-品牌好货,33-秒杀商品,34-拼购商品,40-高收益,41-自营热卖榜,109-新品首发,110-自营,125-首购商品,129-高佣榜单,130-视频商品

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

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

2、获取接口秘钥apikey

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

3、PHP代码调用示例

<?php
// +----------------------------------------------------------------------
// | 订单侠开放平台 www.dingdanxia.com  [ 专为淘客开发者提供一站式API解决方案 ] 
// +----------------------------------------------------------------------
//接口秘钥
$apikey = '这里填写你的接口秘钥';
//京粉精选商品查询接口
$apiurl = "http://api.tbk.dingdanxia.com/jd/query_jingfen_goods";
 
 
//开始调用
$result = curl_post($apiurl, array(
    //接口秘钥
        "apikey"     => $apikey,
        "eliteId"    =>1,
        //频道id:1-好券商品,2-超级大卖场,10-9.9专区,22-热销爆品,23-为你推荐,24-数码家电,25-超市,26-母婴玩具,27-家具日用,28-美妆穿搭,29-医药保健,30-图书文具,31-今日必推,32-品牌好货,33-秒杀商品,34-拼购商品,40-高收益,41-自营热卖榜,109-新品首发,110-自营,125-首购商品,129-高佣榜单,130-视频商品
));
 
 
//打印结果
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;
    }
}

 

5、接口返回结果


{
    "code":200,
    "msg":"请求成功【success】",
    "total_results":238,
    "data":[
        {
            "brandCode":"65772",
            "brandName":"乐百氏(robust)",
            "categoryInfo":{
                "cid1":1320,
                "cid1Name":"食品饮料",
                "cid2":1585,
                "cid2Name":"饮料冲调",
                "cid3":10975,
                "cid3Name":"饮用水"
            },
            "comments":1671,
            "commissionInfo":{
                "commission":21,
                "commissionShare":20,
                "couponCommission":11.8,
                "plusCommissionShare":20
            },
            "couponInfo":{
                "couponList":[
                    {
                        "bindType":3,
                        "discount":46,
                        "getEndTime":1596211198000,
                        "getStartTime":1593412354000,
                        "hotValue":0,
                        "isBest":1,
                        "link":"https://coupon.m.jd.com/coupons/show.action?linkKey=AAROH_xIpeffAs_-naABEFoeMLCXnlg5EjTjutoCns_A_jGdCP_ksr8eed-KJWLrMlsUEdkRXCYw2MNQF_veRm60TbLWsA",
                        "platformType":0,
                        "quota":105,
                        "useEndTime":1596211199000,
                        "useStartTime":1593446400000
                    },
                    {
                        "bindType":3,
                        "discount":46,
                        "getEndTime":1594483199000,
                        "getStartTime":1594137600000,
                        "isBest":0,
                        "link":"https://coupon.m.jd.com/coupons/show.action?linkKey=AAROH_xIpeffAs_-naABEFoecnrsGhcnuvW0ZgfXFjG0FT49uFGUFRmwWc02l9eymtDFj477o07JE1KV6Paa8xjdgUYn6g",
                        "platformType":0,
                        "quota":105,
                        "useEndTime":1594569599000,
                        "useStartTime":1594137600000
                    }
                ]
            },
            "goodCommentsShare":100,
            "imageInfo":{
                "imageList":[
                    {
                        "url":"http://img14.360buyimg.com/ads/jfs/t1/54478/29/13517/123076/5da6de49E3bfb92cb/841f20f7b7bfcd4a.jpg"
                    },
                    {
                        "url":"http://img14.360buyimg.com/ads/jfs/t1/69915/16/11573/144913/5d8d846cE54f9f9c1/f1b2ae68a9dc8c1b.jpg"
                    },
                    {
                        "url":"http://img14.360buyimg.com/ads/jfs/t1/55997/27/12730/47346/5d9bf315E950f6ab7/394b1e75be9e7718.jpg"
                    },
                    {
                        "url":"http://img14.360buyimg.com/ads/jfs/t1/68558/25/11579/287040/5d8d846dE9b1994c7/bb8c6aa77da6eee1.jpg"
                    },
                    {
                        "url":"http://img14.360buyimg.com/ads/jfs/t1/82623/32/12284/87014/5d9bf315E74e14421/d35c6d6331b81d98.jpg"
                    }
                ]
            },
            "inOrderCount30Days":108,
            "inOrderCount30DaysSku":108,
            "isHot":1,
            "materialUrl":"item.jd.com/57742563651.html",
            "owner":"p",
            "pinGouInfo":[
            ],
            "priceInfo":{
                "lowestCouponPrice":59,
                "lowestPrice":105,
                "lowestPriceType":1,
                "price":105
            },
            "resourceInfo":{
                "eliteId":1,
                "eliteName":"好券商品"
            },
            "shopInfo":{
                "shopId":10160389,
                "shopLevel":4.5,
                "shopName":"乐百氏官方旗舰店"
            },
            "skuId":57742563651,
            "skuName":"乐百氏 (Robust ) 苏打水 饮用水克东天然苏打水 弱碱性水470ml*15瓶/箱 整箱瓶装水",
            "spuid":57742563651
        }
    ]
}

接口文档:https://www.dingdanxia.com/doc/99/94

在线测试:https://www.dingdanxia.com/apitest/99/94

 

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

抵扣说明:

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

余额充值