一号店按关键字搜索yhd商品 API 返回值说明

item_search-按关键字搜索yhd商品  注册开通

onebound.yhd.item_search

公共参数

请求地址: https://api-gw.onebound.cn/yhd/item_search

名称类型必须描述
keyString调用key(必须以GET方式拼接在URL中)
secretString调用密钥
api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
langString[cn,en,ru]翻译语言,默认cn简体中文
versionStringAPI版本

请求参数

请求参数:q=鞋子&start_price=&end_price=&page=&cat=&discount_only=&sort=&page_size=&seller_info=&nick=&ppath=

参数说明:q:搜索关键字
cat:分类ID
start_price:开始价格
end_price:结束价格
sort:排序[bid,_bid,bid2,_bid2,_sale,_credit]
  (bid:总价,bid2:商品价格,sale:销量,credit信用,加_前缀为从大到小排序)
page:

响应参数

Version: Date:

名称类型必须示例值描述

num_iid

Bigint041448995133商品ID

title

String0361男鞋跑步鞋运动鞋冬季新款老套网面透气旅游鞋防滑休闲白色鞋-1寸白色/骨架色(尺寸偏大)42-1寸白色/骨架色(尺寸偏大)商品标题

pic_url

String0//img10.360buyimg.com/n7/s230x230_jfs/t1/10362/2/10481/112020/5c63e1feEf1121281/ad09a2419bb4ab6d.jpg!cc_230x230.jpg商品图片

promotion_price

String0优惠价

price

Int0189价格

sales

String0销量

sample_id

String0商品风格标识ID

seller_nick

String0卖家昵称

shopid

String0卖家昵称

shop_href

String0卖家昵称

shopname

String0卖家昵称

post_fee

Float0物流费用

area

String0店铺所在地

chandi

String0产地

detail_url

String0http://item.yhd.com/item/41448995133商品链接

pinglun_num

String02600+评论数

yhd_hpl

String098%好评率

yhd_stocknum

String0库存

请求示例

	
-- 请求示例 url 默认请求参数已经URL编码处理
curl -i "https://api-gw.onebound.cn/yhd/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=鞋子&start_price=&end_price=&page=&cat=&discount_only=&sort=&page_size=&seller_info=&nick=&ppath="

响应示例

异常示例

相关资料

错误码解释

状态代码(error_code)状态信息详细描述是否收费
0000success接口调用成功并返回相关数据
2000Search success but no result接口访问成功,但是搜索没有结果
4000Server internal error服务器内部错误
4001Network error网络错误
4002Target server error目标服务器错误
4003Param error用户输入参数错误忽略
4004Account not found用户帐号不存在忽略
4005Invalid authentication credentials授权失败忽略
4006API stopped您的当前API已停用忽略
4007Account stopped您的账户已停用忽略
4008API rate limit exceeded并发已达上限忽略
4009API maintenanceAPI维护中忽略
4010API not found with these valuesAPI不存在忽略
4012Please add api first请先添加api忽略
4013Number of calls exceeded调用次数超限忽略
4014Missing url param参数缺失忽略
4015Wrong pageToken参数pageToken有误忽略
4016Insufficient balance余额不足忽略
4017timeout error请求超时
5000unknown error未知错误
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值