Appearance
获取C端搜索商品列表
| 拥有此API的权限集 |
|---|
| 商品管理-查询 |
请求方式及url
- 请求方式:
POST - 请求头:
Content-Type:application/json - 接口地址:
https://api.xiaoe-tech.com/xe.search.goods.list/1.0.0 - 频率限制:
10秒3000次
接口调试
请求参数
响应结果
暂无响应数据
请求参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| access_token | 是 | string | 专属token |
| keyword | 是 | string | 搜索关键词 搜索关键词不能为空 |
| resource_type | 是 | string | 传空字符串默认全部类型 1-图文 2-音频 3-视频 4-直播 5-会员 6-专栏 8-大专栏 20-电子书 21-实物商品 25-训练营营期或培训计划 29-线下课 35-班课 45-AI互动课 |
| sort | 是 | string | 排序 0-综合排序 1-更新时间 |
| page | 是 | int | 当前页数 |
| page_size | 是 | int | 每页数量 最大不超过30 |
请求示例
{
"access_token": "xe_xxxxx",
"keyword": "测试",
"resource_type":"",
"sort":"0",
"page":1,
"page_size":10
}返回参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 返回码 |
| msg | string | 返回信息 |
| data.list | array | 搜索结果商品列表 |
| data.total | int | 搜索结果商品总数 |
list说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| app_id | int | 店铺id |
| resource_id | string | 资源id |
| goods_name | string | 商品名称 |
| img_url | string | 商品封面图(默认封面图) |
| goods_brief_text | string | 商品简介 |
| highlight | object | 高亮 |
| img_url_compressed | string | 压缩后的列表配图url |
| price_low | int | 商品最低价 |
| price_line | int | 划线价 |
| resource_type | int | 商品类型 |
| created_at | string | 创建时间 |
| updated_at | string | 更新时间 |
备注
详情页链接:
- 图文:
https://{appid}.h5.xiaoeknow.com/p/course/text/{resource_id}?type=2 - 音频:
https://{appid}.h5.xiaoeknow.com/p/course/audio/{resource_id}?type=2 - 视频:
https://{appid}.h5.xiaoeknow.com/p/course/video/{resource_id}?type=2 - 直播:
https://{appid}.h5.xiaoeknow.com/p/course/alive/{resource_id}?type=2 - 专栏:
https://{appid}.h5.xiaoeknow.com/p/course/column/{resource_id}?type=3 - 会员:
https://{appid}.h5.xiaoeknow.com/p/course/member/{resource_id}?type=3 - 电子书|AI互动课|训练营营期|班课|线下课:
https://{appid}.h5.xiaoeknow.com/v1/goods/goods_detail/{resource_id}?type=2
返回示例
{
"code": 0,
"msg": "success",
"data": {
"list": [
{
"app_id": "appAxxxxxxxx",
"created_at": "2022-01-23 01:13:11",
"goods_brief_text": "",
"goods_name": "elias试看",
"highlight": {
"goods_brief_text": [],
"goods_name": [
"elias<em>试</em>看"
]
},
"img_url": "https://wechatapppro-1252524126.file.myqcloud.com/appAKLWLitn7978/image/b_u_5b2225aa46488_oGKN7IvA/kypamgec00gx.png",
"img_url_compressed": "",
"price_line": 100,
"price_low": 1,
"resource_id": "v_61ec3b27e4b0beaee4253948",
"resource_type": 3,
"updated_at": "2022-01-24 00:29:16"
}
],
"total": 13228
}
}