如何快速获取淘宝整店所有商品

160 阅读1分钟

**item_search_shop - 获得店铺的所有商品 **

通过API接口快速进行获取

请求参数

请求参数:shop_id=433655136&page=1&sort=

参数说明: shop_id:shop_id page:页码 sort:排序[new,bid,sale] (new 新品,bid:价格,sale:销量,bid加_前缀为从大到小排序) shop_id获取方法 网页商品源码

image.png

响应参数

image.png

免费注册测试 海量API数据接口 企业级数据定制

请求示例PHP

<?php // 请求示例 url 默认请求参数已经URL编码处理 // 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.onebound.cn/help/demo/sdk/demo-sign.php $method = "GET"; $url = "https://api-gw.onebound.cn/taobao/item_search_shop/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&shop_id=433655136&page=1&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)); ?>