歌词SDK的search方法
GET
/sdk/search请求参数
Query 参数
artist
string
可选
artist lfid or amgid
示例值:
lfid:002-21529 or amg:347307
album
string
可选
album field lfid
track
string
可选
track field lfid
lyrics
string
歌词内容
artistname
string
艺人名
trackname
string
歌曲名
albumname
string
专辑
albumnameoptional
string
专辑附属选项
offset
string
偏移量
limit
string
本页数量
useragent
string
UA.
deviceId
string
设备id
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
totalresults
integer
必需
totalpages
integer
必需
tracks
array [object {10}]
必需
lfid
string
必需
instrumental
boolean
必需
viewable
boolean
必需
has_lrc
boolean
必需
lrc_verified
boolean
必需
title
string
必需
duration
string
必需
artists
array [object {2}]
必需
artist
object
必需
last_update
string
必需
示例
{
"totalresults": 50,
"totalpages": 25,
"tracks": [
{
"lfid": "002-376348",
"instrumental": false,
"viewable": true,
"has_lrc": true,
"lrc_verified": true,
"title": "Stan",
"duration": "6:44",
"artists": [
{
"name": "Dido",
"is_primary": false
},
{
"name": "Eminem",
"is_primary": true
}
],
"artist": {
"name": "DidoandEminem"
},
"last_update": "2018-11-1400:22:23"
},
{
"lfid": "002-376348",
"instrumental": false,
"viewable": true,
"has_lrc": true,
"lrc_verified": true,
"title": "Stan",
"duration": "6:44",
"artists": [
{
"name": "Dido",
"is_primary": false
},
{
"name": "Eminem",
"is_primary": true
}
],
"artist": {
"name": "DidoandEminem"
},
"last_update": "2018-11-1400:22:23"
}
]
}
最后修改时间: 2 个月前