diff --git a/docs/README.md b/docs/README.md index c6e82f2f5cb..a907d41c540 100644 --- a/docs/README.md +++ b/docs/README.md @@ -231,6 +231,14 @@ 213. vip成长值获取记录 214. vip任务 215. 领取vip成长值 +216. 歌手粉丝 +216. 数字专辑详情 +217. 数字专辑销量 +218. 音乐人数据概况 +219. 音乐人播放趋势 +220. 音乐人任务 +221. 账号云豆数 +222. 领取云豆 ## 安装 @@ -3368,13 +3376,96 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` ### 领取vip成长值 -说明 : 登陆后调用此接口 , 可获取会员成长值 +说明 : 登陆后调用此接口 , 可获取已完成的会员任务的成长值奖励 -**必选参数 :** `id` : 会员任务 id +**必选参数 :** `ids` : 通过`/vip/tasks`获取到的`unGetIds` **接口地址 :** `/vip/growthpoint/get` -**调用例子 :** `/vip/growthpoint/get?id=7043206830_7` +**调用例子 :** `/vip/growthpoint/get?ids=7043206830_7` `/vip/growthpoint/get?ids=8613118351_1,8607552957_1` + +### 歌手粉丝 + +说明 : 调用此接口 , 传入歌手 id, 可获取歌手粉丝 + +**必选参数 :** `id` : 歌手 id + +**可选参数 :** `limit`: 取出粉丝数量 , 默认为 20 + +`offset`: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)\*10, 其中 10 为 limit 的值 + +**接口地址 :** `/artist/fans` + +**调用例子 :** `/artist/fans?id=2116&limit=10&offset=0` + +### 数字专辑详情 + +说明 : 调用此接口 , 传入专辑 id, 可获取数字专辑信息 + +**必选参数 :** `id` : 专辑 id + +**接口地址 :** `/digitalAlbum/detail` + +**调用例子 :** `/digitalAlbum/detail?id=120605500` + +### 数字专辑销量 + +说明 : 调用此接口 , 传入专辑 id, 可获取数字专辑销量 + +**必选参数 :** `ids` : 专辑 id, 支持多个,用`,`隔开 + +**接口地址 :** `/digitalAlbum/sales` + +**调用例子 :** `/digitalAlbum/sales?ids=120605500` `/digitalAlbum/sales?ids=120605500,125080528` + +### 音乐人数据概况 + +说明 : 音乐人登录后调用此接口 , 可获取统计数据概况 + +**接口地址 :** `/musician/data/overview` + +**调用例子 :** `/musician/data/overview` + +### 音乐人播放趋势 + +说明 : 音乐人登录后调用此接口 , 可获取歌曲播放趋势 + +**必选参数 :** `startTime` : 开始时间 + +`endTime` : 结束时间 + +**接口地址 :** `/musician/play/trend` + +**调用例子 :** `/musician/play/trend?startTime=2021-05-24&endTime=2021-05-30` + +### 音乐人任务 + +说明 : 音乐人登录后调用此接口 , 可获取音乐人任务 + +**接口地址 :** `/musician/tasks` + +**调用例子 :** `/musician/tasks` + +### 账号云豆数 + +说明 : 音乐人登录后调用此接口 , 可获取账号云豆数 + +**接口地址 :** `/musician/cloudbean` + +**调用例子 :** `/musician/cloudbean` + +### 领取云豆 + +说明 : 音乐人登录后调用此接口 , 可领取已完成的音乐人任务的云豆奖励 + +**必选参数 :** `id` : 任务id,通过`/musician/tasks`获取到的`userMissionId`即为任务id + +`period` : 通过`/musician/tasks`获取 + +**接口地址 :** `/musician/cloudbean/obtain` + +**调用例子 :** `/musician/cloudbean/obtain?id=7036416928&period=1` + ## 离线访问此文档 diff --git a/interface.d.ts b/interface.d.ts index 74907c591a1..c0d04efc06e 100644 --- a/interface.d.ts +++ b/interface.d.ts @@ -1470,6 +1470,6 @@ export function vip_tasks(params: RequestBaseConfig): Promise export function vip_growthpoint_get( params: { - id?: number | string + ids?: number | string } & RequestBaseConfig, ): Promise diff --git a/module/artist_fans.js b/module/artist_fans.js new file mode 100644 index 00000000000..1f1ed169841 --- /dev/null +++ b/module/artist_fans.js @@ -0,0 +1,20 @@ +// 歌手粉丝 + +module.exports = (query, request) => { + const data = { + id: query.id, + limit: query.limit || 20, + offset: query.offset || 0, + } + return request( + 'POST', + `https://music.163.com/weapi/artist/fans/get`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) +} diff --git a/module/digitalAlbum_detail.js b/module/digitalAlbum_detail.js new file mode 100644 index 00000000000..b257ff58d71 --- /dev/null +++ b/module/digitalAlbum_detail.js @@ -0,0 +1,19 @@ +// 数字专辑详情 + +module.exports = (query, request) => { + const data = { + id: query.id, + } + return request( + 'POST', + `https://music.163.com/weapi/vipmall/albumproduct/detail`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) + } + \ No newline at end of file diff --git a/module/digitalAlbum_sales.js b/module/digitalAlbum_sales.js new file mode 100644 index 00000000000..4ba18cb830a --- /dev/null +++ b/module/digitalAlbum_sales.js @@ -0,0 +1,19 @@ +// 数字专辑销量 + +module.exports = (query, request) => { + const data = { + albumIds: query.ids, + } + return request( + 'POST', + `https://music.163.com/weapi/vipmall/albumproduct/album/query/sales`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) + } + \ No newline at end of file diff --git a/module/musician_cloudbean.js b/module/musician_cloudbean.js new file mode 100644 index 00000000000..33f5ff0b5b3 --- /dev/null +++ b/module/musician_cloudbean.js @@ -0,0 +1,17 @@ +// 账号云豆数 + +module.exports = (query, request) => { + const data = {} + return request( + 'POST', + `https://music.163.com/weapi/cloudbean/get`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) + } + \ No newline at end of file diff --git a/module/musician_cloudbean_obtain.js b/module/musician_cloudbean_obtain.js new file mode 100644 index 00000000000..7829debd043 --- /dev/null +++ b/module/musician_cloudbean_obtain.js @@ -0,0 +1,20 @@ +// 领取云豆 + +module.exports = (query, request) => { + const data = { + userMissionId: query.id, + period: query.period, + } + return request( + 'POST', + `https://music.163.com/weapi/nmusician/workbench/mission/reward/obtain/new`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) + } + \ No newline at end of file diff --git a/module/musician_data_overview.js b/module/musician_data_overview.js new file mode 100644 index 00000000000..bcee213eabd --- /dev/null +++ b/module/musician_data_overview.js @@ -0,0 +1,17 @@ +// 音乐人数据概况 + +module.exports = (query, request) => { + const data = {} + return request( + 'POST', + `https://music.163.com/weapi/creator/musician/statistic/data/overview/get`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) +} + \ No newline at end of file diff --git a/module/musician_play_trend.js b/module/musician_play_trend.js new file mode 100644 index 00000000000..affec8e9e85 --- /dev/null +++ b/module/musician_play_trend.js @@ -0,0 +1,20 @@ +// 音乐人歌曲播放趋势 + +module.exports = (query, request) => { + const data = { + startTime: query.startTime, + endTime: query.endTime, + } + return request( + 'POST', + `https://music.163.com/weapi/creator/musician/play/count/statistic/data/trend/get`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) +} + \ No newline at end of file diff --git a/module/musician_tasks.js b/module/musician_tasks.js new file mode 100644 index 00000000000..55cf5c294b4 --- /dev/null +++ b/module/musician_tasks.js @@ -0,0 +1,17 @@ +// 获取音乐人任务 + +module.exports = (query, request) => { + const data = {} + return request( + 'POST', + `https://music.163.com/weapi/nmusician/workbench/mission/cycle/list`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) + } + \ No newline at end of file diff --git a/module/vip_growthpoint_get.js b/module/vip_growthpoint_get.js index b903197bd45..69ae94b8b95 100644 --- a/module/vip_growthpoint_get.js +++ b/module/vip_growthpoint_get.js @@ -2,7 +2,7 @@ module.exports = (query, request) => { const data = { - taskIds: query.id, + taskIds: query.ids, } return request( 'POST',