- 使用须知
- 首页中心
- 登录
- 个人中心
- 视频中心
- 通用
获取搜索建议
开发中
GET
/search/suggest
请求参数
Query 参数
keywords
string
可选
示例值:
海阔天空
type
string
可选
示例值:
mobile
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:3000/search/suggest?keywords=海阔天空&type=mobile'
返回响应
🟢200成功
application/json
Body
result
object
必需
allMatch
array [object {5}]
必需
code
integer
必需
示例
{
"result": {
"allMatch": [
{
"keyword": "海阔天空",
"type": 1,
"alg": "alg_suggest_other_UserAction;Song;Album;Consume__Like_{}",
"lastKeyword": "",
"feature": ""
},
{
"keyword": "海阔天空 Beyond",
"type": 1,
"alg": "alg_suggest_other_UserAction;Song+Artist;Consume___{}",
"lastKeyword": "",
"feature": ""
},
{
"keyword": "海阔天空黄家驹",
"type": 1,
"alg": "alg_suggest_other_Consume___{}",
"lastKeyword": "",
"feature": ""
},
{
"keyword": "海阔天空 DJ",
"type": 1,
"alg": "alg_suggest_other_Song+Artist;Consume___{}",
"lastKeyword": "",
"feature": ""
},
{
"keyword": "海阔天空伴奏",
"type": 1,
"alg": "alg_suggest_other_Song;Consume___{}",
"lastKeyword": "",
"feature": ""
},
{
"keyword": "海阔天空 纯音乐",
"type": 1,
"alg": "alg_suggest_other_Song+Artist;Consume___{}",
"lastKeyword": "",
"feature": ""
}
]
},
"code": 200
}