logo资料库

酷狗/网易云/QQ音乐/百度音乐API接口.docx

第1页 / 共4页
第2页 / 共4页
第3页 / 共4页
第4页 / 共4页
资料共4页,全文预览结束
2、获取专辑详情
3、获取歌手信息
4、获取专辑列表
5、获取歌词以及图片
酷狗音乐 API 1、音乐搜索: http://songsearch.kugou.com/song_search_v2?callback=jQuery1910765531634111 6605_1497970603262&keyword=&page=1&pagesize=1&userid=-1&clientver=&platf orm=WebFilter&tag=em&filter=2&iscorrection=1&privilege_filter=0 callback=jQuery19107655316341116605_1497970603262 keyword ---歌手或是歌曲名 page ---获取的页数 pagesize ---一页获取多少条数据 ---不知道是什么 ---由 1 当中获取的歌曲 album_id 值 2、音乐播放链接: http://www.kugou.com/yy/index.php?r=play/getdata&hash=718567D263C17BB3945B596C DD887C27&album_id=8308163&_=1497972864535 hash ---由 1 当中获取的歌曲 hash 值 album_id http://www.kugou.com/yy/index.php?r=play/getdata&hash=E766C9F82C6F6B2B30AE2C98 606A5D0B&album_id=887061&_=1497972864535 3、MV 搜索 http://mvsearch.kugou.com/mv_search?&keyword=%E5%86%8D%E9%A3%9E%E8%A1 %8C&pagesize=30&page=1 keyword ---关键字 page(第几页),pagesize(一页的搜索结果数目) 4、下载 MV: http://trackermv.kugou.com/interface/index/cmd=104&hash=CEBE181241ACC4195A604E463CE FD77B&ext=mp4 hash:为 MvHash。上面的 MvHash 全大写 QQ 音乐 API 1、搜索歌曲: https://c.y.qq.com/soso/fcgi-bin/client_search_cp?aggr=1&cr=1&flag_qc=0&p=1&n=20&w =%E5%86%8D%E9%A3%9E%E8%A1%8C w ---关键字 可选参数:p(相当于上面的 page),(相当于上面的 pagesize) 2、播放 http://ws.stream.qqmusic.qq.com/C100'+songmid+'.m4a?fromtag=0&guid=126548448 (这里的 songmid 替换为上面的 songmid) 必选参数: fromtag:0 guid:一个随机的 9 位数
(注:此处的 C100 是必需要加上去的) 3、最新音乐 https://c.y.qq.com/v8/fcg-bin/fcg_v8_toplist_cp.fcg?g_tk=5381&uin=0&format=json&inCharset= utf-8&outCharset=utf-8¬ice=0&platform=h5&needNewCode=1&tpl=3&page=detail&type=to p&topid=27&_=1519963122923 4、推荐音乐 https://c.y.qq.com/v8/fcg-bin/fcg_v8_toplist_cp.fcg?g_tk=5381&uin=0&format=json&inCharset= utf-8&outCharset=utf-8¬ice=0&platform=h5&needNewCode=1&tpl=3&page=detail&type=to p&topid=36&_=1520777874472 网易云音乐 API 1、搜索音乐 http://music.163.com/api/search/get/web?csrf_token=hlpretag=&hlposttag=&s= 周 杰 伦 &type=1&offset=0&total=true&limit=30 s type ---搜索的歌手或歌曲 --- type=1 单曲 type=10 专辑 type=100 歌手 type=1000 歌单 type=1002 用户 type=1004 MV type=1006 歌词 type=1009 主播电台 ---返回数据条数 limit 2、搜索歌词 http://music.163.com/api/song/lyric?os=pc&id=536570450&lv=-1&kv=-1&tv=-1 id ---歌曲的 id 3、播放 https://music.163.com/outchain/player?type=2&id=536570450&auto=1&height=66&bg=e8e8e8 id ---歌曲的 id
百度音乐 API 1、关键字搜索 http://tingapi.ting.baidu.com/v1/restserver/ting?from=android&version=5.6.5.0&method=b aidu.ting.search.merge&format=json&query=%E5%91%A8%E6%9D%B0%E4%BC%A6&page_ no=1&page_size=50&type=-1&data_source=0&use_cluster=1 5.6.5.0 baidu.ting.search.merge json 七里香 version method format query page_no 1 page_size 50 -1 type data_source 0 use_cluster 1 http://tingapi.ting.baidu.com/v1/restserver/ting?from=android&version=5.6.5.0&method=b aidu.ting.search.merge&format=json&query= 球 白 &page_no=1&page_size=50&type=-1&data_source=0&use_cluster=1 告 气 2、获取专辑详情 http://tingapi.ting.baidu.com/v1/restserver/ting?from=android&version=5.6.5.0&method=baidu. ting.album.getAlbumInfo&format=json&album_id=67909 from android version method format album_id 67909 baidu.ting.album.getAlbumInfo json 5.6.5.0 3、获取歌手信息 http://tingapi.ting.baidu.com/v1/restserver/ting?from=android&version=5.6.5.0&method=baidu. ting.artist.getinfo&format=json&tinguid=7994&artistid=7994 4、获取专辑列表 http://tingapi.ting.baidu.com/v1/restserver/ting?from=android&version=5.6.5.0&method=baidu. ting.artist.getAlbumList&format=json&order=1&tinguid=7994&offset=0&limits=30 5、获取歌词以及图片 http://tingapi.ting.baidu.com/v1/restserver/ting?from=android&version=5.6.5.0&method=baidu. ting.search.lrcpic&format=json&query=Apollo%27s%2BTriumph%2B%28Paul%2BDinletir%2BRem
ix%29$$Audio%2BMachine&ts=1444316027469&e=6Wwvzqnijq08Nrv0qI%2BN3Thp9GuKdV82Z xAS3UrvifMc%2FoVWLyZ8dSolFUF5r4W3SB2tm4z5TWT95sihhOG7qeqvjhThJWnh6h745kRGSTI% 3D&type=2 6、新歌速递 http://tingapi.ting.baidu.com/v1/restserver/ting?from=qianqian&version=2.1.0&method=baidu.t ing.plaza.getNewSongs&format=json&limit=50 7、下载 http://tingapi.ting.baidu.com/v1/restserver/ting?method=baidu.ting.song.play&songid=877578 http://play.taihe.com/data/music/songlink?songIds=251817888 http://tingapi.ting.baidu.com/v1/restserver/ting?from=qianqian&version=2.1.0&method=baidu.t ing.song.getInfos&format=json%20&ts=1408284347323&e=JoN56kTXnnbEpd9MVczkYJCSx/E1mk Lx%2bPMIkTcOEu4=%20&nw=2&ucf=1&res=1&songid=251817888 8、(暂时)播放接口 http://tingapi.ting.baidu.com/v1/restserver/ting?method=baidu.ting.song.play&songid=2663225 98 例:method=baidu.ting.song.play&songid=877578 例:method=baidu.ting.song.playAAC&songid=877578 9、推荐歌曲 http://tingapi.ting.baidu.com/v1/restserver/ting?method=baidu.ting.song.getRecommandSongLi st&song_id=877578&num=5
分享到:
收藏