Skip to content

re-ovo/CloudMusicApi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloudMusicApi

网易云音乐API接口获取和分析

csdn地址:

http://blog.csdn.net/qq_31673689/article/details/78615448

通过分析各种页面,发现参数加密方式都是一致的,所以这就很简单了,其它的接口也都出来了。下面做个总结:

1、搜索API:

原来的网页地址: http://music.163.com/#/search/m/?id=28193075&s=%E5%9C%A8%E4%BA%BA%E9%97%B4&type=1

(%E5%9C%A8%E4%BA%BA%E9%97%B4)这个就是我们在搜索框中输入内容

搜索建议: http://music.163.com/weapi/search/suggest/web?csrf_token=

按类型搜索: http://music.163.com/weapi/cloudsearch/get/web?csrf_token=

在原地址上面传递的参数可以分析: type类型的不同,搜索的类型不同 type=1 单曲 type=10 专辑 type=100 歌手 type=1000 歌单 type=1002 用户 type=1004 MV type=1006 歌词 type=1009 主播电台

2、查看粉丝 请求头: Referer:http://music.163.com/user/fans?id=97526496

获取指定用户的粉丝: http://music.163.com/weapi/user/getfolloweds?csrf_token=

3、动态: http://music.163.com/user/event?id=97526496 http://music.163.com/weapi/event/get/97526496?csrf_token=

4、播放 http://music.163.com/weapi/song/enhance/player/url 直接播放地址:id可以改为任何存在的歌曲的ID http://music.163.com/outchain/player?type=2&id=516392300&auto=1&height=66&bg=e8e8e8

5、评论(热门评论和全部评论) 516392300这就是歌曲的id http://music.163.com/weapi/v1/resource/comments/R_SO_4_516392300?csrf_token=1ac15bcb947b3900d9e8e6039d121a81

About

网易云音乐API接口获取和分析

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.4%
  • Java 36.6%