Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
amywang_xiannv
NeteaseCloudMusicApi
提交
b9f02d6b
N
NeteaseCloudMusicApi
项目概览
amywang_xiannv
/
NeteaseCloudMusicApi
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
NeteaseCloudMusicApi
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b9f02d6b
编写于
10月 16, 2019
作者:
B
binaryify
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复电台 banner 接口无数据问题 #601,更新排行榜 #602,新增电台排行榜,新晋电台榜,热门电台榜接口 #604
上级
c0e4b399
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
73 addition
and
1 deletion
+73
-1
CHANGELOG.MD
CHANGELOG.MD
+7
-0
README.MD
README.MD
+2
-0
docs/README.md
docs/README.md
+30
-0
module/dj_banner.js
module/dj_banner.js
+1
-0
module/dj_program_toplist.js
module/dj_program_toplist.js
+12
-0
module/dj_toplist.js
module/dj_toplist.js
+16
-0
module/top_list.js
module/top_list.js
+4
-0
package.json
package.json
+1
-1
未找到文件。
CHANGELOG.MD
浏览文件 @
b9f02d6b
# 更新日志
### 3.23.0 | 2019.10.16
-
修复电台 banner 接口无数据问题
[
#601
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/601
)
-
更新排行榜
[
#602
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/602
)
-
新增
`电台排行榜`
,
`新晋电台榜`
,
`热门电台榜`
接口
[
#604
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/604
)
### 3.22.4 | 2019.09.26
-
修复私信历史记录分页参数问题,更新文档
[
#599
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/599
)
...
...
README.MD
浏览文件 @
b9f02d6b
...
...
@@ -155,6 +155,8 @@
132.
用户电台
133.
热门电台
134.
电台 - 节目详情
135.
电台 - 节目榜
136.
电台 - 新晋电台榜/热门电台榜
## 环境要求
...
...
docs/README.md
浏览文件 @
b9f02d6b
...
...
@@ -150,6 +150,9 @@
132.
用户电台
133.
热门电台
134.
电台 - 节目详情
135.
电台 - 节目榜
136.
电台 - 新晋电台榜/热门电台榜
## 安装
...
...
@@ -2071,6 +2074,33 @@ MV 数据 , 数据包含 mv 名字 , 歌手 , 发布时间 , mv 视频地址等
**调用例子 :**
`/dj/hot`
### 电台 - 节目榜
说明 : 登陆后调用此接口 , 可获得电台节目榜
**可选参数 :**
`limit`
: 返回数量 , 默认为 100
`offset`
: 偏移数量,用于分页 , 如 :( 页数 -1)
\*
100, 其中 100 为 limit 的值 , 默认为 0
**接口地址 :**
`/dj/program/toplist`
**调用例子 :**
`/dj/program/toplist?limit=1`
### 电台 - 新晋电台榜/热门电台榜
说明 : 登陆后调用此接口 , 可获得新晋电台榜/热门电台榜
**可选参数 :**
`limit`
: 返回数量 , 默认为 100
`offset`
: 偏移数量,用于分页 , 如 :( 页数 -1)
\*
100, 其中 100 为 limit 的值 , 默认为 0
**接口地址 :**
`/dj/toplist`
**调用例子 :**
`/dj/toplist?type=hot`
`/dj/toplist?type=new&limit=1`
### 电台 - 推荐
说明 : 登陆后调用此接口 , 可获得推荐电台
...
...
module/dj_banner.js
浏览文件 @
b9f02d6b
...
...
@@ -2,6 +2,7 @@
module
.
exports
=
(
query
,
request
)
=>
{
const
data
=
{};
query
.
cookie
.
os
=
'
pc
'
;
return
request
(
'
POST
'
,
`http://music.163.com/weapi/djradio/banner/get`
,
...
...
module/dj_program_toplist.js
0 → 100644
浏览文件 @
b9f02d6b
// 电台节目榜
module
.
exports
=
(
query
,
request
)
=>
{
const
data
=
{
limit
:
query
.
limit
||
100
,
offset
:
query
.
offset
||
0
}
return
request
(
'
POST
'
,
`https://music.163.com/api/program/toplist/v1`
,
data
,
{
crypto
:
'
weapi
'
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
}
)
}
\ No newline at end of file
module/dj_toplist.js
0 → 100644
浏览文件 @
b9f02d6b
// 新晋电台榜/热门电台榜
const
typeMap
=
{
'
new
'
:
0
,
'
hot
'
:
1
}
module
.
exports
=
(
query
,
request
)
=>
{
const
data
=
{
limit
:
query
.
limit
||
100
,
offset
:
query
.
offset
||
0
,
type
:
typeMap
[
query
.
type
||
'
new
'
]
||
'
0
'
//0为新晋,1为热门
}
return
request
(
'
POST
'
,
`https://music.163.com/api/djradio/toplist`
,
data
,
{
crypto
:
'
weapi
'
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
}
)
}
\ No newline at end of file
module/top_list.js
浏览文件 @
b9f02d6b
...
...
@@ -35,6 +35,10 @@ const topList = {
31
:
'
2809513713
'
,
//云音乐欧美热歌榜
32
:
'
2809577409
'
,
//云音乐欧美新歌榜
33
:
'
2847251561
'
,
//说唱TOP榜
34
:
'
3001835560
'
,
//云音乐ACG动画榜
35
:
'
3001795926
'
,
//云音乐ACG游戏榜
36
:
'
3001890046
'
,
//云音乐ACG VOCALOID榜
}
module
.
exports
=
(
query
,
request
)
=>
{
...
...
package.json
浏览文件 @
b9f02d6b
{
"name"
:
"NeteaseCloudMusicApi"
,
"version"
:
"3.2
2.4
"
,
"version"
:
"3.2
3.0
"
,
"description"
:
"网易云音乐 NodeJS 版 API"
,
"scripts"
:
{
"start"
:
"node app.js"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录