一、接口参数说明:
item_search-按关键字搜索淘宝商品,点击更多API调试,请移步注册API账号点击获取测试key和secret
公共参数
请求地址: https://api-gw.onebound.cn/taobao/item_search
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
key | String | 是 | 调用key(点击获取测试key和secret) |
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:页数
响应参数
请求示例
请求示例 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": "240930",
"total_results": "240930",
"page_size": 48,
"pagecount": "100",
"data_from": "ti",
"item": [
{
"title": "短袖t恤女正肩白色夏季小众设计感半高领上衣修身体恤短款打底衫",
"pic_url": "https://img.alicdn.com/imgextra/i2/56442875/O1CN01EpCqEB1X6nVtly2tb_!!0-saturn_solar.jpg",
"promotion_price": "49.90",
"price": "49.90",
"sales": 3000,
"num_iid": "707725132339",
"seller_nick": "花竹叶女装旗舰店",
"detail_url": "https://item.taobao.com/item.htm?id=707725132339"
},
{
"title": "高级感西装套装黑色时尚御姐职业装气质休闲阔腿裤工作服炸街秋冬",
"pic_url": "https://img.alicdn.com/imgextra/i3/1638230170/O1CN01agrvpD1D7u8PfHnHo_!!0-saturn_solar.jpg",
"promotion_price": "558.00",
"price": "558.00",
"sales": 82,
"num_iid": "693238175008",
"seller_nick": "靓侈旗舰店",
"detail_url": "https://item.taobao.com/item.htm?id=693238175008"
},
{
"title": "ALONE SAVOR高弹收腰T恤彰显曲线女夏季新款遮袖背心显瘦U354",
"pic_url": "https://img.alicdn.com/imgextra/i4/3908919063/O1CN01GotlZc2GouOcs5geA_!!0-saturn_solar.jpg",
"promotion_price": "159.00",
"price": "159.00",
"sales": 400,
"num_iid": "723141222432",
"seller_nick": "alone_savor",
"detail_url": "https://item.taobao.com/item.htm?id=723141222432"
},
{
"title": "德玛纳粉色短袖T恤女2023新款宽松纯棉潮流女装白色夏季时尚上衣",
"pic_url": "https://g-search1.alicdn.com/img/bao/uploaded/i4/i2/675155319/O1CN01upC7XW1pA9XcG6Li1_!!0-item_pic.jpg",
"promotion_price": "129.00",
"price": "99.00",
"sales": 400,
"num_iid": "637860697981",
"seller_nick": "德玛纳官方旗舰店",
"detail_url": "https://item.taobao.com/item.htm?id=637860697981"
},
注:以下是行业内了解到的一些情况,本帖只展示部分代码,响应参数可注册账号查看演示站或者点击头像联系
本文链接:https://my.lmcjl.com/post/13581.html
4 评论