mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
commit
d42ec9acda
@ -284,6 +284,7 @@
|
|||||||
266. 搜索歌手
|
266. 搜索歌手
|
||||||
267. 用户贡献内容
|
267. 用户贡献内容
|
||||||
268. 用户贡献条目、积分、云贝数量
|
268. 用户贡献条目、积分、云贝数量
|
||||||
|
269. 年度听歌报告
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
@ -4369,7 +4370,7 @@ qrCodeStatus:20,detailReason:0 验证成功qrCodeStatus:21,detailReason:0 二
|
|||||||
|
|
||||||
`limit`: 取出条目数量 , 默认为 40
|
`limit`: 取出条目数量 , 默认为 40
|
||||||
|
|
||||||
**接口地址:** `/artist/search',`
|
**接口地址:** `/artist/search`
|
||||||
|
|
||||||
**调用例子:** `/artist/search?keyword=sasakure`
|
**调用例子:** `/artist/search?keyword=sasakure`
|
||||||
|
|
||||||
@ -4404,6 +4405,17 @@ qrCodeStatus:20,detailReason:0 验证成功qrCodeStatus:21,detailReason:0 二
|
|||||||
|
|
||||||
**调用例子:** `/ugc/user/devote`
|
**调用例子:** `/ugc/user/devote`
|
||||||
|
|
||||||
|
### 年度听歌报告
|
||||||
|
说明: 登录后调用此接口,使用此接口,可获取当前登录用户年度听歌报告,目前支持2017-2022年的报告
|
||||||
|
|
||||||
|
**必选参数:**
|
||||||
|
|
||||||
|
`year`: 报告年份
|
||||||
|
|
||||||
|
**接口地址:** `/summary/annual/`
|
||||||
|
|
||||||
|
**调用例子:** `/summary/annual?year=2022`
|
||||||
|
|
||||||
## 离线访问此文档
|
## 离线访问此文档
|
||||||
|
|
||||||
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
|
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
// 粉丝来源
|
// 粉丝来源
|
||||||
const crypto = require('crypto')
|
const crypto = require('crypto')
|
||||||
module.exports = (query, request) => {
|
module.exports = (query, request) => {
|
||||||
const data = {}
|
const data = {
|
||||||
|
startTime: query.startTime || Date.now() - 7 * 24 * 3600 * 1000,
|
||||||
|
endTime: query.endTime || Date.now(),
|
||||||
|
type: query.type || 0, //新增关注:0 新增取关:1
|
||||||
|
}
|
||||||
return request(
|
return request(
|
||||||
'POST',
|
'POST',
|
||||||
`https://interface.music.163.com/weapi/fanscenter/trend/list`,
|
`https://interface.music.163.com/weapi/fanscenter/trend/list`,
|
||||||
|
19
module/summary_annual.js
Normal file
19
module/summary_annual.js
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// 年度听歌报告2017-2022
|
||||||
|
const crypto = require('crypto')
|
||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {}
|
||||||
|
const key =
|
||||||
|
['2017', '2018', '2019'].indexOf(query.year) > -1 ? 'userdata' : 'data'
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`https://music.163.com/weapi/activity/summary/annual/${query.year}/${key}`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'eapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
url: `/api/activity/summary/annual/${query.year}/${key}`,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user