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

Commit

Permalink
v3.25.0 新增云村热评,歌手热门50首歌曲,电台24小时节目榜,电台24小时主播榜,电台最热主播榜,电台主播新人榜,电台付费精品榜接…
Browse files Browse the repository at this point in the history
…口,调整歌手分类列表接口 #626 #606 #624
  • Loading branch information
Binaryify committed Nov 6, 2019
1 parent 1818a4c commit f254aa2
Show file tree
Hide file tree
Showing 12 changed files with 179 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# 更新日志
### 3.25.0 | 2019.11.06
- 新增 `云村热评` 接口[#626](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/626)

- 新增 `歌手热门50首歌曲` 接口

- 新增`电台24小时节目榜`,`电台24小时主播榜`, `电台最热主播榜`,`电台主播新人榜`,`电台付费精品榜` 接口 [#606](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/606)

- 调整 `歌手分类列表 ` 接口参数 [#624](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/624)

### 3.24.2 | 2019.10.28
- 修改默认绑定 HOST [#620](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/620)

Expand Down
7 changes: 7 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@
135. 电台 - 节目榜
136. 电台 - 新晋电台榜/热门电台榜
137. 类别热门电台
138. 云村热评
139. 电台24小时节目榜
140. 电台24小时主播榜
141. 电台最热主播榜
142. 电台主播新人榜
143. 电台付费精品榜
144. 歌手热门50首歌曲

## 环境要求

Expand Down
87 changes: 86 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@
135. 电台 - 节目榜
136. 电台 - 新晋电台榜/热门电台榜
137. 类别热门电台
138. 云村热评
139. 电台24小时节目榜
140. 电台24小时主播榜
141. 电台最热主播榜
142. 电台主播新人榜
143. 电台付费精品榜
144. 歌手热门50首歌曲


## 安装
Expand Down Expand Up @@ -679,6 +686,14 @@ tags: 歌单标签

**调用例子 :** `/hot/topic?limit=30&offset=30`


### 云村热评
说明 : 登录后调用此接口 , 可获取云村热评

**接口地址 :** `/comment/hotwall/list`

**调用例子 :** `/comment/hotwall/list`

### 心动模式/智能播放
说明 : 登录后调用此接口 , 可获取心动模式/智能播放列表
**必选参数 :** `id` : 歌曲 id
Expand Down Expand Up @@ -777,6 +792,19 @@ category Code 取值:

**调用例子 :** `/artist/sub?id=6452&t=1`


### 歌手热门50首歌曲

说明 : 调用此接口,可获取

**必选参数 :**

`id` : 歌手 id

**接口地址 :** `/artist/top/song`

**调用例子 :** `/artist/top/song?id=6452`

### 收藏的歌手列表

说明 : 调用此接口,可获取收藏的歌手列表
Expand Down Expand Up @@ -2100,6 +2128,63 @@ MV 数据 , 数据包含 mv 名字 , 歌手 , 发布时间 , mv 视频地址等

**调用例子 :** `/dj/program/toplist?limit=1`

### 电台 - 付费精品
说明 : 调用此接口,可获取付费精品电台

**可选参数 :**

`limit` : 返回数量 , 默认为 100 (不支持 offset)

**接口地址 :** `/dj/toplist/pay`

**调用例子 :** `/dj/toplist/pay?limit=30`


### 电台 - 24小时节目榜
说明 : 调用此接口,可获取24小时节目榜

**可选参数 :**

`limit` : 返回数量 , 默认为 100 (不支持 offset)

**接口地址 :** `/djprogram/toplist/hours`

**调用例子 :** `/dj/program/toplist/hours?limit=1`

### 电台 - 24小时主播榜
说明 : 调用此接口,可获取24小时主播榜

**可选参数 :**

`limit` : 返回数量 , 默认为 100 (不支持 offset)

**接口地址 :** `/dj/toplist/hours`

**调用例子 :** `/dj/toplist/hours?limit=30`

### 电台 - 主播新人榜
说明 : 调用此接口,可获取主播新人榜

**可选参数 :**

`limit` : 返回数量 , 默认为 100 (不支持 offset)

**接口地址 :** `/dj/toplist/newcomer`

**调用例子 :** `/dj/toplist/newcomer?limit=30`


### 电台 - 最热主播榜
说明 : 调用此接口,可获取最热主播榜

**可选参数 :**

`limit` : 返回数量 , 默认为 100 (不支持 offset)

**接口地址 :** `/dj/toplist/popular`

**调用例子 :** `/dj/toplist/popular?limit=30`

### 电台 - 新晋电台榜/热门电台榜

说明 : 登陆后调用此接口 , 可获得新晋电台榜/热门电台榜
Expand Down Expand Up @@ -2224,7 +2309,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`

**必选参数 :** `rid`: 电台 的 id

**接口地址 :** `/dj/detail?rid=336355127`
**接口地址 :** `/dj/detail`

**调用例子 :** `/dj/detail?rid=336355127` ( 对应 ' 代码时间 ' 的详情介绍 )

Expand Down
3 changes: 2 additions & 1 deletion module/artist_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
module.exports = (query, request) => {
const data = {
categoryCode: query.cat || '1001',
initial: (query.initial || '').toUpperCase().charCodeAt() || '',
// initial: (query.initial || '').toUpperCase().charCodeAt() || '',
initial: isNaN(query.initial) ? (query.initial || '').toUpperCase().charCodeAt() || undefined : query.initial,
offset: query.offset || 0,
limit: query.limit || 30,
total: true
Expand Down
10 changes: 10 additions & 0 deletions module/artist_top_song.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 歌手热门 50 首歌曲
module.exports = (query, request) => {
const data = {
id: query.id
}
return request(
'POST', `https://music.163.com/api/artist/top/song`, data,
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
)
}
9 changes: 9 additions & 0 deletions module/comment_hotwall_list.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = (query, request) => {
const data = {}
return request(
'POST',
`https://music.163.com/api/comment/hotwall/list/get`,
data,
{ crypto: 'weapi', cookie: query.cookie, proxy: query.proxy }
)
}
11 changes: 11 additions & 0 deletions module/dj_program_toplist_hours.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// 24小时榜
module.exports = (query, request) => {
const data = {
limit: query.limit || 100
// 不支持 offset
}
return request(
'POST', `https://music.163.com/api/djprogram/toplist/hours`, data,
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
)
}
11 changes: 11 additions & 0 deletions module/dj_toplist_hours.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// 24小时榜
module.exports = (query, request) => {
const data = {
limit: query.limit || 100
// 不支持 offset
}
return request(
'POST', `https://music.163.com/api/dj/toplist/hours`, data,
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
)
}
11 changes: 11 additions & 0 deletions module/dj_toplist_newcomer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// 电台新人榜
module.exports = (query, request) => {
const data = {
limit: query.limit || 100,
offset: query.offset || 0
}
return request(
'POST', `https://music.163.com/api/dj/toplist/newcomer`, data,
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
)
}
11 changes: 11 additions & 0 deletions module/dj_toplist_pay.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// 付费精品
module.exports = (query, request) => {
const data = {
limit: query.limit || 100
// 不支持 offset
}
return request(
'POST', `https://music.163.com/api/djradio/toplist/pay`, data,
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
)
}
11 changes: 11 additions & 0 deletions module/dj_toplist_popular.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// 24小时榜
module.exports = (query, request) => {
const data = {
limit: query.limit || 100
// 不支持 offset
}
return request(
'POST', `https://music.163.com/api/dj/toplist/popular`, data,
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
)
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "NeteaseCloudMusicApi",
"version": "3.24.2",
"version": "3.25.0",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
Expand Down

0 comments on commit f254aa2

Please sign in to comment.