酷我音乐API

今天把酷我音乐API分享给大家:

歌曲搜索API:http://search.kuwo.cn/r.s?all={0}&ft=music& itemset=web_2013&client=kt&pn={1}&rn={2}&rformat=json&encoding=utf8

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

{1}=查询的页码数

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

例子:http://search.kuwo.cn/r.s?all=周杰伦&ft=music& itemset=web_2013&client=kt&pn=0&rn=5&rformat=json&encoding=utf8

  1 {
  2     'RN': '5',
  3     'PN': '0',
  4     'HIT': '3538',
  5     'TOTAL': '3538',
  6     'SHOW': '5',
  7     'NEW': '0',
  8     'MSHOW': '0',
  9     'HITMODE': 'song',
 10     'ARTISTPIC': '',
 11     'HIT_BUT_OFFLINE': '0',
 12     'abslist': [
 13         {
 14             'MUSICRID': 'MUSIC_324244',
 15             'SONGNAME': '青花瓷',
 16             'ARTIST': '周杰伦',
 17             'ARTISTID': '336',
 18             'ALBUM': '我很忙',
 19             'ALBUMID': '12449',
 20             'FORMATS': 'WMA96|WMA128|MP3128|MP3192|MP3H|AAC48|AL|MV500|MV700|EXMV500|EXMV700|MP4|MP4L|EXMP4|EXMP4L',
 21             'SCORE100': '86',
 22             'NSIG1': '1776556291',
 23             'NSIG2': '2210916518',
 24             'MP3NSIG1': '724957921',
 25             'MP3NSIG2': '2129722879',
 26             'MP3RID': 'MP3_324244',
 27             'MKVNSIG1': '720436733',
 28             'MKVNSIG2': '81430645',
 29             'MKVRID': 'MV_6359',
 30             'HASECHO': '1',
 31             'NEW': '0',
 32             'MVPIC': '140/45/77/2616358704.jpg',
 33             'UPLOADER': '',
 34             'UPTIME': '',
 35             'IS_POINT': '0',
 36             'MUTI_VER': '146',
 37             'ONLINE': '1',
 38             'IS_EXT': '0'
 39         },
 40         {
 41             'MUSICRID': 'MUSIC_6176029',
 42             'SONGNAME': '算什么男人',
 43             'ARTIST': '周杰伦',
 44             'ARTISTID': '336',
 45             'ALBUM': '哎呦,
 46             不错哦',
 47             'ALBUMID': '439471',
 48             'FORMATS': 'WMA96|WMA128|MP3128|MP3192|MP3H|AAC48|AL|MV500|MV700|EXMV500|EXMV700|MP4|MP4L|EXMP4|EXMP4L',
 49             'SCORE100': '85',
 50             'NSIG1': '908013556',
 51             'NSIG2': '1986154045',
 52             'MP3NSIG1': '3455506400',
 53             'MP3NSIG2': '1941249395',
 54             'MP3RID': 'MP3_6176029',
 55             'MKVNSIG1': '2717454401',
 56             'MKVNSIG2': '2828692473',
 57             'MKVRID': 'MV_343625',
 58             'HASECHO': '1',
 59             'NEW': '0',
 60             'MVPIC': '140/40/31/2326060457.jpg',
 61             'UPLOADER': '',
 62             'UPTIME': '',
 63             'IS_POINT': '1',
 64             'MUTI_VER': '0',
 65             'ONLINE': '1',
 66             'IS_EXT': '0'
 67         },
 68         {
 69             'MUSICRID': 'MUSIC_79479',
 70             'SONGNAME': '东风破',
 71             'ARTIST': '周杰伦',
 72             'ARTISTID': '336',
 73             'ALBUM': '叶惠美',
 74             'ALBUMID': '1293',
 75             'FORMATS': 'WMA96|WMA128|MP3128|MP3192|MP3H|AAC48|AL|MV500|MV700|EXMV500|EXMV700|MP4|MP4L|EXMP4|EXMP4L',
 76             'SCORE100': '81',
 77             'NSIG1': '3651591386',
 78             'NSIG2': '2238585711',
 79             'MP3NSIG1': '3873527664',
 80             'MP3NSIG2': '2314212502',
 81             'MP3RID': 'MP3_79479',
 82             'MKVNSIG1': '1092846520',
 83             'MKVNSIG2': '218140751',
 84             'MKVRID': 'MV_221840',
 85             'HASECHO': '1',
 86             'NEW': '0',
 87             'MVPIC': '140/76/65/3389188905.jpg',
 88             'UPLOADER': '',
 89             'UPTIME': '',
 90             'IS_POINT': '0',
 91             'MUTI_VER': '169',
 92             'ONLINE': '1',
 93             'IS_EXT': '0'
 94         },
 95         {
 96             'MUSICRID': 'MUSIC_94237',
 97             'SONGNAME': '七里香',
 98             'ARTIST': '周杰伦',
 99             'ARTISTID': '336',
100             'ALBUM': '七里香',
101             'ALBUMID': '4533',
102             'FORMATS': 'WMA96|WMA128|MP3128|MP3192|MP3H|AAC48|AL|MV500|MV700|EXMV500|EXMV700|MP4|MP4L|EXMP4|EXMP4L',
103             'SCORE100': '80',
104             'NSIG1': '2053335453',
105             'NSIG2': '4101276292',
106             'MP3NSIG1': '3913207931',
107             'MP3NSIG2': '1212072991',
108             'MP3RID': 'MP3_94237',
109             'MKVNSIG1': '3244538870',
110             'MKVNSIG2': '4119271117',
111             'MKVRID': 'MV_223429',
112             'HASECHO': '1',
113             'NEW': '0',
114             'MVPIC': '140/88/64/3638464554.jpg',
115             'UPLOADER': '',
116             'UPTIME': '',
117             'IS_POINT': '0',
118             'MUTI_VER': '0',
119             'ONLINE': '1',
120             'IS_EXT': '0'
121         },
122         {
123             'MUSICRID': 'MUSIC_243826',
124             'SONGNAME': '龙卷风',
125             'ARTIST': '周杰伦',
126             'ARTISTID': '336',
127             'ALBUM': 'Jay同名专辑',
128             'ALBUMID': '1286',
129             'FORMATS': 'WMA96|WMA128|MP3128|MP3192|MP3H|AAC48|AL|MV500|MV700|EXMV500|EXMV700|MP4|MP4L|EXMP4|EXMP4L',
130             'SCORE100': '79',
131             'NSIG1': '3640918255',
132             'NSIG2': '1730930118',
133             'MP3NSIG1': '414215692',
134             'MP3NSIG2': '3291603321',
135             'MP3RID': 'MP3_243826',
136             'MKVNSIG1': '1167609102',
137             'MKVNSIG2': '1023337506',
138             'MKVRID': 'MV_144597',
139             'HASECHO': '1',
140             'NEW': '0',
141             'MVPIC': '140/27/76/3036706216.jpg',
142             'UPLOADER': '',
143             'UPTIME': '',
144             'IS_POINT': '0',
145             'MUTI_VER': '109',
146             'ONLINE': '1',
147             'IS_EXT': '0'
148         }
149     ]
150 }

上面返回的json可以得到歌曲名,歌手,歌曲ID,专辑,歌曲图片

 

歌曲播放API:http://antiserver.kuwo.cn/anti.s?type=convert_url&rid={0}&format=aac|mp3&response=url

{0}=上面获取到的歌曲ID

例子:http://antiserver.kuwo.cn/anti.s?type=convert_url&rid=MUSIC_324244&format=aac|mp3&response=url

 

歌词——酷我音乐的歌词比较麻烦,歌词部分给加密了,目前还没有解密出来,希望有大神解密出来可以告诉我

API:http://player.kuwo.cn/webmusic/st/getNewMuiseByRid?rid={0}

{0}=上面获取到的歌曲ID

例子:http://player.kuwo.cn/webmusic/st/getNewMuiseByRid?rid=MUSIC_324244
返回

 1 <Song>
 2     <music_id>324244</music_id>
 3     <mv_rid>MV_0</mv_rid>
 4     <name>青花瓷</name>
 5     <song_url>http://yinyue.kuwo.cnhttp://yinyue.kuwo.cn/yy/gequ-zhoujielun_qinghuaci/324244.htm</song_url>
 6     <artist>周杰伦</artist>
 7     <artid>336</artid>
 8     <singer>周杰伦</singer>
 9     <special>我很忙</special>
10     <ridmd591>FDF7A656B2D08C28749975918E6883F0</ridmd591>
11     <mp3size>9.06 MB</mp3size>
12     <artist_url>http://yinyue.kuwo.cnhttp://yinyue.kuwo.cn/yy/geshou-zhoujielun/%E5%91%A8%E6%9D%B0%E4%BC%A6.htm</artist_url>
13     <auther_url>http://www.kuwo.cn/mingxing/%E5%91%A8%E6%9D%B0%E4%BC%A6/</auther_url>
14     <playid>play?play=MQ==&amp;num=MQ==&amp;name0=x+C7qLTJ&amp;artist0=1ty93MLX&amp;ssig10=MTc3NjU1NjI5MQ==&amp;ssig20=MjIxMDkxNjUxOA==&amp;musicrid0=TVVTSUNfMzI0MjQ0&amp;mvrid0=TVZfMA==&amp;mp3size0=OS4wNiBNQg==&amp;mrid0=TVAzXzMyNDI0NA==&amp;msig10=NzI0OTU3OTIx&amp;msig20=MjEyOTcyMjg3OQ==&amp;mkvnsig10=NzIwNDM2NzMz&amp;mkvnsig20=ODE0MzA2NDU=&amp;mkvrid0=TVZfNjM1OQ==&amp;mvsig10=MA==&amp;mvsig20=MA==&amp;size0=My42NSBNQg==&amp;album0=ztK63MOm&amp;kalaok0=MA==&amp;hasecho0=MQ==&amp;filetype0=c29uZw==&amp;score0=NA==&amp;source0=aHR0cDovL3dtYTEuNmZsb29yLmNvbS8vcXExMzBuLzA2OTcvMzY1Nzk5NTA0LndtYQ==&amp;mvprovider0=&amp;</playid>
15     <artist_pic>http://img4.kuwo.cn/star/starheads/120/4/80a74b254395e7d786fdc3f68703377_0.jpg</artist_pic>
16     <artist_pic240>http://img4.kuwo.cn/star/starheads/240/41/35/524369432.jpg</artist_pic240>
17     <path>m2/ape2wma_20090522/1/17/1932419956.wma</path>
18     <mp3path>n2/128/20/88/154812657.mp3</mp3path>
19     <aacpath>a3/79/0/1486163889.aac</aacpath>
20     <wmadl>wmadl.cdn.kuwo.cn</wmadl>
21     <mp3dl>ra01.sycdn.kuwo.cn</mp3dl>
22     <aacdl>ra03.sycdn.kuwo.cn</aacdl>
23     <lyric>DBYAHlReXEpRUEAeCgxVEgAORRgLG0MXCRgaCwoRAB5UAwEaBAkEBhwaXxcAHVReSAsMAVEkOj0wJjpfW1tcTVE=</lyric>
24     <lyric_zz>DBYAHlReXEpRUEAeCgxVEgAORRgLG0MXCRgaCwoRAB5UAwEaBAkEBhwaXxcAHVReSAsMAVEkOj0wJjpfW1tcTVFDABsMFkRU</lyric_zz>
25 </Song>

lrcKey=上面xml的lyric属性

lrcKey=DBYAHlReXEpRUEAeCgxVEgAORRgLG0MXCRgaCwoRAB5UAwEaBAkEBhwaXxcAHVReSAsMAVEkOj0wJjpfW1tcTVE=

API:http://newlyric.kuwo.cn/newlyric.lrc?{0}

{0}=取到的lrcKey

例子:http://newlyric.kuwo.cn/newlyric.lrc?DBYAHlReXEpRUEAeCgxVEgAORRgLG0MXCRgaCwoRAB5UAwEaBAkEBhwaXxcAHVReSAsMAVEkOj0wJjpfW1tcTVE=

目前还存在一个问题就是获取的歌词是加密的,如果你能破解歌词加密,欢迎联系我。

 

利用音乐接口我做了个微信点歌的微信公众号微点歌:vdiange

大家可以添加微点歌vdiange测试一下:

posted @ 2015-12-19 22:20  大象已无形  阅读(10468)  评论(6编辑  收藏  举报