QQ音乐API

QQ音乐API

本次分析的是QQ音乐API

搜索歌曲API:http://s.music.qq.com/fcgi-bin/music_search_new_platform?t=0&n={2}&aggr=1&cr=1&loginUin={3}&format=json&inCharset=GB2312&outCharset=utf-8&notice=0&platform=jqminiframe.json&needNewCode=0&p={1}&catZhida=0&remoteplace=sizer.newclient.next_song&w={0}

{0}=需要搜索的歌曲或歌手

{1}=查询的页码数

{2}=当前页的返回数量

{3}=默认为0,是登录的QQ号ID

例子:http://s.music.qq.com/fcgi-bin/music_search_new_platform?t=0&n=5&aggr=1&cr=1&loginUin=0&format=json&inCharset=GB2312&outCharset=utf-8&notice=0&platform=jqminiframe.json&needNewCode=0&p=1&catZhida=0&remoteplace=sizer.newclient.next_song&w=周杰伦
返回

分析json格式,歌曲名称,歌手,专辑,还有其中的f的属性

id=001Js78a40BZU6

img=001uqejs3d6EID

lrc=101369814

这些ID在下面的API中会有用的

 

获取播放key:http://base.music.qq.com/fcgi-bin/fcg_musicexpress.fcg?json=3&loginUin={0}&format=jsonp&inCharset=GB2312&outCharset=GB2312&notice=0&platform=yqq&needNewCode=0

{0}=默认为0,是登录的QQ号ID

返回

key=6BFDD0DFE8A88C65E5D7942967AE84A1F7BC2A96A9120C15A5032483EA5D0659

播放歌曲API:http://cc.stream.qqmusic.qq.com/C200{0}.m4a?vkey={1}&fromtag=0

{0}=上面取到的ID

{1}=上面取到的KEY

例子:http://cc.stream.qqmusic.qq.com/C200001Js78a40BZU6.m4a?vkey=6BFDD0DFE8A88C65E5D7942967AE84A1F7BC2A96A9120C15A5032483EA5D0659&fromtag=0

歌曲图片API:http://imgcache.qq.com/music/photo/mid_album_90/{1}/{2}/{0}.jpg

{0}=上面取到的Img

{1]=上面取到的Img的倒数第二个字符

{2}=上面取到的Img的最后一个字符

例子:http://imgcache.qq.com/music/photo/mid_album_90/I/D/001uqejs3d6EID.jpg

歌词API:http://music.qq.com/miniportal/static/lyric/{1}/{0}.xml

{0}=上面取到的Lrc

{1}=上面取到的Lrc%100

例子:http://music.qq.com/miniportal/static/lyric/14/101369814.xml

这个LRC有时会失效的

以后在补上QQ音乐的歌词搜索API

 

觉得好的话记得打赏赞助小灰灰哦,小灰灰灰更有动力的,谢谢

小灰灰

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: