Skip to content

热门歌手

调用此接口,可获取热门歌手数据

接口信息

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

请求参数

参数类型必填默认值说明
limitnumber | string50取出数量,默认为 50
offsetnumber | string
偏移数量,用于分页,如:(页数 - 1)*50, 其中 50 为 limit 的值,默认
为 0

HTTP 示例

bash
GET /top/artists?offset=0&limit=30

编程式调用

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

const result = await topArtists({
  offset: '0',
  limit: '30',
})

console.log(result.body)

补充说明

说明 : 调用此接口,可获取热门歌手数据

可选参数 : limit: 取出数量,默认为 50

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

接口地址 : /top/artists

调用例子 : /top/artists?offset=0&limit=30

Released under the MIT License.