diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 4aa9192..1a2b788 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,8 @@ # 更新日志 +### 3.28.0 | 2020.05.05 +- 新增获取 mv 点赞转发评论数数据接口 +- 新增获取视频点赞转发评论数数据接口 + ### 3.27.0 | 2020.04.20 - 新增购买专辑接口 by [TimonPeng](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/740) diff --git a/README.MD b/README.MD index 9dd0b74..88d0ba3 100644 --- a/README.MD +++ b/README.MD @@ -166,6 +166,8 @@ 143. 电台付费精品榜 144. 歌手热门50首歌曲 145. 购买数字专辑 +146. 获取 mv 点赞转发评论数数据 +147. 获取视频点赞转发评论数数据 ## 环境要求 diff --git a/docs/README.md b/docs/README.md index a110bf4..064a740 100644 --- a/docs/README.md +++ b/docs/README.md @@ -161,6 +161,8 @@ 143. 电台付费精品榜 144. 歌手热门50首歌曲 145. 购买数字专辑 +146. 获取 mv 点赞转发评论数数据 +147. 获取视频点赞转发评论数数据 ## 安装 @@ -424,8 +426,7 @@ Cookies 说明 : 调用此接口,可获取登录状态 **接口地址 :** `/login/status` -返回数据如下图: -![数据](https://ws2.sinaimg.cn/large/006tNbRwgy1fup6q18kk6j316i0nw0wa.jpg) + ### 获取用户详情 @@ -612,9 +613,6 @@ tags: 歌单标签 **调用例子 :** `/event/forward?evId=6712917601&uid=32953014&forwards=测试内容` -如下图 -![](https://ws4.sinaimg.cn/large/006tNc79gy1g2trwz8o2gj31b20r6t9n.jpg) -![](https://ws3.sinaimg.cn/large/006tNc79gy1g2trxa0vlej319u0gyjrq.jpg) ### 删除用户动态 说明 : 登陆后调用此接口 ,可以删除用户动态 @@ -759,8 +757,6 @@ tags: 歌单标签 **调用例子 :** `/artist/list?type=1&area=96&initial=b` `/artist/list?type=2&area=2&initial=b` -返回数据如下图: -![数据](https://ws1.sinaimg.cn/large/006tKfTcgy1fr60g9zps9j31kw1bpk4n.jpg) ### 收藏/取消收藏歌手 @@ -1018,8 +1014,7 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具 **调用例子 :** `/playlist/create?name=测试歌单` -返回数据如下图: -![数据](https://ws1.sinaimg.cn/large/006tKfTcgy1fr3va885z5j31a617qwjy.jpg) + ### 删除歌单 @@ -1046,8 +1041,7 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具 **调用例子 :** `/playlist/subscribe?t=1&id=106697785` `/playlist/subscribe?t=2&id=106697785` -返回数据如下图: -![数据](https://ws1.sinaimg.cn/large/006tKfTcgy1fr3vdwx0hvj30s405u74b.jpg) + ### 歌单收藏者 说明 : 调用此接口 , 传入歌单 id 可获取歌单的所有收藏者 @@ -1857,7 +1851,16 @@ MV 数据 , 数据包含 mv 名字 , 歌手 , 发布时间 , mv 视频地址等 返回数据如下图 : -![热门歌手](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/mv.png) +![mv 数据](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/mv.png) + +### 获取 mv 点赞转发评论数数据 +说明 : 调用此接口 , 传入 mvid ( 在搜索音乐的时候传 type=1004 获得 ) , 可获取对应 +MV 点赞转发评论数数据 +**必选参数 :** `mvid`: mv 的 id + +**接口地址 :** `/mv/detail/info` + +**调用例子 :** `/mv/detail/info?mvid=5436712` ### mv 地址 @@ -1908,6 +1911,14 @@ MV 数据 , 数据包含 mv 名字 , 歌手 , 发布时间 , mv 视频地址等 **调用例子 :** `/video/detail?id=89ADDE33C0AAE8EC14B99F6750DB954D` +### 获取视频点赞转发评论数数据 +说明 : 调用此接口 , 传入 vid ( 视频id ) , 可获取对应视频点赞转发评论数数据 +**必选参数 :** `vid`: 视频id + +**接口地址 :** `/video/detail/info` + +**调用例子 :** `/video/detail/info?vid=89ADDE33C0AAE8EC14B99F6750DB954D` + ### 获取视频播放地址 说明 : 调用此接口 , 传入视频 id,可获取视频播放地址 @@ -1918,10 +1929,6 @@ MV 数据 , 数据包含 mv 名字 , 歌手 , 发布时间 , mv 视频地址等 **调用例子 :** `/video/url?id=89ADDE33C0AAE8EC14B99F6750DB954D` -返回数据如下图 : - -![视频数据](https://ws1.sinaimg.cn/large/006tNbRwgy1fuqdv10p5rj31kw0da76y.jpg) - ### 排行榜 @@ -2350,8 +2357,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` **接口地址 :** `/send/text` **调用例子 :** `/send/text?user_ids=32953014&msg=test`,`/send/text?user_ids=32953014,475625142&msg=test` -返回数据如下图: -![数据](https://ws1.sinaimg.cn/large/006tKfTcgy1fr3p3hfeudj31kw1aek2e.jpg) + ### 私信内容 说明 : 登陆后调用此接口 , 可获取私信内容 @@ -2383,9 +2389,6 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` **接口地址 :** `/send/playlist` **调用例子 :** `/send/playlist?msg=test&user_ids=475625142&playlist=705123491`,`/send/playlist?msg=test2&user_ids=475625142,32953014&playlist=705123493` -返回数据如下图: -![数据](https://ws1.sinaimg.cn/large/006tKfTcgy1fr3p1z7qmcj30v409adg5.jpg) - ### 通知 - 评论 @@ -2450,7 +2453,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` **调用例子 :** `/digitalAlbum/purchased?limit=10` ### 购买数字专辑 -说明 : 登陆后调用此接口 ,可购买数字专辑 +说明 : 登陆后调用此接口 ,可获取购买数字专辑的地址,把地址生成二维码后,可扫描购买专辑 **必选参数 :** diff --git a/module/mv_detail.js b/module/mv_detail.js index f46ef81..1cda103 100644 --- a/module/mv_detail.js +++ b/module/mv_detail.js @@ -5,7 +5,7 @@ module.exports = (query, request) => { id: query.mvid } return request( - 'POST', `https://music.163.com/weapi/mv/detail`, data, + 'POST', `https://music.163.com/api/v1/mv/detail`, data, {crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} ) } \ No newline at end of file diff --git a/module/mv_detail_info.js b/module/mv_detail_info.js new file mode 100644 index 0000000..87ce2f9 --- /dev/null +++ b/module/mv_detail_info.js @@ -0,0 +1,11 @@ + +module.exports = (query, request) => { + const data = { + 'threadid': `R_MV_5_${query.mvid}`, + 'composeliked': true + } + return request( + 'POST', `https://music.163.com/api/comment/commentthread/info`, data, + { crypto: 'weapi', cookie: query.cookie, proxy: query.proxy } + ) +} \ No newline at end of file diff --git a/module/video_detail_info.js b/module/video_detail_info.js new file mode 100644 index 0000000..d0845d5 --- /dev/null +++ b/module/video_detail_info.js @@ -0,0 +1,11 @@ + +module.exports = (query, request) => { + const data = { + 'threadid': `R_VI_62_${query.vid}`, + 'composeliked': true + } + return request( + 'POST', `https://music.163.com/api/comment/commentthread/info`, data, + { crypto: 'weapi', cookie: query.cookie, proxy: query.proxy } + ) +} \ No newline at end of file diff --git a/package.json b/package.json index 67ba34c..72d5015 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "3.27.0", + "version": "3.28.0", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js",