接口地址: music.woshidie.com/index/music/index?id=歌单id&type=tencent

返回格式: json

请求方式: GET

请求示例: music.woshidie.com/index/music/index?id=4518637991&type=tencent

请求参数说明:

名称 必填 类型 说明
id id id 歌单ID
type type type 歌单来源

返回参数说明:

名称 类型 说明
name json 歌名
artist json 歌手
url json 音乐文件
cover json 音乐图片
lrc json 音乐歌词

返回示例:

						[{"name":"secret base ~君がくれたもの~","artist":"早见沙织 (はやみ さおり)","url":"http:\/\/api.lanhuiw.cn\/index\/music\/qqurl?id=002tfbql3DrAe8","cover":"http:\/\/api.lanhuiw.cn\/index\/music\/qqcover?id=001uaniI0VY17D","lrc":"http:\/\/api.lanhuiw.cn\/index\/music\/qqlrc?id=002tfbql3DrAe8"}]
						

代码示例:

<div id="player" class="aplayer"></div> <link rel="stylesheet" href="https://cdn.bootcss.com/aplayer/1.10.1/APlayer.min.css" /> <script src="https://cdn.bootcss.com/jquery/3.5.0/jquery.min.js"></script> <script src="https://cdn.bootcss.com/aplayer/1.10.1/APlayer.min.js"></script> <script> $(function(){ $.ajax({ url:"http://music.woshidie.com/index/music/index?id=4518637991&type=tencent", //把这里的链接替换你的歌单解析api success:function(e){ var a=new APlayer({ element:document.getElementById("aplayer"), autoplay:true, fixed:true, loop:"all", order:"random", listFolded:true, showlrc:3, theme:"#FFC0CB", listmaxheight:"200px", music:eval(e)}); window.aplayers||(window.aplayers=[]), window.aplayers.push(a)}})}) </script>