item_search_tmall - 按关键字搜索天猫商品
点击注册:点击注册
输入关键字搜索天猫商品列表
API 请求参数:
q:搜索关键字
cat:分类ID
start_price:开始价格
end_price:结束价格
sort:排序[bid,_bid,bid2,_bid2,_sale,_credit]
(bid:总价,bid2:商品价格,sale:销量,credit信用,加_前缀为从大到小排序)
page:页数
API请求示例:
<?php
// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.onebound.cn/help/demo/sdk/demo-sign.php
$method = "GET";
$url = "https://api-gw.onebound.cn/taobao/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=520813250866&is_promotion=1";
$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));
?>
点击免费注册:点击此处
Result Object:
---------------------------------------
{
"page": "1",
"page_no": "1",
"real_total_results": "3406260",
"total_results": "3406260",
"page_size": "10",
"pagecount": "100",
"item": [
{
"title": "2022新款夏季修身防晒衫外套",
"pic_url": "https://img.alicdn.com/bao/uploaded/i3/1641256859/TB2id1BpCtYBeNjSspkXXbU8VXa_!!1641256859-0-item_pic.jpg",
"promotion_price": "29.9",
"price": "29.9",
"sales": "2000+",
"num_iid": "568929861254",
"seller_nick": "依久佳旗舰店",
"area": "浙江 嘉兴",
"seller_id": "1641256859",
"detail_url": "https://detail.tmall.com/item.htm?id=568929861254&skuId=3811115302117&spm=a1z60.7754815.item.0"
},
{
"title": "冰丝无痕吊带衫针织上衣背心",
"pic_url": "https://img.alicdn.com/bao/uploaded/i2/902777980/O1CN01GscgQF28otBRwrEWJ_!!0-item_pic.jpg",
"promotion_price": "7.9",
"price": "7.9",
"sales": "700+",
"num_iid": "610589591050",
"seller_nick": "桃太郎旗舰店",
"area": "浙江 金华",
"seller_id": "902777980",
"detail_url": "https://detail.tmall.com/item.htm?id=610589591050&skuId=4293020908073&spm=a1z60.7754815.item.1"
},
{
"title": "时尚显瘦两件套减龄棉麻连衣裙",
"pic_url": "https://img.alicdn.com/bao/uploaded/i1/2110179524/O1CN01hXwrnL2KE2jUphMF2_!!2110179524-0-lubanu-s.jpg",
"promotion_price": "158.0",
"price": "158.0",
"sales": "65",
"num_iid": "618706246426",
"seller_nick": "岚贝诗旗舰店",
"area": "浙江 杭州",
"seller_id": "2110179524",
"detail_url": "https://detail.tmall.com/item.htm?id=618706246426&skuId=4539433687624&spm=a1z60.7754815.item.2"
},
{
"title": "夏季冰丝2022年新款防晒服外套",
"pic_url": "https://img.alicdn.com/bao/uploaded/i1/3394291159/O1CN01pSwioU1KQrdgy1wu5_!!3394291159-0-lubanu-s.jpg",
"promotion_price": "69.0",
"price": "69.0",
"sales": "300+",
"num_iid": "617698193068",
"seller_nick": "形慕女装旗舰店",
"area": "广东 广州",
"seller_id": "3394291159",
"detail_url": "https://detail.tmall.com/item.htm?id=617698193068&skuId=4528706502209&spm=a1z60.7754815.item.3"
},
{
"title": "夏装长袖上衣新款透气薄外套",
"pic_url": "https://img.alicdn.com/bao/uploaded/i4/3417881743/O1CN014eiGsk1OkKyDrrLvx_!!0-item_pic.jpg",
"promotion_price": "39.0",
"price": "39.0",
"sales": "500+",
"num_iid": "617028784704",
"seller_nick": "含欣草旗舰店",
"area": "浙江 嘉兴",
"seller_id": "3417881743",
"detail_url": "https://detail.tmall.com/item.htm?id=617028784704&skuId=4353367432712&spm=a1z60.7754815.item.4"
},
{
"title": "亚麻大码宽松无袖上衣女装背心",
"pic_url": "https://img.alicdn.com/bao/uploaded/i2/2979332762/TB1I_z6bzQnBKNjSZSgXXXHGXXa_!!0-item_pic.jpg",
"promotion_price": "29.0",
"price": "29.0",
"sales": "200+",
"num_iid": "545011616079",
"seller_nick": "素伊莎旗舰店",
"area": "广东 广州",
"seller_id": "2979332762",
"detail_url": "https://detail.tmall.com/item.htm?id=545011616079&skuId=0&spm=a1z60.7754815.item.5"
},
{
"title": "无袖t恤小上衣配西装吊带背心",
"pic_url": "https://img.alicdn.com/bao/uploaded/i1/3009170952/O1CN01NPPHHF1Iu3eIa8MhB_!!0-item_pic.jpg",
"promotion_price": "59.0",
"price": "59.0",
"sales": "96",
"num_iid": "616002481449",
"seller_nick": "翠朵旗舰店",
"area": "广东 东莞",
"seller_id": "3009170952",
"detail_url": "https://detail.tmall.com/item.htm?id=616002481449&skuId=4512239206964&spm=a1z60.7754815.item.6"
},
{
"title": "网红春季2022新款泫雅露脐背心",
"pic_url": "https://img.alicdn.com/bao/uploaded/i4/3070926960/O1CN01DvtrSJ21HjDlNWhzF_!!3070926960-0-lubanu-s.jpg",
"promotion_price": "6.8",
"price": "6.8",
"sales": "300+",
"num_iid": "616931625816",
"seller_nick": "太安莉女装旗舰店",
"area": "广东 广州",
"seller_id": "3070926960",
"detail_url": "https://detail.tmall.com/item.htm?id=616931625816&skuId=4350057172852&spm=a1z60.7754815.item.7"
},
{
"title": "2022新款夏ins潮服洋气外套",
"pic_url": "https://img.alicdn.com/bao/uploaded/i2/3296163800/O1CN01cvfc5I1dwRksZpPm0_!!0-item_pic.jpg",
"promotion_price": "90.0",
"price": "90.0",
"sales": "100+",
"num_iid": "617985857353",
"seller_nick": "爱蔻奴旗舰店",
"area": "浙江 杭州",
"seller_id": "3296163800",
"detail_url": "https://detail.tmall.com/item.htm?id=617985857353&skuId=4364004245866&spm=a1z60.7754815.item.8"
},
{
"title": "夏季防晒衣长袖薄款女百搭外套",
"pic_url": "https://img.alicdn.com/bao/uploaded/i3/1983826695/O1CN0109snTv1zKMFpoRHNo_!!1983826695-0-lubanu-s.jpg",
"promotion_price": "58.0",
"price": "58.0",
"sales": "15",
"num_iid": "616067506772",
"seller_nick": "恋红颜服饰旗舰店",
"area": "江苏 苏州",
"seller_id": "1983826695",
"detail_url": "https://detail.tmall.com/item.htm?id=616067506772&skuId=4510612798517&spm=a1z60.7754815.item.9"
}
],
"data_from": "tianmiao",
"error": "",
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:84 max:10100 all[172=84+62+26]",
"execution_time": "11.24",
"server_time": "Beijing/2022-05-24 16:39:42",
"client_ip": "106.6.35.196",
"call_args": [],
"api_type": "taobao",
"translate_language": "zh-CN",
"translate_engine": "google_new",
"server_memory": "5.91MB",
"request_id": "gw-1.628c99c3860d9",
"last_id": "983906345"
}