歌曲下载

直链下载接口:

https://music.163.com/song/media/outer/url?id={id}.mp3
例如歌曲id为 26189480
直链地址是 (下载的话用http访问):

https://music.163.com/song/media/outer/url?id=26189480.mp3
跳转到:https://m7.music.126.net/20210519165905/bac6ba763cf1f6b75b5a26af10b01822/ymusic/e5b8/82dd/617f/60aeb476c6721079953b2ae96722ed1d.mp3

用海外的服务器访问就不行。。。

歌词下载:https://music.163.com/api/song/media?id=26189480

这是首纯音乐,直接返回:{"nolyric":true,"code":200}

成功的长这样:http://music.163.com/api/song/media?id=421203370

封面下载

通过api提取封面地址,
https://api.imjad.cn/cloudmusic/?type=detail&id=26189480 获得 "picUrl":"https://p1.music.126.net/5B2qp3_EOTFbQo42V5HZPA==/109951163483054295.jpg"
得出封面下载地址为https://p1.music.126.net/5B2qp3_EOTFbQo42V5HZPA==/109951163483054295.jpg

hplayer

[hplayer] [Music title="봄날, 벚꽃 그리고 너" author="Epitone Project" url="https://m7.music.126.net/20210519165905/bac6ba763cf1f6b75b5a26af10b01822/ymusic/e5b8/82dd/617f/60aeb476c6721079953b2ae96722ed1d.mp3" pic="https://p1.music.126.net/5B2qp3_EOTFbQo42V5HZPA==/109951163483054295.jpg" /] [/hplayer]

搜索工具

https://api.imjad.cn/cloudmusic.md

参考资料:

  1. http://www.360doc.com/content/18/0328/16/30583588_741003863.shtml
  2. https://blog.csdn.net/qq_42813491/article/details/88544975
  3. https://iobaka.com/blog/5.html
最后修改:2022 年 04 月 27 日
如果觉得我的文章对你有用,请随意赞赏