Skip to content

听歌足迹 - 本周/本月收听时长

登录后调用此接口, 获取本周/本月收听时长

接口信息

项目
接口地址/listen/data/realtime/report
请求方式GET / POST
需要登录
对应模块listen_data_realtime_report
文档分类听歌记录

请求参数

参数类型必填默认值说明
typestring-维度类型 周 week 月 month; 今年没结束,不支持今年的数据

HTTP 示例

bash
GET /listen/data/realtime/report?type=month

编程式调用

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

const result = await listenDataRealtimeReport({
  type: 'month',
})

console.log(result.body)

补充说明

说明 : 登录后调用此接口, 获取本周/本月收听时长

必选参数 :

type: 维度类型 周 week 月 month; 今年没结束,不支持今年的数据

接口地址 : /listen/data/realtime/report

调用例子 : /listen/data/realtime/report?type=month

Released under the MIT License.