拼多多根据ID取商品详情原数据 API 返回值说明
item_get_app-根据ID取商品详情原数据
pinduoduo.item_get_app
请求地址: 申请数据调用接口
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| key | String | 是 | 调用key(必须以GET方式拼接在URL中) |
| secret | String | 是 | 调用密钥 |
| api_name | String | 是 | API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] |
| cache | String | 否 | [yes,no]默认yes,将调用缓存的数据,速度比较快 |
| result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读 |
| lang | String | 否 | [cn,en,ru]翻译语言,默认cn简体中文 |
| version | String | 否 | API版本 |
请求参数:num_iid=1620002566
参数说明:num_iid:商品ID ;
Version: Date:
| 名称 | 类型 | 必须 | 示例值 | 描述 |
|---|---|---|---|---|
| item | Mix | 0 | 获得拼多多app商品详情原数据 |
<?php
// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.…….cn/help/demo/sdk/demo-sign.php
$method = "GET";
$url = "https://api-gw.……cn/pinduoduo/item_get_app/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=1620002566";
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_ENCODING, "gzip");
var_dump(curl_exec($curl));
?>
{
"item": {
"destination_type": 2,
"destination_url": "order_checkout.html",
"goods": {
"brand_id": "",
"cat_id": 8484,
"cat_id_1": 8439,
"cat_id_2": 8456,
"cat_id_3": 8484,
"cat_id_4": 0,
"check_quantity": 1,
"country": "",
"decoration": [
{
"contents": [
{
"height": 400,
"img_url": "https://img.pddpic.com/mms-material-img/2022-09-18/3f89d470-1af8-4dee-b529-6d62aa2ea3b7.png",
"width": 750
}
],
"enable_share": 0,
"floor_id": 18102965153,
"key": "DecImage",
"priority": 0,
"type": "text"
},
{
"contents": [
{
"height": 330,
"img_url": "https://t00img.yangkeduo.com/goods/images/2019-02-15/ddf6fe7b-b536-4183-932d-69a1189a3f59.png",
"width": 750
}
],
"enable_share": 1,
"floor_id": 18102965154,
"key": "DecImage",
"priority": 1,
"type": "image"
},
{
"contents": [
{
"height": 1500,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/20f659b04d3e7e5851c27ff9931c96fc.jpeg",
"width": 750
}
],
"enable_share": 1,
"floor_id": 18102965155,
"key": "DecImage",
"priority": 2,
"type": "image"
},
{
"contents": [
{
"height": 1058,
"img_url": "https://t00img.yangkeduo.com/goods/images/2019-11-14/4420a8c3-49ed-46d8-ab55-15e7a638ca31.jpg",
"width": 760
}
],
"enable_share": 1,
"floor_id": 18102965156,
"key": "DecImage",
"priority": 3,
"type": "image"
},
{
"contents": [
{
"height": 1500,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/26c3e9d5cfbaf4e8f13b2bdd38f48d71.jpeg",
"width": 750
}
],
"enable_share": 1,
"floor_id": 18102965157,
"key": "DecImage",
"priority": 4,
"type": "image"
},
{
"contents": [
{
"height": 1500,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/0aa872fa74599dad7b6aefe6b6c035c0.jpeg",
"width": 750
}
],
"enable_share": 1,
"floor_id": 18102965158,
"key": "DecImage",
"priority": 5,
"type": "image"
},
{
"contents": [
{
"height": 1500,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/6bc959e32a30424c7a5284a37676999c.jpeg",
"width": 750
}
],
"enable_share": 1,
"floor_id": 18102965159,
"key": "DecImage",
"priority": 6,
"type": "image"
},
{
"contents": [
{
"height": 1500,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/1fa9861a8c99c5e9e8119fd2239fef5a.jpeg",
"width": 750
}
],
"enable_share": 1,
"floor_id": 18102965160,
"key": "DecImage",
"priority": 7,
"type": "image"
},
{
"contents": [
{
"height": 1500,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/b62cabf1d2320c5761e3f4c15203fb20.jpeg",
"width": 750
}
],
"enable_share": 1,
"floor_id": 18102965161,
"key": "DecImage",
"priority": 8,
"type": "image"
},
{
"contents": [
{
"height": 1500,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/6f6e54376a66cbc78e16700d4c424fe1.jpeg",
"width": 750
}
],
"enable_share": 1,
"floor_id": 18102965162,
"key": "DecImage",
"priority": 9,
"type": "image"
},
{
"contents": [
{
"height": 1500,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/2f60753dfc875a6876adc35833a69d31.jpeg",
"width": 750
}
],
"enable_share": 1,
"floor_id": 18102965163,
"key": "DecImage",
"priority": 10,
"type": "image"
},
{
"contents": [
{
"height": 1500,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/ae0116e589d8de712f8dafd0c356cefe.jpeg",
"width": 750
}
],
"enable_share": 1,
"floor_id": 18102965164,
"key": "DecImage",
"priority": 11,
"type": "image"
},
{
"contents": [
{
"height": 1500,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/da910c98fcc8de1b4d2d1498cd7899fd.jpeg",
"width": 750
}
],
"enable_share": 1,
"floor_id": 18102965165,
"key": "DecImage",
"priority": 12,
"type": "image"
},
{
"contents": [
{
"height": 1500,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/140349649d8b7d08c8e88bfbbaa2f900.jpeg",
"width": 820
}
],
"enable_share": 1,
"floor_id": 18102965166,
"key": "DecImage",
"priority": 13,
"type": "image"
},
{
"contents": [
{
"height": 1500,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/a953bae2eeb7364ef3ef2976a97d07eb.jpeg",
"width": 750
}
],
"enable_share": 1,
"floor_id": 18102965167,
"key": "DecImage",
"priority": 14,
"type": "image"
},
{
"contents": [
{
"height": 1500,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/4da59828136c3b1308aad0aa990778a7.jpeg",
"width": 750
}
],
"enable_share": 1,
"floor_id": 18102965168,
"key": "DecImage",
"priority": 15,
"type": "image"
},
{
"contents": [
{
"height": 1500,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/4a365b61a80e47288c8609ccd5982396.jpeg",
"width": 750
}
],
"enable_share": 1,
"floor_id": 18102965169,
"key": "DecImage",
"priority": 16,
"type": "image"
},
{
"contents": [
{
"height": 800,
"img_url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/cd0a8a96b783a51236812ce24c59a329.jpeg",
"width": 800
}
],
"enable_share": 1,
"floor_id": 18102965170,
"key": "DecImage",