请求HEADER
名称 | 值 |
---|---|
Content-Type | application/x-www-form-urlencoded;charset:utf-8; |
请求参数说明
名称 | 要求 | 类型 | 示例值 | 说明 |
---|---|---|---|---|
secret | 必填 | string | Ptjw1Du3l0t3JM10oD5I6fGOMV | 您的密钥,在密钥管理中查看 |
shop_id | 必填 | number | 1000004259 | 店铺ID |
page_num | 选填 | number | 1 | 页码 |
sort | 选填 | number | 1 | 排序方式 0 - 推荐排序 1 - 新品排序 2 - 销量由高到低 3 - 销量由低到高 4 - 价格由高到低 5 - 价格由低到高 6 - 评价由高到低 7 - 评价由低到高 |
keyword | 选填 | string | 搜索的关键词内容 | |
start_price | 选填 | number | 价格限定下限,与价格限定上限成对使用。 | |
end_price | 选填 | number | 价格限定上限,与价格限定下限成对使用。 |
响应HEADER
名称 | 值 | 说明 |
---|---|---|
X-Rate-Limit-Limit | 5 | 当前接口请求频率限额 |
X-Rate-Limit-Remaining | 2 | 一段时间内剩余允许请求数,该值为0表明达到当前接口最大请求频率/次数限制,应适当降低请求频率 |
X-Rate-Limit-Global | 1 | 该值为1表明触犯全局请求频率/次数限制,应适当降低请求频率 |
返回参数说明
名称 | 类型 | 说明 |
---|---|---|
code | number | 返回码,具体含义请参考错误码参照 |
msg | string | 返回说明 |
data | json | 返回结果集 |
rid | string | 请求ID |
JSON结果集返回示例
{"wareInfo":[{"wareId":10058196973373,"wname":"织梦 抽纸整箱纸巾原木4层160张S码家用便携式卫生纸擦手(10包起拍) 1包(请拍10的倍数)经典款","imageurl":"https://m.360buyimg.com/n1/s440x440_jfs/t1/93656/4/34862/128074/63fdfca2F977dbd10/dfae7563dfbdbe9e.png","squareImageUrl":"https://m.360buyimg.com/n1/s440x440_jfs/t1/93656/4/34862/128074/63fdfca2F977dbd10/dfae7563dfbdbe9e.png","mPrice":"5.00","jdPrice":"0.70","promotionFlag":{},"promotionList":[],"good":"87%","flashSale":0,"totalCount":50000,"isNew":false,"isHot":true,"stock":-1,"isUnderCarriage":0,"isPreSale":false,"addCart":false,"addCartAbTest":false,"addCartIcon":"http://m.360buyimg.com/mobileshopcms/jfs/t25606/209/856901863/3034/fb7f2271/5b7fc970N2b378e00.png","jdDeliver":false,"leaseSku":false,"picType":1,"cid":"15901","cid2":"15902","markTag":{"isHot":{"tagId":"","type":2,"tagText":"热销","tagColor":"#F0250F"}},"floatLayersOnSku":[{}],"secKillType":false,"flashPurchaseType":false,"plus95":false,"originalPrice":"2.00","totalCountStr":"5万+"},{"...":"..."},{"wareId":10061649169613,"wname":"可心柔COROU升级款婴儿抽纸保湿纸柔润面巾纸40抽便携装 V9抑菌款 10包","imageurl":"https://m.360buyimg.com/n1/s440x440_jfs/t1/114453/9/30106/112141/630f52adE9f3408f3/2d60d3f145d8afc7.jpg","squareImageUrl":"https://m.360buyimg.com/n1/s440x440_jfs/t1/114453/9/30106/112141/630f52adE9f3408f3/2d60d3f145d8afc7.jpg","mPrice":"59.90","jdPrice":"17.90","promotionFlag":{},"promotionList":[],"good":"100%","flashSale":0,"totalCount":60,"isNew":false,"isHot":false,"stock":-1,"isUnderCarriage":0,"isPreSale":false,"addCart":false,"addCartAbTest":false,"addCartIcon":"http://m.360buyimg.com/mobileshopcms/jfs/t25606/209/856901863/3034/fb7f2271/5b7fc970N2b378e00.png","jdDeliver":false,"leaseSku":false,"picType":1,"cid":"1319","cid2":"1527","markTag":{},"floatLayersOnSku":[{}],"secKillType":false,"flashPurchaseType":false,"plus95":false,"totalCountStr":"60"}],"hasNext":true,"pageIdx":1,"pageSize":20,"totalPage":12,"totalCount":223}
系统级错误码参照
错误码 | 说明 |
---|---|
500 | 缺少参数密钥KEY |
501 | 密钥KEY错误或已失效 |
502 | 密钥KEY已禁用,平台黑名单 |
503 | IP地址不被平台允许 |
504 | 接口不存在或已下线 |
505 | 接口维护中,请稍后访问 |
506 | 接口不支持该方式请求 |
507 | 接口不支持GET方式请求 |
508 | 接口不支持POST方式请求 |
509 | 服务端执行错误 |
510 | 服务端数据解析错误 |
服务级错误码参照
错误码 | 说明 |
---|---|
400 | 密钥KEY错误或已失效 |
401 | 密钥KEY已禁用 |
402 | IP地址不被用户允许 |
403 | 账号余额不足,请及时充值 |
404 | 超过当前接口每日调用限制 |
405 | 超过当前接口每秒调用限制 |
406 | 请求参数错误 |
407 | 请求失败,后端错误 |
错误码格式说明
5xx | 4xx | xx |
---|---|---|
系统级错误 | 服务级错误 | 具体错误代码 |