Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1252 from chen310/master
Browse files Browse the repository at this point in the history
增加若干接口
  • Loading branch information
Binaryify authored Jun 2, 2021
2 parents 63ff22b + 4102a70 commit 5bd3b97
Show file tree
Hide file tree
Showing 11 changed files with 245 additions and 5 deletions.
97 changes: 94 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,14 @@
213. vip成长值获取记录
214. vip任务
215. 领取vip成长值
216. 歌手粉丝
216. 数字专辑详情
217. 数字专辑销量
218. 音乐人数据概况
219. 音乐人播放趋势
220. 音乐人任务
221. 账号云豆数
222. 领取云豆

## 安装

Expand Down Expand Up @@ -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`



## 离线访问此文档
Expand Down
2 changes: 1 addition & 1 deletion interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,6 @@ export function vip_tasks(params: RequestBaseConfig): Promise<Response>

export function vip_growthpoint_get(
params: {
id?: number | string
ids?: number | string
} & RequestBaseConfig,
): Promise<Response>
20 changes: 20 additions & 0 deletions module/artist_fans.js
Original file line number Diff line number Diff line change
@@ -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,
},
)
}
19 changes: 19 additions & 0 deletions module/digitalAlbum_detail.js
Original file line number Diff line number Diff line change
@@ -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,
},
)
}

19 changes: 19 additions & 0 deletions module/digitalAlbum_sales.js
Original file line number Diff line number Diff line change
@@ -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,
},
)
}

17 changes: 17 additions & 0 deletions module/musician_cloudbean.js
Original file line number Diff line number Diff line change
@@ -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,
},
)
}

20 changes: 20 additions & 0 deletions module/musician_cloudbean_obtain.js
Original file line number Diff line number Diff line change
@@ -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,
},
)
}

17 changes: 17 additions & 0 deletions module/musician_data_overview.js
Original file line number Diff line number Diff line change
@@ -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,
},
)
}

20 changes: 20 additions & 0 deletions module/musician_play_trend.js
Original file line number Diff line number Diff line change
@@ -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,
},
)
}

17 changes: 17 additions & 0 deletions module/musician_tasks.js
Original file line number Diff line number Diff line change
@@ -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,
},
)
}

2 changes: 1 addition & 1 deletion module/vip_growthpoint_get.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = (query, request) => {
const data = {
taskIds: query.id,
taskIds: query.ids,
}
return request(
'POST',
Expand Down

2 comments on commit 5bd3b97

@vercel
Copy link

@vercel vercel bot commented on 5bd3b97 Jun 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

netease-cloud-music-api – ./docs

netease-cloud-music-api-git-master-binaryify.vercel.app
neteasecloudmusicapi.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 5bd3b97 Jun 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.