京东联盟高级API - 京东联盟商品详情接口 京东查询商品详情API 京东商品详情

商品详情查询接口,大字段信息,本接口是查询京东联盟商品详情信息

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/item_detail";
 
 
//开始调用
$result = curl_post($apiurl, array(
    //接口秘钥
        "apikey"     => $apikey,
	    "skuIds"       =>"29357345299",
        //京东商品ID
));
 
 
//打印结果
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】",
    "data":[
        {
            "baseBigFieldInfo":{
                "propCode":"
                [
                    {
                        \"newAttId\":3237,
                        \"newAttMapId\":119896,
                        \"newGroupId\":1,
                        \"newValId\":76187,
                        \"newValMapId\":696585,
                        \"skuId\":29357345299
                    },
                    {
                        \"newAttId\":2588,
                        \"newAttMapId\":131207,
                        \"newGroupId\":1,
                        \"newValId\":106295,
                        \"newValMapId\":696590,
                        \"skuId\":29357345299
                    },
                    {
                        \"newAttId\":3680,
                        \"newAttMapId\":131208,
                        \"newGroupId\":1,
                        \"newValId\":92882,
                        \"newValMapId\":696595,
                        \"skuId\":29357345299
                    }
                ]
                ",
                "wareQD":"",
                "wdis":[
                    "http://img30.360buyimg.com/popWaterMark/jfs/t1/65586/26/5941/78979/5d40f3c9E070ffc43/3f1d06f595e01fed.jpg",
                    "http://img30.360buyimg.com/popWaterMark/jfs/t1/65830/8/4595/29328/5d2bdc13E2048a807/6ed4175dcf44a759.jpg",
                    "http://img30.360buyimg.com/popWaterMark/jfs/t1/9903/40/3773/474052/5bd80b6fEdcfe3e06/546cb8ddeaaf14e6.jpg",
                    "http://img30.360buyimg.com/popWaterMark/jfs/t1/4944/12/13387/213315/5bd80b6fEb8989f74/dfb89b7d47848471.jpg",
                    "http://img30.360buyimg.com/popWaterMark/jfs/t1/4089/17/13523/173805/5bd80b6fE8504d090/933145e177f5c501.jpg",
                    "http://img30.360buyimg.com/popWaterMark/jfs/t1/8350/10/3001/297594/5bd80b6fE1d4b6630/863e02222974ef3b.jpg",
                    "//img10.360buyimg.com/imgzone/jfs/t1/65586/26/5941/78979/5d40f3c9E070ffc43/3f1d06f595e01fed.jpg",
                    "http://img30.360buyimg.com/popWaterMark/jfs/t1/7903/4/3680/179880/5bd80b6fE9aca8790/218b3dd6eda7b074.jpg",
                    "http://img30.360buyimg.com/popWaterMark/jfs/t1/3446/22/13425/95552/5bd80b6fEb848566e/b73cf3f45e07e86a.jpg",
                    "http://img30.360buyimg.com/popWaterMark/jfs/t1/4041/25/13498/250560/5bd80b6fEd0a0943d/06eefc17c5131d68.jpg",
                    "http://img30.360buyimg.com/popWaterMark/jfs/t1/1272/14/13654/339715/5bd80b6fEac8da5eb/18ce71e7860ccab6.jpg",
                    "http://img30.360buyimg.com/popWaterMark/jfs/t1/1820/8/13261/275730/5bd80b6fE0a54ba79/8a0e8b71e554ebb9.jpg"
                ]
            },
            "categoryInfo":{
                "cid1":6728,
                "cid1Name":"汽车用品",
                "cid2":6745,
                "cid2Name":"汽车装饰",
                "cid3":14914,
                "cid3Name":"临时停车牌"
            },
            "imageInfo":{
                "imageList":[
                    {
                        "url":"http://img14.360buyimg.com/ads/jfs/t1/18321/24/127/392079/5c074ca0E9039d49c/081ed0cc9808b7ff.jpg"
                    }
                ]
            },
            "mainSkuId":28512212263,
            "owner":"p",
            "productId":11664573294,
            "skuId":29357345299,
            "skuName":"【立减2元,热卖40万件】临时停车牌挪车电话号码牌汽车用品车内饰品车上停车卡个性创意车载留言停车牌 T11停车牌【特价款】-黑色",
            "skuStatus":1
        }
    ]
}

 

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

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

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

抵扣说明:

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

余额充值