# 商品检索接口
商品检索
Path: https://openapi.smzdm.com/v1/agent/search/list
# 请求参数说明
参数名称 | 参数类型 | 是否必须 | 参数描述 |
---|---|---|---|
keyword | string | true | 搜索关键词,多个keyword以英文逗号隔开 如:iphone15,手机壳 |
# 返回参数说明
参数名称 | 参数类型 | 说明 | 示例值 |
---|---|---|---|
data | Search[] | 请求结果 | |
error_code | int | 错误状态码 | |
error_msg | string | 错误描述 |
# Search 数据模型
参数名称 | 参数类型 | 说明 | 示例值 |
---|---|---|---|
comment_cnt | int | 评论数 | |
es_recall_cnt | int | es_recall_cnt=0是推荐 es_recall_cnt>0是搜索。 | |
focus_pic_url | string | 商品焦点图 | |
index | int | 标记在 data 数组中的索引位置 | |
keyword | string | 请求keyword | |
mall_id | int | 商城ID | |
mall_name | string | 商城名称 | |
price | string | 商品价格 | |
price_1 | string | 商品价格带中文价格符号 | |
prom_info | []string | 商品促销信息 | |
sales_cnt | int | 销量 | |
title | string | 商品标题 | |
url | string | 商品地址 |
# 返回JSON
{
"data": [
[
{
"title": "Apple iPhone 15 支持移动联通电信 双卡双待手机【3天内发货】",
"price": "¥6998.0",
"price_1": "6998.0元",
"mall_name": "拼多多",
"url": "https://mobile.yangkeduo.com/goods.html?goods_id=590445866953",
"focus_pic_url": "https://y.zdmimg.com/202312/27/658ba0f01fe919059.png",
"prom_info": [],
"mall_id": 8645,
"comment_cnt": 0,
"sales_cnt": 0,
"internal_picture_url": "",
"es_recall_cnt": 0,
"index": 0,
"keyword": "",
"data_type": 0
}
]
],
"error_code": 0,
"error_msg": ""
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 多Keyword返回JSON
{
"data": [
[
{
"title": "Apple iPhone 15 支持移动联通电信 双卡双待手机【3天内发货】",
"price": "¥6998.0",
"price_1": "6998.0元",
"mall_name": "拼多多",
"url": "https://mobile.yangkeduo.com/goods.html?goods_id=590445866953",
"focus_pic_url": "https://y.zdmimg.com/202312/27/658ba0f01fe919059.png",
"prom_info": [],
"mall_id": 8645,
"comment_cnt": 0,
"sales_cnt": 0,
"internal_picture_url": "",
"es_recall_cnt": 0,
"index": 0,
"keyword": "",
"data_type": 0
}
],
[
{
"title": "全包透明硅胶手机壳",
"price": "¥12.5",
"price_1": "12.5元",
"mall_name": "天猫精选",
"url": "https://detail.tmall.com/item.htm?id=709655799289",
"focus_pic_url": "https://qn-image-aigc.zdmimg.com//202401/17/65a7f1eedf8279866.jpg",
"prom_info": [],
"mall_id": 247,
"comment_cnt": 0,
"sales_cnt": 0,
"internal_picture_url": "",
"es_recall_cnt": 0,
"index": 0,
"keyword": "",
"data_type": 0
}
]
],
"error_code": 0,
"error_msg": ""
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 返回错误码说明
全局错误码 参考新手指南API详解