酷狗音乐API接口

/ 0评 / 1

本版本api是手机版本8352,
1.搜索
搜索歌曲:
http://mobilecdn.kugou.com/api/v3/search/song?format=json&keyword={关键字}&page={页数}&pagesize={单页数量}
电脑版:
http://songsearch.kugou.com/song_search_v2?keyword=关键字&page=1&pagesize=80&filter=0&bitrate=0&isfuzzy=0&tag=em&inputtype=2&platform=PcFilter&userid=785408929&clientver=8063&iscorrection=3

歌单搜索:
http://mobilecdn.kugou.com/api/v3/search/special?page={页数}&pagesize={单页数量}&keyword={关键字}

专辑搜索:
http://mobilecdn.kugou.com/api/v3/search/album?keyword={关键字}&page={页数}&pagesize={页数}

歌词搜索:
http://lyrics.kugou.com/search?ver=1&man=yes&client=pc&keyword={歌曲名}&duration={歌曲总时长(毫秒)}&hash=歌曲Hash值(可以不用)

2.各种排行榜
新碟上架:
http://service.mobile.kugou.com/v1/yueku/recommend?plat=0&type=8&operator=2&version=8352

获取歌曲所有排行:
http://mobilecdn.kugou.com/api/v3/rank/list?apiver=4&withsong=1&showtype=2&plat=0&parentid=0&version=8352&with_res_tag=1
可获取排行榜ranktype和rankid 然后从下面获取排行榜所有歌曲
http://mobilecdn.kugou.com/api/v3/rank/song?ranktype={type}&rankid={id}&plat=0&page={页数}&pagesize={单页数量}&version=8352&with_res_tag=1

歌单页面:
http://mobilecdn.kugou.com/api/v3/category/special?withsong=1&sort=3&plat=0&ugc=1&page=1&categoryid=0&pagesize=20

3.歌手专辑歌单
获取专辑所有歌曲信息:
http://mobilecdn.kugou.com/api/v3/album/song?albumid={专辑id}&plat=0&page=1&pagesize=-1&version=8352&with_res_tag=1

获取歌单所有歌曲信息:
http://mobilecdn.kugou.com/api/v3/special/song?plat=0&specialid={歌单id}&page=1&pagesize=-1&version=8352&with_res_tag=1

获取歌手所有歌曲:
http://mobilecdn.kugou.com/api/v3/singer/song?plat=0&page=1&sorttype=2&pagesize=20&version=8352&singerid={歌手id}&with_res_tag=1

4.下载和获取播放地址
下载歌词:(参数从搜索歌词中获取)
http://lyrics.kugou.com/download?ver=1&client=pc&id={id}&accesskey={accesskey}&fmt=lrc&charset=utf8

获取歌曲所有格式hash
http://m.kugou.com/app/i/getSongInfo.php?hash={hash}&cmd=playInfo

下载歌曲:(hash从歌曲信息中获取,下载无损同理)
http://trackercdn.kugou.com/i/?cmd=4&hash={hash}&key={MD5({hash}kgcloud)}&pid=1&forceDown=0&vip=1

Leave a Reply

Your email address will not be published. Required fields are marked *