API interface of all products in Taobao shop, item_search_shop-get API access instructions for all products in the shop

1. Item_search_shop-Get all the product API access instructions of the store.
Click to register to get the key and secret test account.
2. Suggested use scenarios
1. Get all the products in Taobao Tmall store
2. Get the 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 (including In the request address) [item_search,item_get,item_search_shop, etc.]
cache String No [yes,no] default yes, will call the cached data, faster
result_type String No [json,jsonu,xml,serialize,var_export] return 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: shop_url=https:/ /mxjycnx.taobao.com&start_price=&end_price=&q=&page=1&cid=&sort=&
Parameter description: shop_url: shop homepage link (https://mxjycnx.taobao.com) cid: category ID
sort: sort [bid,_bid, sale,]
(bid: total price, sale: sales, plus _ prefix is ​​from the largest (To the small order)
5. Response parameter
Name type is privacy Sample value description
num_iid Bigint 579813460997 Product ID
pic_url String //img.alicdn.com/bao/uploaded/i3/478952498/O1CN011UK7q9WzgFGKQw8
!!478952498.jpg Picture address
title String British small Leather shoes women's retro 2020 autumn and winter new net red hair shoes women's all-
match outer wear thick-heeled mid-heeled shoes shop title orginal_price String 398.00 discount
price price Float 148 price
sales Int 7 sales
detail_url String //item.taobao.com/item.htm? id=579813460997 Baby link
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/taobao/item_search_shop/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&shop_url=https://mxjycnx.taobao.com&start_price=&end_price=&q=&page=1&cid=&sort=&";
$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/112766804