README.MD 6.0 KB
Newer Older
B
binaryify 已提交
1
# 网易云音乐 API
2

W
improve  
waterdanceTV 已提交
3
网易云音乐 Node.js API service
4

zhuangtongfa's avatar
zhuangtongfa 已提交
5
<p>
zhuangtongfa's avatar
update  
zhuangtongfa 已提交
6
<a href="https://www.npmjs.com/package/NeteaseCloudMusicApi"><img src="https://img.shields.io/npm/v/NeteaseCloudMusicApi.svg" alt="Version"></a>
zhuangtongfa's avatar
zhuangtongfa 已提交
7
<a href="https://www.npmjs.com/package/NeteaseCloudMusicApi"><img src="https://img.shields.io/npm/l/NeteaseCloudMusicApi.svg" alt="License"></a>
zhuangtongfa's avatar
zhuangtongfa 已提交
8 9
<a href="https://www.npmjs.com/package/NeteaseCloudMusicApi"><img src="https://img.shields.io/david/dev/binaryify/NeteaseCloudMusicApi.svg" alt="devDependencies" ></a>
<a href="https://www.npmjs.com/package/NeteaseCloudMusicApi"><img src="https://img.shields.io/david/binaryify/NeteaseCloudMusicApi.svg" alt="devDependencies" ></a>
zhuangtongfa's avatar
update  
zhuangtongfa 已提交
10
<a href="https://codeclimate.com/github/Binaryify/NeteaseCloudMusicApi"><img src="https://codeclimate.com/github/Binaryify/NeteaseCloudMusicApi/badges/gpa.svg" /></a>
11
</p>
zhuangtongfa's avatar
zhuangtongfa 已提交
12

13
## 灵感来自
14

15 16 17
[disoul/electron-cloud-music](https://github.com/disoul/electron-cloud-music)

[darknessomi/musicbox](https://github.com/darknessomi/musicbox)
18

B
binaryify 已提交
19 20 21
[sqaiyan/netmusic-node](https://github.com/sqaiyan/netmusic-node)

## 版本新特性
22 23 24 25

### 2.10.0 | 2018.05.17
歌单操作调整为批量操作

B
update  
binaryify 已提交
26 27
### 2.9.8 | 2018.05.10
新增歌手分类列表,收藏/取消收藏歌手接口,新增更新用户信息,更新歌单接口
28

29 30
### 2.9.6 | 2018.05.08
新增发送私信相关接口,新增新建歌单,收藏/取消收藏歌单接口
31

32 33
### 2.9.4 | 2018.05.04
新增热搜接口,更新 banner 接口
34

35
### 2.9.0 | 2018.01.26
36

37
docker 构建文件的一些增强以及增加访问日志和调试输出
孟政元 已提交
38

39
### 2.8.1 | 2018.01.04
40 41

添加了 proxy 功能
孟政元 已提交
42

B
binaryify 已提交
43
### 2.6.4 | 2017.7.16
44

45
添加缓存机制和随机 UA 机制 感谢[@u3u](https://github.com/u3u)
46 47
[issue:77](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/77) 优化请求
代码 感谢 [@huhuime](https://github.com/huhuime)
B
binaryify 已提交
48 49
[issue:83](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/83)

50
### 2.5.0 | 2017.4.29
51

52 53 54
增加 mv/ 专辑 / 歌单评论接口 , 增加云盘相关接口 , 增加获取用户动态 / 信息接口 ,
增加关注 / 粉丝列表接口 , 增加收藏歌单接口 , 增加相似 mv/ 歌曲 / 用户接口 , 增加
banner 接口 , 增加刷新登录接口 , 增加电台相关接口 , 补充评论接口 , 更新文档
B
binaryify 已提交
55

56
## 功能特性
57

58
1. 登录
B
binaryify 已提交
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
2. 刷新登录
3. 获取用户信息,歌单,收藏,mv, dj 数量
4. 获取用户歌单
5. 获取用户电台
6. 获取用户关注列表
7. 获取用户粉丝列表
8. 获取用户动态
9. 获取用户播放记录
10. 获取精品歌单
11. 获取歌单详情
12. 搜索
13. 搜索建议
14. 获取歌词
15. 歌曲评论
16. 收藏单曲到歌单
17. 专辑评论
18. 歌单评论
19. mv 评论
20. 电台节目评论
21. banner
22. 获取歌曲详情
23. 获取专辑内容
24. 获取歌手单曲
25. 获取歌手 mv
26. 获取歌手专辑
27. 获取歌手描述
28. 获取相似歌手
29. 获取相似歌单
30. 相似 mv
31. 获取相似音乐
32. 获取相似用户
33. 获取每日推荐歌单
34. 获取每日推荐歌曲
35. 私人 FM
36. 签到
37. 喜欢音乐
38. 垃圾桶
39. 歌单(网友精选碟)
40. 新碟上架
41. 热门歌手
42. 最新 mv
43. 推荐 mv
44. 推荐歌单
45. 推荐新音乐
46. 推荐电台
47. 推荐节目
48. 独家放送
49. mv 排行
50. 获取 mv 数据
51. 播放 mv
52. 排行榜
53. 云盘
54. 电台-推荐
55. 电台-分类
56. 电台-分类推荐
57. 电台-订阅
58. 电台-详情
59. 电台-节目
60. 给评论点赞
B
binaryify 已提交
118

119
## 环境要求
120

121
需要 NodeJS 6.0+ 环境
zhuangtongfa's avatar
init  
zhuangtongfa 已提交
122

123
## 安装
124 125

```shell
126 127
$ git clone git@github.com:Binaryify/NeteaseCloudMusicApi.git
$ npm install
128
```
129

130
## 运行
131 132

```shell
133
$ node app.js
134
```
135 136 137

服务器启动默认端口为 3000,若不想使用 3000 端口,可使用以下命令: Mac/Linux

B
binaryify 已提交
138 139 140 141
```shell
$ PORT=4000 node app.js
```

142
windows 下使用 git-bash 或者 cmder 等终端执行以下命令:
143

B
binaryify 已提交
144 145 146
```shell
$ set PORT=4000 && node app.js
```
147

148 149
## Docker 容器运行

150 151 152 153 154
```shell
docker pull pengxiao/netease-music-api
docker run -d -p 3000:3000 pengxiao/netease-music-api
```

155
## 使用文档
156

157
[文档地址](https://binaryify.github.io/NeteaseCloudMusicApi)
158

B
improve  
binaryify 已提交
159 160
![文档](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/docs.png)

161
## 更新日志
162

163
[changelog](https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/CHANGELOG.MD)
B
binaryify 已提交
164

165
## 单元测试
166

167
```shell
168
$ npm test
169
```
zhuangtongfa's avatar
update  
zhuangtongfa 已提交
170

171 172
![单元测试](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/screenshot1.png)
![单元测试](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/screenshot2.png)
zhuangtongfa's avatar
update  
zhuangtongfa 已提交
173

B
improve  
binaryify 已提交
174 175 176 177 178 179 180 181

## 贡献者

[<img alt="nujhong" src="https://avatars1.githubusercontent.com/u/23186058?v=4&s=117" width="117">](https://github.com/nujhong)[<img alt="zhangzhengyi12" src="https://avatars1.githubusercontent.com/u/23502338?v=4&s=117" width="117">](https://github.com/zhangzhengyi12)[<img alt="mchome" src="https://avatars1.githubusercontent.com/u/7392658?v=4&s=117" width="117">](https://github.com/mchome)[<img alt="pengx17" src="https://avatars1.githubusercontent.com/u/584378?v=4&s=117" width="117">](https://github.com/pengx17)[<img alt="LengYXin" src="https://avatars1.githubusercontent.com/u/19631404?v=4&s=117" width="117">](https://github.com/LengYXin)[<img alt="rccoder" src="https://avatars3.githubusercontent.com/u/7554325?v=4&s=117" width="117">](https://github.com/rccoder)

[<img alt="zhixuanziben" src="https://avatars0.githubusercontent.com/u/18346513?v=4&s=117" width="117">](https://github.com/zhixuanziben)[<img alt="LightStrawberry" src="https://avatars3.githubusercontent.com/u/5920513?v=4&s=117" width="117">](https://github.com/LightStrawberry)[<img alt="CeBkCn" src="https://avatars3.githubusercontent.com/u/14861605?v=4&s=117" width="117">](https://github.com/CeBkCn)[<img alt="nondanee" src="https://avatars0.githubusercontent.com/u/26399680?v=4&s=117" width="117">](https://github.com/nondanee)[<img alt="twesix" src="https://avatars1.githubusercontent.com/u/16174733?v=4&s=117" width="117">](https://github.com/twesix)


182
## License
183

B
improve  
binaryify 已提交
184
[The MIT License (MIT)](https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/LICENSE)
185 186