php⾳乐接⼝源码,百度⾳乐API
{0}=需要搜索的歌曲或歌⼿
{1}=页码数(第⼀页就是0,第⼆页是1)
返回的是⼀个html⽹页,需要分析⽹页,得到歌曲ID,歌曲名,歌⼿,专辑等 属性
{0}=从上⾯的结果的中分析的歌曲的ID
返回结果 看下⾯
{
"errorCode":22000,
"data":
{
"xcode":"17173bd17415d2c22a7250ec29f7e010",
"songList":[{
"queryId":"247911654",
"songId":247911654,
"songName":"\u590f\u6d1b\u7279\u70e6\u607c",
"artistId":"5913",
html播放音乐代码"artistName":"\u91d1\u5fd7\u6587",
"albumId":247911669,
"albumName":"\u590f\u6d1b\u7279\u70e6\u607c",
"songPicSmall":"http:\/\/musicdata.baidu\/data2\/pic\/247910612\/247910612.jpg",
"songPicBig":"http:\/\/musicdata.baidu\/data2\/pic\/247910608\/247910608.jpg",
"songPicRadio":"http:\/\/musicdata.baidu\/data2\/pic\/247910603\/247910603.jpg",
"lrcLink":"\/data2\/lrc\/248241445\/248241445.lrc",
"version":"\u5f71\u89c6\u539f\u58f0",
"copyType":0,
"time":192,
"linkCode":22000,
"songLink":"http:\/\/yinyueshiting.baidu\/data2\/music\/247912201\/247911654108000128.mp3? xcode=17173bd17415d2c221ec55f2ef944ac8",
"showLink":"http:\/\/yinyueshiting.baidu\/data2\/music\/247912201\/247911654108000128.mp3? xcode=17173bd17415d2c221ec55f2ef944ac8",
"format":"mp3",
"rate":128,
"size":3078749,
"relateStatus":"0",
"resourceType":"0",
"source":"web"
}
]
}
}
⾥⾯有歌曲图⽚,歌曲地址,歌词地址
2.[图⽚] qrcode_for_gh_6b7d4c098efc_258.jpg
相关标签:php
本⽂原创发布php中⽂⽹,转载请注明出处,感谢您的尊重!

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。