Skip to content

数字专辑&数字单曲-榜单

获取数字专辑或数字单曲的日榜、周榜、年榜和总榜。

接口信息

项目
接口地址/album/songsaleboard
请求方式GET / POST
需要登录
对应模块album_songsaleboard
文档分类专辑
上游路径/api/feealbum/songsaleboard/${type}/type

请求参数

参数类型必填默认值说明
albumTypenumber0榜单对象类型,0 为数字专辑,1 为数字单曲
typestringdaily榜单周期,可选 dailyweekyeartotal
yearnumber-type=year 时使用,表示年份

HTTP 示例

bash
GET /album/songsaleboard
GET /album/songsaleboard?type=year&year=2020&albumType=0

编程式调用

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

const result = await albumSongsaleboard({
  type: 'year',
  year: 2020,
  albumType: 0,
})

console.log(result.body)

返回关注点

  • code: 请求是否成功。
  • data: 榜单主体数据。

Released under the MIT License.