文档
测试

产品搜索

POST
https://gw.kuaimai.com/router

接口描述

产品搜索

请求入口

|调用环境|服务地址(HTTP/HTTPS)| |-|-| |正式环境|https://gw.kuaimai.com/router| |测试环境|http://pubgwerp.superboss.cc/router |

公共参数

|参数名称|参数类型|是否必须|参数描述| |-|-|-|-| |method|string|是|API接口名称| |appKey|string|是|分配给应用的AppKey| |timestamp|string|是|时间戳,时区为GMT+8,例如:2020-09-21 16:58:00。API服务端允许客户端请求最大时间误差为10分钟| |format|string|否|响应格式。默认为json格式,可选值:json| |version|string|是|API协议版本 可选值:1.0| |sign_method|string|是|签名的摘要算法(默认 md5),可选值为:hmac,md5,hmac-sha256。| |sign|string|是|签名| |session|string|是|授权会话信息 (有系统分配)|

请求方法名

参数名
类型
描述
必填
method
string
tsj.lazada.item.search
必填

请求参数

参数名
类型
描述
必填
sortField
string
必传; 排序字段; 示例: amount
必填
order
string
必传; 排序方式; 示例: desc asc
必填
pageNo
number
必传; 页码; 示例: 1
必填
pageSize
number
必传; 每页条数; 示例: 15
必填
platformType
number
必传; 平台类型; 示例: 4
必填
cat
string
非必传; 行业id; 示例: 3214
必填
addTimeStart
string
非必传; 上架时间 开始时间; 示例: 2021-01-01
必填
addTimeEnd
string
非必传; 上架时间 结束时间; 示例: 2021-01-30
必填
reviewCountStart
number
非必传; 累计评论数范围最小值; 示例: 1
必填
reviewCountEnd
number
非必传; 累计评论数范围最大值; 示例: 1000
必填
reviewCount30Start
number
非必传; 30天累计评论数范围最小值; 示例: 1
必填
reviewCount30End
number
非必传; 30天累计评论数范围最大值; 示例: 1000
必填
priceStart
number
非必传; 折扣价数范围最小值; 示例: 1
必填
priceEnd
number
非必传; 折扣价范范围最大值; 示例: 50
必填
status
number
非必传; 店铺状态; 示例: 1上架 0 下架
必填
ratingStart
number
非必传; 评分数范围最小值; 示例: 1
必填
ratingEnd
number
非必传; 评分数范围最大值; 示例: 5
必填
shopType
number
非必传; 店铺类型; 示例: 4
必填

响应参数

参数名
类型
描述
必填
items
array
数据列表
必填
insertDate
int
数据更新时间; 示例:1614873600000
必填
itemId
int
商品id; 示例:872534585
必填
title
string
商品标题; 示例:12.12 【Ready Stock】50 Pcs Mask 3ply Mouth Cover Mask Protect High Quality Regular Mouth Nose Covers Non-woven Face Cover Face Mask
必填
displayName
string
店铺展示名字; 示例:Vogue Bible
必填
shopName
string
店铺名字; 示例:voguebible
必填
shopType
string
店铺类型 ; 示例:7 0:全站,4:lazada,5:淘宝,6:官方,7:普通,8:认证
必填
brandName
string
品牌; 示例:made in china
必填
addTime
int
上架时间; 示例:1584720000000
必填
price
float
折扣价; 示例:8.5
必填
rating
float
评分; 示例:4.5
必填
reviewCount
int
累计评价数; 示例:45906
必填
reviewCount30
int
30天评价量; 示例:11
必填
originalPrice
int
原价; 示例:22
必填
feeValue
float
运费; 示例:5.2
必填
reviewCount7
int
7天评价量; 示例:6
必填
fivestarTotal
int
5星数量; 示例:34718
必填
fourstarTotal
int
4星数量; 示例:5457
必填
threestarTotal
int
3星数量; 示例:2939
必填
twostarTotal
int
2星数量; 示例:916
必填
onestartTotal
int
1星数量; 示例:1863
必填
status
int
商品状态; 示例:1上架 2下架
必填
reviewCount1
int
当天评价量; 示例:0
必填
reviewCountRate7
float
7天评价数环比; 示例:6
必填
reviewCountRate30
float
30天评价数环比; 示例:2.6667
必填
images
string
商品图片; 示例:https://my-test-11.slatic.net/p/5d52109f609c1fd3cd8e16f522b41ebe.jpg
必填
total
int
总条数; 示例:50811867
必填
pageNo
int
页码; 示例:1
必填
pageSize
int
每页条数; 示例:15
必填
success
boolean
是否成功; 示例:true
必填
trace_id
string
示例:395652698311680
必填

返回示例

```javascript // 正常的数据返回 { "items": [{ "insertDate": 1614873600000, "itemId": 872534585, "title": "12.12 【Ready Stock】50 Pcs Mask 3ply Mouth Cover Mask Protect High Quality Regular Mouth Nose Covers Non-woven Face Cover Face Mask", "displayName": "Vogue Bible", "shopName": "voguebible", "shopType": "7", "brandName": "made in china", "addTime": 1584720000000, "price": 8.5, "rating": 4.5, "reviewCount": 45906, "reviewCount30": 11, "originalPrice": 22.0, "feeValue": 5.2, "reviewCount7": 6, "fivestarTotal": 34718, "fourstarTotal": 5457, "threestarTotal": 2939, "twostarTotal": 916, "onestartTotal": 1863, "status": 1, "reviewCount1": 0, "reviewCountRate7": 6.0, "reviewCountRate30": 2.6667, "images": "https://my-test-11.slatic.net/p/5d52109f609c1fd3cd8e16f522b41ebe.jpg" }, { "insertDate": 1614873600000, "itemId": 217763347, "title": "MILO ACTIV-GO 2kg", "displayName": "Grocery Store", "shopName": "grocery-store", "shopType": "6", "brandName": "Milo", "addTime": 1480694400000, "price": 30.99, "rating": 4.8, "reviewCount": 42774, "reviewCount30": 485, "originalPrice": 41.3, "feeValue": 0.0, "reviewCount7": 226, "fivestarTotal": 36939, "fourstarTotal": 2118, "threestarTotal": 826, "twostarTotal": 375, "onestartTotal": 1159, "status": 1, "reviewCount1": 0, "reviewCountRate7": 226.0, "reviewCountRate30": -0.4569, "images": "https://my-test-11.slatic.net/p/b4bf98459bffb8ca62ecca96d660580e.jpg" }], "total": 50811867, "pageNo": 1, "pageSize": 15, "success": true, "trace_id": "395652698311680" } - 异常的数据返回 { "code": "40", "msg": "服务方法(last.insertDate.get:1.0)的应用键参数timestamp无效", "success": false, "trace_id": "382576054573568" } ```