onebound.taobao.item_search_img
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
key | String | 是 | 调用key(必须以GET方式拼接在URL中)注册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版本 |
请求参数
请求参数:imgid=http://g-search3.alicdn.com/img/bao/uploaded/i4/O1CN01IDpcD81zHbpHs1YgT_!!2200811456689.jpg&cat=
参数说明:imgid:图片地址(支持淘宝或天猫图片地址,外部地址先调用上传图片(upload_img)接口,返回图片地址)
如:https://img.alicdn.com/imgextra/i3/15353738/TB2HDHAqN9YBuNjy0FfXXXIsVXa_!!15353738-0-beehive-scenes.jpg
响应参数
Version: Date:
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
title |
String | 0 | 亲子装短袖t恤社会人衣服全家装一家三口母子母女纯棉夏装上衣潮 | 宝贝标题 |
cid |
Int | 0 | 50015374 | |
list_type |
String | 0 | 外观相似宝贝 | 列表类型 |
pic_url |
String | 0 | //g-search3.alicdn.com/img/bao/uploaded/i4/TB26ry1rBsmBKNjSZFsXXaXSVXa_!!2628705716.jpg | 宝贝图片 |
promotion_price |
String | 0 | 38.71 | 优惠价 |
price |
Float | 0 | 39.50 | 价格 |
sales |
Int | 0 | 7 | 销量 |
num_iid |
Bigint | 0 | 575727312808 | 宝贝ID |
sample_id |
Bigint | 0 | 1627115368 | 商品风格标识ID |
seller_nick |
String | 0 | 专属味道之dzw | 掌柜昵称 |
is_tmall |
Bool | 0 | false | |
post_fee |
String | 0 | 0.00 | 物流费用 |
area |
String | 0 | 广东 东莞 | 店铺所在地 |
detail_url |
String | 0 | //item.taobao.com/item.htm?id=575727312808&ns=1#detail | 宝贝链接 |
请求示例Curl PHP PHPsdk JAVA C# Python请求示例
-- 请求示例 url 默认请求参数已经URL编码处理 curl -i "https://api-gw.onebound.cn/taobao/item_search_img/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&imgid=http://g-search3.alicdn.com/img/bao/uploaded/i4/O1CN01IDpcD81zHbpHs1YgT_!!2200811456689.jpg&cat="
Request address:
https://api-gw.onebound.cn/taobao/item_search_img/?key=t&
&imgid=http://g-search3.alicdn.com/img/bao/uploaded/i4/O1CN01IDpcD81zHbpHs1YgT_!!2200811456689.jpg&cat=&&lang=zh-CN&secret=
---------------------------------------
Result Object:
---------------------------------------
{
"items": {
"pagecount": 1,
"total_results": 32,
"real_total_results": 32,
"item": [
{
"title": "儿童篮球长袜子中小学生科比夏季薄款纯棉防滑底吸汗透气防臭高帮",
"pic_url": "http://g.search1.alicdn.com/img/bao/uploaded/i4//i1/1426460030/O1CN018GrzHT1C5melbEjRt_!!0-saturn_solar.jpg",
"promotion_price": "10.6",
"price": "10.6",
"sales": 1,
"num_iid": "677494146302",
"post_fee": null,
"sample_id": "",
"seller_nick": null,
"is_tmall": "false",
"area": "台州",
"detail_url": "//item.taobao.com/item.htm?id=677494146302",
"cid": null
},
{
"title": "精英篮球袜男士成人加厚毛巾底中筒袜耐磨透气比赛专业运动球袜子",
"pic_url": "http://g.search1.alicdn.com/img/bao/uploaded/i4/O1CN01Yv88bu1wvVg0H7ADe_!!875286370.jpg",
"promotion_price": "20",
"price": "20",
"sales": 0,
"num_iid": "668987399113",
"post_fee": null,
"sample_id": "",
"seller_nick": null,
"is_tmall": "false",
"area": "广州",
"detail_url": "//item.taobao.com/item.htm?id=668987399113",
"cid": "50017261"
},
{
"title": "专业篮球袜男高帮中长筒球员版毛巾底美式斗牛实战精英袜运动袜子",
"pic_url": "http://g.search2.alicdn.com/img/bao/uploaded/i4/O1CN01W8oilm1xYRHdRtVN3_!!1731886455.jpg",
"promotion_price": "12.8",
"price": "12.8",
"sales": 374,
"num_iid": "644787395095",
"post_fee": null,
"sample_id": "",
"seller_nick": null,
"is_tmall": "false",
"area": "杭州",
"detail_url": "//item.taobao.com/item.htm?id=644787395095",
"cid": "50017261"
},
{
"title": "球员版精英篮球袜男女中长筒高帮专业毛巾底棉花糖闪击七运动袜子",
"pic_url": "http://g.search1.alicdn.com/img/bao/uploaded/i4/O1CN01c41qhU1TJNmuoCtV3_!!1575692361.jpg",
"promotion_price": "16",