Skip to content

歌单 ( 网友精选碟 )

调用此接口,可获取网友精选碟歌单

接口信息

项目
接口地址/top/playlist
请求方式GET / POST
需要登录
对应模块top_playlist
文档分类歌单

请求参数

参数类型必填默认值说明
orderstring可选值为 'new' 和 'hot', 分别对应最新和最热,默认为
'hot'
catstringtag, 比如 " 华语 "、" 古风 " 、" 欧美 "、" 流行 ", 默认为
"全部",可从歌单分类接口获取(/playlist/catlist)
limitnumber | string50取出歌单数量,默认为 50
offsetnumber | string-偏移数量,用于分页,如:(评论页数 - 1)*50, 其中 50 为 limit 的值

HTTP 示例

bash
GET /top/playlist?limit=10&order=new

编程式调用

ts
import { topPlaylist } from 'hana-music-api'

const result = await topPlaylist({
  limit: '10',
  order: 'new',
})

console.log(result.body)

补充说明

说明 : 调用此接口,可获取网友精选碟歌单

可选参数 : order: 可选值为 'new' 和 'hot', 分别对应最新和最热,默认为 'hot'

cat: tag, 比如 " 华语 "、" 古风 " 、" 欧美 "、" 流行 ", 默认为 "全部",可从歌单分类接口获取(/playlist/catlist)

limit: 取出歌单数量,默认为 50

offset: 偏移数量,用于分页,如:(评论页数 - 1)*50, 其中 50 为 limit 的值

接口地址 : /top/playlist

调用例子 : /top/playlist?limit=10&order=new

Released under the MIT License.