请求参数:q=女装&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort=&page_size=&seller_info=&nick=&ppath=&imgid=&filter=
参数说明:q:搜索关键字
cat:分类ID
start_price:开始价格
end_price:结束价格
sort:排序[bid,_bid,bid2,_bid2,_sale,_credit]
(bid:总价,bid2:商品价格,sale:销量,credit信用,加_前缀为从大到小排序)
page:页数
API测试工具 点击申请试用
响应参数
Version: Date:
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
title | String | 0 | 法式复古山本超仙chic仙女赫本网红初春很仙法国小众裙子两件套装 | 商品标题 |
pic_url | String | 0 | //img.alicdn.com/bao/uploaded/i3/3083218865/O1CN012FMDaiwxkenJGaM_!!0-item_pic.jpg | 宝贝图片 |
promotion_price | Float | 0 | 178.00 | 优惠价 |
price | Float | 0 | 178.00 | 价格 |
sales | Int | 0 | 890 | 销量 |
num_iid | Bigint | 0 | 577437133060 | 宝贝ID |
sample_id | String | 0 | 商品风格标识ID | |
seller_nick | String | 0 | 初穆旗舰店 | 掌柜昵称 |
post_fee | Float | 0 | 10.00 | 物流费用 |
area | String | 0 | 山东 | 店铺所在地 |
detail_url | String | 0 | //detail.tmall.com/item.htm?id=586794298909&ns=1&abbucket=0 | 宝贝链接 |
seller_info | Mix | 0 | {"level": 99, "shop_type": "B", "user_num_id": "2217148345", "cid": 0, "delivery_score": "", "item_score": "", "score_p": ""} | 卖家信息 |
请求示例
<?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/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=文胸内衣&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort=&page_size=&seller_info=&nick=&ppath=&imgid=&filter=";
$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 返回结果
---------------------------------------
{
"items": {
"page": "1",
"real_total_results": 1000,
"total_results": 1000,
"page_size": 40,
"pagecount": 50,
"data_from": "hid",
"item": [
{
"title": "3分女SD10/13/16 BJD娃娃 +超性感白色蕾丝内衣/文胸/胸罩",
"pic_url": "https://gw.alicdn.com/imgextra/T1mccxXddfXXXXXXXX_!!0-item_pic.jpg",
"promotion_price": "28.00",
"price": "28.00",
"sales": 50000,
"num_iid": "18320499188",
"seller_nick": "林下瞳",
"seller_id": "12692762",
"detail_url": "https://item.taobao.com/item.htm?id=18320499188",
"data_f": "Ha",
"data_update": "2022-09-07 15:24:57"
},
{
"title": "【COCO】BJD DD 三分 3分 四分 4分 娃衣 内衣 花纹 性感 套装",
"pic_url": "https://gw.alicdn.com/imgextra/O1CN01dmAYWa2AReLv8iY0N_!!66088200.jpg",
"promotion_price": "68.00",
"price": "68.00",
"sales": 30000,
"num_iid": "624198442753",
"seller_nick": "欣悦baby",
"seller_id": "66088200",
"detail_url": "https://item.taobao.com/item.htm?id=624198442753",
"data_f": "Ha",
"data_update": "2022-09-07 18:11:13"
},
{
"title": "文胸+内裤性感美背全蕾丝女妈妈舒适背心大码胖MM内衣2件套装夏季",
"pic_url": "https://gw.alicdn.com/imgextra/O1CN01s4PgW41R2JeYSIC2G_!!2303802053.jpg",
"promotion_price": "23.60",
"price": "39.00",
"sales": 180000,
"num_iid": "592040170189",
"seller_nick": "xsl13539658490",
"seller_id": "2303802053",
"detail_url": "https://item.taobao.com/item.htm?id=592040170189",
"data_f": "Ha",
"data_update": "2022-09-07 17:00:19"
},
{
"title": "苏州蓝媚儿婚纱配件 文胸 新娘文胸 胸垫 义乳 硅胶胸垫 促销",
"pic_url": "http://img.alicdn.com/imgextra/i1/T1d_6pXcJqXXbVaIjX_114431.jpg",
"promotion_price": "22.00",
"price": "22.00",
"sales": 0,
"num_iid": "13342953322",
"seller_nick": "海鹏1985",
"seller_id": "0",
"detail_url": "https://item.taobao.com/item.htm?id=13342953322",
"data_f": "ez",
"data_update": "2021-10-31 10:28:28&