Skip to content

function

METO edited this page Feb 6, 2018 · 1 revision

song

Query data of a single song

$api->song($songId)
params require description
songId song id

album

Query data of a album

$api->album($albumId)
params require description
albumId album id

playlist

Query data of a playlist

$api->playlist($playlistId)
params require description
playlistId playlist id

search

Search songs with keyword

$api->search($keyword, $options)
params require description
keyword keyword
options array, include limit(30), page(1), type

歌词

对指定歌曲编号,返回歌词,返回数据为标准 Json

参数

参数名 必须 含义
id 歌词编号

调用方式

$API->lyric($id);

专辑图片

对指定歌曲编号,返回专辑图片地址,返回数据为标准 Json

参数

参数名 必须 含义
id 图片编号

返回

参数名 含义
url 专辑图片地址

调用方式

$API->pic($id);

音乐文件地址

对指定歌曲编号,返回可用于外链的歌曲地址,返回数据为标准 Json

参数

参数名 必须 含义
id 文件编号
bitrate 否 (320) 优先比特率

返回

参数名 含义
url 歌曲地址
br 比特率

调用方式

$API->url($id,$bitrate);
Clone this wiki locally