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

Commit f254aa2

Browse files
committed
v3.25.0 新增云村热评,歌手热门50首歌曲,电台24小时节目榜,电台24小时主播榜,电台最热主播榜,电台主播新人榜,电台付费精品榜接口,调整歌手分类列表接口 #626 #606 #624
1 parent 1818a4c commit f254aa2

12 files changed

+179
-3
lines changed

CHANGELOG.MD

+9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# 更新日志
2+
### 3.25.0 | 2019.11.06
3+
- 新增 `云村热评` 接口[#626](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/626)
4+
5+
- 新增 `歌手热门50首歌曲` 接口
6+
7+
- 新增`电台24小时节目榜`,`电台24小时主播榜`, `电台最热主播榜`,`电台主播新人榜`,`电台付费精品榜` 接口 [#606](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/606)
8+
9+
- 调整 `歌手分类列表 ` 接口参数 [#624](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/624)
10+
211
### 3.24.2 | 2019.10.28
312
- 修改默认绑定 HOST [#620](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/620)
413

README.MD

+7
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@
158158
135. 电台 - 节目榜
159159
136. 电台 - 新晋电台榜/热门电台榜
160160
137. 类别热门电台
161+
138. 云村热评
162+
139. 电台24小时节目榜
163+
140. 电台24小时主播榜
164+
141. 电台最热主播榜
165+
142. 电台主播新人榜
166+
143. 电台付费精品榜
167+
144. 歌手热门50首歌曲
161168

162169
## 环境要求
163170

docs/README.md

+86-1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@
153153
135. 电台 - 节目榜
154154
136. 电台 - 新晋电台榜/热门电台榜
155155
137. 类别热门电台
156+
138. 云村热评
157+
139. 电台24小时节目榜
158+
140. 电台24小时主播榜
159+
141. 电台最热主播榜
160+
142. 电台主播新人榜
161+
143. 电台付费精品榜
162+
144. 歌手热门50首歌曲
156163

157164

158165
## 安装
@@ -679,6 +686,14 @@ tags: 歌单标签
679686

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

689+
690+
### 云村热评
691+
说明 : 登录后调用此接口 , 可获取云村热评
692+
693+
**接口地址 :** `/comment/hotwall/list`
694+
695+
**调用例子 :** `/comment/hotwall/list`
696+
682697
### 心动模式/智能播放
683698
说明 : 登录后调用此接口 , 可获取心动模式/智能播放列表
684699
**必选参数 :** `id` : 歌曲 id
@@ -777,6 +792,19 @@ category Code 取值:
777792

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

795+
796+
### 歌手热门50首歌曲
797+
798+
说明 : 调用此接口,可获取
799+
800+
**必选参数 :**
801+
802+
`id` : 歌手 id
803+
804+
**接口地址 :** `/artist/top/song`
805+
806+
**调用例子 :** `/artist/top/song?id=6452`
807+
780808
### 收藏的歌手列表
781809

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

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

2131+
### 电台 - 付费精品
2132+
说明 : 调用此接口,可获取付费精品电台
2133+
2134+
**可选参数 :**
2135+
2136+
`limit` : 返回数量 , 默认为 100 (不支持 offset)
2137+
2138+
**接口地址 :** `/dj/toplist/pay`
2139+
2140+
**调用例子 :** `/dj/toplist/pay?limit=30`
2141+
2142+
2143+
### 电台 - 24小时节目榜
2144+
说明 : 调用此接口,可获取24小时节目榜
2145+
2146+
**可选参数 :**
2147+
2148+
`limit` : 返回数量 , 默认为 100 (不支持 offset)
2149+
2150+
**接口地址 :** `/djprogram/toplist/hours`
2151+
2152+
**调用例子 :** `/dj/program/toplist/hours?limit=1`
2153+
2154+
### 电台 - 24小时主播榜
2155+
说明 : 调用此接口,可获取24小时主播榜
2156+
2157+
**可选参数 :**
2158+
2159+
`limit` : 返回数量 , 默认为 100 (不支持 offset)
2160+
2161+
**接口地址 :** `/dj/toplist/hours`
2162+
2163+
**调用例子 :** `/dj/toplist/hours?limit=30`
2164+
2165+
### 电台 - 主播新人榜
2166+
说明 : 调用此接口,可获取主播新人榜
2167+
2168+
**可选参数 :**
2169+
2170+
`limit` : 返回数量 , 默认为 100 (不支持 offset)
2171+
2172+
**接口地址 :** `/dj/toplist/newcomer`
2173+
2174+
**调用例子 :** `/dj/toplist/newcomer?limit=30`
2175+
2176+
2177+
### 电台 - 最热主播榜
2178+
说明 : 调用此接口,可获取最热主播榜
2179+
2180+
**可选参数 :**
2181+
2182+
`limit` : 返回数量 , 默认为 100 (不支持 offset)
2183+
2184+
**接口地址 :** `/dj/toplist/popular`
2185+
2186+
**调用例子 :** `/dj/toplist/popular?limit=30`
2187+
21032188
### 电台 - 新晋电台榜/热门电台榜
21042189

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

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

2227-
**接口地址 :** `/dj/detail?rid=336355127`
2312+
**接口地址 :** `/dj/detail`
22282313

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

module/artist_list.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
module.exports = (query, request) => {
2626
const data = {
2727
categoryCode: query.cat || '1001',
28-
initial: (query.initial || '').toUpperCase().charCodeAt() || '',
28+
// initial: (query.initial || '').toUpperCase().charCodeAt() || '',
29+
initial: isNaN(query.initial) ? (query.initial || '').toUpperCase().charCodeAt() || undefined : query.initial,
2930
offset: query.offset || 0,
3031
limit: query.limit || 30,
3132
total: true

module/artist_top_song.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// 歌手热门 50 首歌曲
2+
module.exports = (query, request) => {
3+
const data = {
4+
id: query.id
5+
}
6+
return request(
7+
'POST', `https://music.163.com/api/artist/top/song`, data,
8+
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
9+
)
10+
}

module/comment_hotwall_list.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = (query, request) => {
2+
const data = {}
3+
return request(
4+
'POST',
5+
`https://music.163.com/api/comment/hotwall/list/get`,
6+
data,
7+
{ crypto: 'weapi', cookie: query.cookie, proxy: query.proxy }
8+
)
9+
}

module/dj_program_toplist_hours.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// 24小时榜
2+
module.exports = (query, request) => {
3+
const data = {
4+
limit: query.limit || 100
5+
// 不支持 offset
6+
}
7+
return request(
8+
'POST', `https://music.163.com/api/djprogram/toplist/hours`, data,
9+
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
10+
)
11+
}

module/dj_toplist_hours.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// 24小时榜
2+
module.exports = (query, request) => {
3+
const data = {
4+
limit: query.limit || 100
5+
// 不支持 offset
6+
}
7+
return request(
8+
'POST', `https://music.163.com/api/dj/toplist/hours`, data,
9+
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
10+
)
11+
}

module/dj_toplist_newcomer.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// 电台新人榜
2+
module.exports = (query, request) => {
3+
const data = {
4+
limit: query.limit || 100,
5+
offset: query.offset || 0
6+
}
7+
return request(
8+
'POST', `https://music.163.com/api/dj/toplist/newcomer`, data,
9+
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
10+
)
11+
}

module/dj_toplist_pay.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// 付费精品
2+
module.exports = (query, request) => {
3+
const data = {
4+
limit: query.limit || 100
5+
// 不支持 offset
6+
}
7+
return request(
8+
'POST', `https://music.163.com/api/djradio/toplist/pay`, data,
9+
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
10+
)
11+
}

module/dj_toplist_popular.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// 24小时榜
2+
module.exports = (query, request) => {
3+
const data = {
4+
limit: query.limit || 100
5+
// 不支持 offset
6+
}
7+
return request(
8+
'POST', `https://music.163.com/api/dj/toplist/popular`, data,
9+
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
10+
)
11+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "NeteaseCloudMusicApi",
3-
"version": "3.24.2",
3+
"version": "3.25.0",
44
"description": "网易云音乐 NodeJS 版 API",
55
"scripts": {
66
"start": "node app.js",

0 commit comments

Comments
 (0)