更新时间:2020-12-29 17:34
查询热词列表,默认返回模型推荐的热词列表
GET
/v3/openapi/apps/{app_name}/actions/hot?hit={hit}&sort_type={sort_type}&user_id={user_id}&model_name={model_name}
名称 | 是否必须 | 类型 | 默认值 | 说明 | 备注 |
---|---|---|---|---|---|
hit | 否 | int | 10 | 查询的数据条数 | hit范围:(0,30] |
sort_type | 否 | string | default | default:默认热词结果,pv:查询pv最高的热词,uv:查询uv最高的热词 | |
user_id | 否 | string | 用户id,查询个性化结果时需要 | ||
model_name | 否 | string | 指定输出结果的模型名称 |
名称 | 类型 | 说明 |
---|---|---|
data | object | 操作结果 |
参数说明:
参数 | 是否必须 | 默认 | 类型 | 说明 |
---|---|---|---|---|
list | 是 | array | 查询所得的热词列表 |
http://$host/v3/openapi/apps/{app_name}/actions/hot?hit={hit}&sort_type={sort_type}&user_id={user_id}&model_name={model_name}
正确返回
{
"request_id": "150116615820104116121674",
"searchtime": 0.002654,
"result": [
{
"hot": "连衣裙",
"pv": 100000
},
{
"hot": "连衣裙春装",
"pv": 50000
},
{
"hot": "连衣裙文艺",
"pv": 10000
}
]
}
错误返回
参考:错误码说明
查询底纹列表,默认返回模型推荐的底纹列表
GET
/v3/openapi/apps/{app_name}/actions/hint?hit={hit}&sort_type={sort_type}&user_id={user_id}&model_name={model_name}
名称 | 是否必须 | 类型 | 默认值 | 说明 | 备注 |
---|---|---|---|---|---|
hit | 否 | int | 3 | 查询的数据条数 | hit范围:(0,10] |
sort_type | 否 | string | default | default:默认底纹结果 pv:查询pv最高的底纹 |
|
user_id | 否 | string | 用户id,查询个性化结果时需要 | ||
model_name | 否 | string | 指定输出结果的模型名称 |
名称 | 类型 | 说明 |
---|---|---|
data | object | 操作结果 |
参数说明:
参数 | 是否必须 | 默认 | 类型 | 说明 |
---|---|---|---|---|
list | 是 | array | 查询所得的底纹列表 |
http://$host/v3/openapi/apps/{app_name}/actions/hint?hit={hit}&sort_type={sort_type}&user_id={user_id}&model_name={model_name}
正确返回
{
"request_id": "150116615820104116121674",
"searchtime": 0.002654,
"result": [
{
"hint": "连衣裙",
"pv": 100000
},
{
"hint": "连衣裙春装",
"pv": 50000
},
{
"hint": "连衣裙文艺",
"pv": 10000
}
]
}
错误返回
参考:错误码说明
在文档使用中是否遇到以下问题
更多建议
匿名提交