提交 f254aa2b 编写于 作者: B binaryify

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

上级 1818a4ce
# 更新日志 # 更新日志
### 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 ### 3.24.2 | 2019.10.28
- 修改默认绑定 HOST [#620](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/620) - 修改默认绑定 HOST [#620](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/620)
......
...@@ -158,6 +158,13 @@ ...@@ -158,6 +158,13 @@
135. 电台 - 节目榜 135. 电台 - 节目榜
136. 电台 - 新晋电台榜/热门电台榜 136. 电台 - 新晋电台榜/热门电台榜
137. 类别热门电台 137. 类别热门电台
138. 云村热评
139. 电台24小时节目榜
140. 电台24小时主播榜
141. 电台最热主播榜
142. 电台主播新人榜
143. 电台付费精品榜
144. 歌手热门50首歌曲
## 环境要求 ## 环境要求
......
...@@ -153,6 +153,13 @@ ...@@ -153,6 +153,13 @@
135. 电台 - 节目榜 135. 电台 - 节目榜
136. 电台 - 新晋电台榜/热门电台榜 136. 电台 - 新晋电台榜/热门电台榜
137. 类别热门电台 137. 类别热门电台
138. 云村热评
139. 电台24小时节目榜
140. 电台24小时主播榜
141. 电台最热主播榜
142. 电台主播新人榜
143. 电台付费精品榜
144. 歌手热门50首歌曲
## 安装 ## 安装
...@@ -679,6 +686,14 @@ tags: 歌单标签 ...@@ -679,6 +686,14 @@ tags: 歌单标签
**调用例子 :** `/hot/topic?limit=30&offset=30` **调用例子 :** `/hot/topic?limit=30&offset=30`
### 云村热评
说明 : 登录后调用此接口 , 可获取云村热评
**接口地址 :** `/comment/hotwall/list`
**调用例子 :** `/comment/hotwall/list`
### 心动模式/智能播放 ### 心动模式/智能播放
说明 : 登录后调用此接口 , 可获取心动模式/智能播放列表 说明 : 登录后调用此接口 , 可获取心动模式/智能播放列表
**必选参数 :** `id` : 歌曲 id **必选参数 :** `id` : 歌曲 id
...@@ -777,6 +792,19 @@ category Code 取值: ...@@ -777,6 +792,19 @@ category Code 取值:
**调用例子 :** `/artist/sub?id=6452&t=1` **调用例子 :** `/artist/sub?id=6452&t=1`
### 歌手热门50首歌曲
说明 : 调用此接口,可获取
**必选参数 :**
`id` : 歌手 id
**接口地址 :** `/artist/top/song`
**调用例子 :** `/artist/top/song?id=6452`
### 收藏的歌手列表 ### 收藏的歌手列表
说明 : 调用此接口,可获取收藏的歌手列表 说明 : 调用此接口,可获取收藏的歌手列表
...@@ -2100,6 +2128,63 @@ MV 数据 , 数据包含 mv 名字 , 歌手 , 发布时间 , mv 视频地址等 ...@@ -2100,6 +2128,63 @@ MV 数据 , 数据包含 mv 名字 , 歌手 , 发布时间 , mv 视频地址等
**调用例子 :** `/dj/program/toplist?limit=1` **调用例子 :** `/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`
### 电台 - 新晋电台榜/热门电台榜 ### 电台 - 新晋电台榜/热门电台榜
说明 : 登陆后调用此接口 , 可获得新晋电台榜/热门电台榜 说明 : 登陆后调用此接口 , 可获得新晋电台榜/热门电台榜
...@@ -2224,7 +2309,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` ...@@ -2224,7 +2309,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
**必选参数 :** `rid`: 电台 的 id **必选参数 :** `rid`: 电台 的 id
**接口地址 :** `/dj/detail?rid=336355127` **接口地址 :** `/dj/detail`
**调用例子 :** `/dj/detail?rid=336355127` ( 对应 ' 代码时间 ' 的详情介绍 ) **调用例子 :** `/dj/detail?rid=336355127` ( 对应 ' 代码时间 ' 的详情介绍 )
......
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
module.exports = (query, request) => { module.exports = (query, request) => {
const data = { const data = {
categoryCode: query.cat || '1001', 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, offset: query.offset || 0,
limit: query.limit || 30, limit: query.limit || 30,
total: true total: true
......
// 歌手热门 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}
)
}
\ No newline at end of file
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 }
)
}
// 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}
)
}
\ No newline at end of file
// 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}
)
}
\ No newline at end of file
// 电台新人榜
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}
)
}
\ No newline at end of file
// 付费精品
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}
)
}
\ No newline at end of file
// 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}
)
}
\ No newline at end of file
{ {
"name": "NeteaseCloudMusicApi", "name": "NeteaseCloudMusicApi",
"version": "3.24.2", "version": "3.25.0",
"description": "网易云音乐 NodeJS 版 API", "description": "网易云音乐 NodeJS 版 API",
"scripts": { "scripts": {
"start": "node app.js", "start": "node app.js",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册