Pinduoduo detail interface, Pinduoduo detail API interface access instructions

1. Pinduoduo details API interface access instructions
Click to register to get the key and secret test account.
2. Recommended usage scenarios
1. Get Pinduoduo details interface
2. Obtain product details page data information
3. Mall system construction
4. Purchasing system mall construction
5 ERP system product selection
3. Public parameter description: the
name type must describe the
key String is the calling key (must be spliced ​​in the URL by GET)
secret String is the calling key
api_name String is the API interface name (included in the request address) [item_search,item_get,item_search_shop, etc.]
cache String No [yes,no] The default yes, will call the cached data, faster
result_type String No [json,jsonu,xml,serialize,var_export] returns the data format, the default is json, The content output by jsonu can be read directly in Chinese.
lang String No [cn,en,ru] translation language, default cn simplified Chinese
version String No API version
4. API request parameter description:
request parameter: num_iid=1620002566
parameter description: num_iid: product ID ;
Fifth, the response parameter
name type is private sample value description
num_iid String 1999629976 Product ID
title String 2019 new women's short-sleeved t-shirt women's summer loose Korean casual top all- match bat shirt five-point sleeve t-shirt product title
price Float 8.8 price
minGroupPrice String
maxGroupPrice String
total_price Float
orginal_price Float original price
nick String Yayi clothing 1688 Seller Nickname
num Int 233 Inventory
sales Int 76 Sales
detail_url String http://yangkeduo.com/goods.html?goods_id=1999629976 Baby link
desc String This shop defaults to Shentong Express [and Best Huitong Zhongtong Express Zhongtong Yunda Post]. The size recommended by the merchant is for reference only. If you have any other questions, please contact customer service! If you like it, buy it quickly, the quality is guaranteed, you can buy it with confidence, and you can wear it! Product remarks
item_imgs Mix [{"url": "//t00img.yangkeduo.com/t05img/images/2018 -06-28/24bcb29df1195edaea840afd3e1bdaf9.jpeg?imageMogr2/strip%7CimageView2/2/w/1300/q/80”}] baby picture list
pic_url String //t00img.yangkeduo.com/t05img/images/2018-06-28/24bcb29df1195edaea840afd3e1bdaf9.jpeg?imageMogr2/thumbnail/150x/quality/50 baby picture
props_name String commodity property name
prop_imgs Mix {"prop_img": [{" properties": "0:0;1:1", "url": "//t00img.yangkeduo.com/t10img/images/2018-06-28/5c8f783ab2c4fea0ffea8fac73d8b2c2.jpeg"}]} product attribute picture list
props Mix product Details
skus Mix {"sku": [{"price": "16.56", "total_price": null, "orginal_price": "20.9", "properties": "0:0;1:1", "properties_name": "0:0: color: black; 1:1: size: M [75-100 kg]", "quantity": 221, "sku_id": 36410965966}] product specification information
props_list Mix {"0:0": " Color: Black", "1:1": "Size: M[75-100 kg]"} Commodity attribute
props_img Mix {"0:0;1:1": "//t00img.yangkeduo.com/t10img/images /2018-06-28/5c8f783ab2c4fea0ffea8fac73d8b2c2.jpeg”} attribute picture
property_alias String
seller_info Mix {"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”: [] } Seller information
shop_item Mix []
relate_items Mix []
6. Request example: (CURL, PHP, PHPsdk, Java, C#, Python...)

<?php

// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://api.onebound.cn/taobao/demo/sdk2020/demo-sign.php
$method = "GET";
$url = "https://api-gw.onebound.cn/pinduoduo/item_get/?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));
?>

API tool
API SDK call sample
APISDK download
API test tool

How to activate the API test, click to activate immediately

Guess you like

Origin blog.csdn.net/wx_19970108018/article/details/112799599