Skip to content

歌手全部歌曲

调用此接口,可获取歌手全部歌曲

接口信息

项目
接口地址/artist/songs
请求方式GET / POST
需要登录
对应模块artist_songs
文档分类歌手

请求参数

参数类型必填默认值说明
idstring-歌手 id
orderstring-hot ,time 按照热门或者时间排序
limitnumber | string50取出歌单数量,默认为 50
offsetnumber | string-偏移数量,用于分页,如:(评论页数 - 1)*50, 其中 50 为 limit 的值

HTTP 示例

bash
GET /artist/songs?id=6452

编程式调用

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

const result = await artistSongs({
  id: '6452',
})

console.log(result.body)

补充说明

说明 : 调用此接口,可获取歌手全部歌曲 必选参数 :

id : 歌手 id

可选参数 :

order : hot ,time 按照热门或者时间排序

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

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

接口地址 : /artist/songs

调用例子 : /artist/songs?id=6452

Released under the MIT License.