item_search-按关键字搜索淘宝商品注册开通
onebound.taobao.item_search
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| key | String | 是 | 调用key(必须以GET方式拼接在URL中) |
| secret | String | 是 | 调用密钥 |
| api_name | String | 是 | API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] |
| cache | String | 否 | [yes,no]默认yes,将调用缓存的数据,速度比较快 |
| result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读 |
| lang | String | 否 | [cn,en,ru]翻译语言,默认cn简体中文 |
| version | String | 否 | API版本 |
请求参数: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:页数
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": ""} | 卖家信息 |
-- 请求示例 url 默认请求参数已经URL编码处理
curl -i "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="
"items": {
"page": "1",
"real_total_results": 2000,
"total_results": 2000,
"page_size": 12,
"pagecount": "100",
"data_from": "ti",
"item": [
{
"title": "森马轻薄羽绒服短款三防送包包2022冬新款甜美白鸭绒冬装宽松廓形",
"pic_url": "http://gw.alicdn.com/i2/397341302/O1CN01biOaqF1LUMUA3Uodh_!!0-item_pic.jpg",
"promotion_price": "599.0",
"price": "599.0",
"sales": 375,
"num_iid": "682879574587",
"seller_nick": "森马官方旗舰店",
"seller_id": "397341302",
"detail_url": "https://item.taobao.com/item.htm?id=682879574587"
},
{
"title": "拉夏贝尔加绒卫衣2022新款女加厚秋冬女款连帽外套冬季女装上衣X",
"pic_url": "http://gw.alicdn.com/i4/2207860246915/O1CN01wrB8SP20x7aLlbBrf_!!0-item_pic.jpg",
"promotion_price": "99.0",
"price": "99.0",
"sales": 3927,
"num_iid": "679409057500",
"seller_nick": "lachapellesport旗舰店",
"seller_id": "2207860246915",
"detail_url": "https://item.taobao.com/item.htm?id=679409057500"
},
{
"title": "鸭鸭中年妈妈羽绒服女短款新款女装兔毛翻领冬装中老年人洋气外套",
"pic_url": "http://gw.alicdn.com/i2/2209258122706/O1CN01i3AqRt1VrOYq8ai7N_!!0-item_pic.jpg",
"promotion_price": "1599.0",
"price": "1599.0",
"sales": 252,
"num_iid": "693769984970",
"seller_nick": "鸭鸭官方outlets店",
"seller_id": "2209258122706",
"detail_url": "https://item.taobao.com/item.htm?id=693769984970"
},
{
"title": "2022年新款高级感小个子冬装娃娃领双面",
"pic_url": null,
"promotion_price": "598.0",
"price": "598.0",
"sales": 0,
"num_iid": "693900067940",
"seller_nick": null,
"seller_id": "2214665770768",
"detail_url": "https://item.taobao.com/item.htm?id=693900067940"
},
{
"title": "森马羽绒服女立领扎染印花2022冬季新款满印厚外套保暖短款面包服",
"pic_url": "http://gw.alicdn.com/i2/397341302/O1CN01CzxCuo1LUMTwL3Ef3_!!0-item_pic.jpg",
"promotion_price": "699.0",
"price": "699.0",
"sales": 563,
"num_iid": "683440348964",
"seller_nick": "森马官方旗舰店",
"seller_id": "397341302",
"detail_url": "https://item.taobao.com/item.htm?id=683440348964"
},
{
"title": "拉夏贝尔红色羊羔绒卫衣女冬加绒加厚2022新款兔年本命年女装时尚",
"pic_url": "http://gw.alicdn.com/i2/2211021360140/O1CN01bY2FOu1CuAFqMqBfn_!!0-item_pic.jpg",
"promotion_price": "129.9",
"price": "129.9",
"sales": 990,
"num_iid": "686921714171",
"seller_nick": "lachapellecity旗舰店",
"seller_id": "2211021360140",
"detail_url": "https://item.taobao.com/item.htm?id=686921714171"
},
{
"title": "库恩玛维连帽卫衣女春秋款2023新款秋季学院撞色拼接宽松长袖上衣",
"pic_url": "http://gw.alicdn.com/i4/1658594886/O1CN015DLfYw1lxpz67zLme_!!1658594886.jpg",
"promotion_price": "230.0",
"price": "230.0",
"sales": 119,
"num_iid": "681245140179",
"seller_nick": "库恩玛维旗舰店",
"seller_id": "1658594886",
"detail_url": "https://item.taobao.com/item.htm?id=681245140179"
},
{
"title": "小香风时尚潮流毛呢外套女中长款风衣202",
"pic_url": null,
"promotion_price": "588.0",
"price": "588.0",
"sales": 0,
"num_iid": "690721747542",
"seller_nick": null,
"seller_id": "2206525809567",
"detail_url": "https://item.taobao.com/item.htm?id=690721747542"
},
{
"title": "胖mm大码不规则牛仔裤女冬季加绒韩版高腰显瘦百搭阔腿长裤潮ins",
"pic_url": "http://gw.alicdn.com/i4/3937219703/O1CN01LbvvmE2LY1pmVBDCH_!!3937219703-0-C2M.jpg",
"promotion_price": "59.85",
"price": "59.85",
"sales": 284,
"num_iid": "683738758365",
"seller_nick": "天天特卖工厂店",
"seller_id": "3937219703",
"detail_url": "https://item.taobao.com/item.htm?id=683738758365"
},
{
"title": "小个子妈妈皮草外套2022新款秋冬装中老年女士水貂绒一体大衣短款",
"pic_url": "http://gw.alicdn.com/i1/3852804518/O1CN01MSige51jFI95eBlZV_!!0-item_pic.jpg",
"promotion_price": "468.0",
"price": "468.0",
"sales": 2054,
"num_iid": "660348536208",
"seller_nick": "艾宣米旗舰店",
"seller_id": "3852804518",
"detail_url": "https://item.taobao.com/item.htm?id=660348536208"
},
{
"title": "妖精的口袋奥莱店白色v领连帽卫衣女秋宽松套头外套长袖冬ins潮",
"pic_url": "http://gw.alicdn.com/i3/4104701943/O1CN01CNVrcm1QDwMdnIW9y_!!4104701943.jpg",
"promotion_price": "448.0",
"price": "448.0",
"sales": 49,
"num_iid": "687910371548",
"seller_nick": "妖精的口袋outlets店",
"seller_id": "4104701943",
"detail_url": "https://item.taobao.com/item.htm?id=687910371548"
},
{
"title": "妖精的口袋拼接毛绒外套女2022秋冬季新",
"pic_url": null,
"promotion_price": "735.0",
"price": "735.0",
"sales": 0,
"num_iid": "694028816931",
"seller_nick": null,
"seller_id": "828001185",
"detail_url": "https://item.taobao.com/item.htm?id=694028816931"
}
],
"item_weight_update": 0
},
"error_code": "0000",
"reason": "ok",
"secache": "a8881ed5637e3c7e84f03acdc86be64f",
"secache_time": 1673763036,
"secache_date": "2023-01-15 14:10:36",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"error": "",
"cache": 0,
"api_info": "today:78 max:10100 all[163=78+47+38];expires:2030-12-31",
"execution_time": "1.49",
"server_time": "Beijing/2023-01-15 14:10:36",
"client_ip": "106.6.34.13",
"call_args": {
"q": "女装",
"start_price": "0",
"end_price": "0",
"page": "1",
"cat": "0"
},
"api_type": "taobao",
"translate_language": "zh-CN",
"translate_engine": "baidu_api",
"server_memory": "6MB",
"request_id": "gw-3.63c398daccc17",
"last_id": "1477111255"
}
| 状态代码(error_code) | 状态信息 | 详细描述 | 是否收费 |
|---|---|---|---|
| 0000 | success | 接口调用成功并返回相关数据 | 是 |
| 2000 | Search success but no result | 接口访问成功,但是搜索没有结果 | 是 |
| 4000 | Server internal error | 服务器内部错误 | 否 |
| 4001 | Network error | 网络错误 | 否 |
| 4002 | Target server error | 目标服务器错误 | 否 |
| 4003 | Param error | 用户输入参数错误 | 忽略 |
| 4004 | Account not found | 用户帐号不存在 | 忽略 |
| 4005 | Invalid authentication credentials | 授权失败 | 忽略 |
| 4006 | API stopped | 您的当前API已停用 | 忽略 |
| 4007 | Account stopped | 您的账户已停用 | 忽略 |
| 4008 | API rate limit exceeded | 并发已达上限 | 忽略 |
| 4009 | API maintenance | API维护中 | 忽略 |
| 4010 | API not found with these values | API不存在 | 忽略 |
| 4012 | Please add api first | 请先添加api | 忽略 |
| 4013 | Number of calls exceeded | 调用次数超限 | 忽略 |
| 4014 | Missing url param | 参数缺失 | 忽略 |
| 4015 | Wrong pageToken | 参数pageToken有误 | 忽略 |
| 4016 | Insufficient balance | 余额不足 | 忽略 |
| 4017 | timeout error | 请求超时 | 否 |
| 5000 | unknown error | 未知错误 | 否 |