> 文章列表 > 拼多多根据ID获取商品详情页简版数据 API 接口返回值说明

拼多多根据ID获取商品详情页简版数据 API 接口返回值说明

拼多多根据ID获取商品详情页简版数据 API 接口返回值说明

准备工作:

1)获取一个key和secret。

2)然后登录请求地址选择需要该接口。

3)输入自己的key和secret,对接口进行测试。从而了解返回信息,方便程序获取。

item_get_easy-根据ID获取商品详情页简版数据

公共参数

名称 类型 必须 描述
key String 调用key(必须以GET方式拼接在URL中)
secret String 调用密钥(接口v;18870288846)
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:

名称 类型 必须 示例 描述

num_iid

String 0 1999629976 商品ID

title

String 0 2019新款女装短袖t恤女夏宽松韩版休闲上衣百搭蝙蝠衫五分袖体恤 商品标题

price

Float 0 8.8 价格

total_price

Float 0

orginal_price

Float 0 原价

nick

String 0 雅怡服饰1688 卖家昵称

sales

Int 0 76 销量

detail_url

String 0 http://yangkeduo.com/goods.html?goods_id=1999629976 宝贝链接

item_imgs

Mix 0 [{"url": "//t00img.yangkeduo.com/t05img/images/2018-06-28/24bcb29df1195edaea840afd3e1bdaf9.jpeg?imageMogr2/strip%7CimageView2/2/w/1300/q/80"}] 宝贝图片列表

pic_url

String 0 //t00img.yangkeduo.com/t05img/images/2018-06-28/24bcb29df1195edaea840afd3e1bdaf9.jpeg?imageMogr2/thumbnail/150x/quality/50 宝贝图片

seller_info

Mix 0 {"nick": "雅怡服饰1688", "city": "", "level": null, "rate": null, "score": 4.27, "delivery_score": 4.37, "item_score": 4.38, "shop_type": "", "user_num_id": "", "sid": 99033, "shop_name": "雅怡服饰1688", "zhuy": "", "menu": [] } 卖家信息

shop_item

Mix 0 []

relate_items

Mix 0 []

 请求示例(Curl、PHP、PHPsdk、JAVA、C#、Python...)

<?php// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://v-x-;18870288846?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));

响应示例

响应示例
{"num_iid": "1620002566","title": "【2件套】套装秋冬新款仿獭兔毛钉珠皮草毛毛短外套加厚大衣女装","price": "95.4","cid": 8456,"desc_short": "【2件套】套装秋冬新款仿獭兔毛钉珠皮草毛毛短外套加厚大衣女装","total_price": "","orginal_price": "209.0","nick": "果果家气质女装","video": "","sales": "10万+","detail_url": "https://mobile.yangkeduo.com/goods1.html?goods_id=1620002566","item_imgs": {"item_img": [{"url": "http://omsproductionimg.yangkeduo.com/images/2017-12-12/bcf848aa71c6389607ae7a84b70f1543.jpeg"},{"url": "http://omsproductionimg.yangkeduo.com/images/2017-12-12/176019babfdecffa1d9f98f40b7e99b4.jpeg"},{"url": "http://omsproductionimg.yangkeduo.com/images/2017-12-12/efb5db42397550bffd3211ca6f197498.jpeg"},{"url": "http://omsproductionimg.yangkeduo.com/images/2017-12-12/d209ef7bcc9183c3bb8ca1dfdb108d49.jpeg"},{"url": "http://omsproductionimg.yangkeduo.com/images/2017-12-12/74257ab65f3f00da7a90fde9042fe640.jpeg"},{"url": "https://t00img.yangkeduo.com/goods/images/2019-08-17/e8fbd9cb-cc74-4caa-9380-84c46d27b008.jpg"},{"url": "https://t00img.yangkeduo.com/goods/images/2019-08-17/d76f515b-e375-4060-b94e-cf64f6b0964e.jpg"},{"url": "https://t00img.yangkeduo.com/goods/images/2019-08-17/f2f279b5-6000-4fbe-b99b-7c1cbd7884ea.jpg"}]},"pic_url": "http://omsproductionimg.yangkeduo.com/images/2017-12-12/bcf848aa71c6389607ae7a84b70f1543.jpeg","shop_id": "461742","_ddf": "yke","seller_info": {"nick": "果果家气质女装","score": 31,"delivery_score": "","item_score": "","shop_type": "","user_num_id": "461742","shop_name": "果果家气质女装","zhuy": "https://mobile.yangkeduo.com/mall_page.html?mall_id=461742","sid": "461742"},"error": "","reason": "","error_code": "0000","cache": 0,"api_info": "today:42 max:10000 all[100=42+27+31];expires:2030-12-31","execution_time": "0.205","server_time": "Beijing/2023-02-18 10:51:34","client_ip": "106.6.33.48","call_args": [],"api_type": "pinduoduo","translate_language": "zh-CN","translate_engine": "baidu","server_memory": "3.14MB","request_id": "gw-1.63f03d3629d72","last_id": "1558708792"
}

文章内容有限,欢迎私信沟通交流!