天天动听API
本次分析的是天天动听API,天天动听有一点比较好,就是搜索返回直接有歌曲播放的地址了,并且有无损的音频
搜索歌曲API:http://so.ard.iyyin.com/s/song_with_out?q={0}&page={1}&size={2}
{0}=需要搜索的歌曲或歌手
{1}=查询的页码数
{2}=当前页的返回数量
例子:http://so.ard.iyyin.com/s/song_with_out?q=周杰伦&page=1&size=3
{ "code": 1, "rows": 9374, "pages": 3125, "data": [ { "song_id": 29681418, "singer_id": 11852, "pick_count": 14672, "vip": 0, "album_id": 0, "artist_flag": 1, "song_name": "手写的从前(Live)", "singer_name": "周杰伦", "album_name": "2015江苏卫视新年演唱会", "audition_list": [ { "duration": "05:00", "format": "m4a", "bitrate": 32, "type_description": "压缩品质", "url": "http://b.ali.hotchanson.com/6944b50c346eebcd/1423731828/m4a_32_296/90/16/90385a614dca5e0c8cb64b7da1d60b16.m4a?s=t", "size": "1.18M", "type": 1 }, { "duration": "05:00", "format": "mp3", "bitrate": 128, "type_description": "标准品质", "url": "http://oen.cye.yymommy.com/6944b50c346eebcd/1423731828/mp3_128_296/90/16/90385a614dca5e0c8cb64b7da1d60b16.mp3?s=t", "size": "4.59M", "type": 2 } ], "url_list": [ { "duration": "05:00", "format": "m4a", "bitrate": 32, "type_description": "压缩品质", "url": "http://b.ali.hotchanson.com/6944b50c346eebcd/1423731828/m4a_32_296/90/16/90385a614dca5e0c8cb64b7da1d60b16.m4a?s=t", "size": "1.18M", "type": 1 }, { "duration": "05:00", "format": "mp3", "bitrate": 128, "type_description": "标准品质", "url": "http://oen.cye.yymommy.com/6944b50c346eebcd/1423731828/mp3_128_296/90/16/90385a614dca5e0c8cb64b7da1d60b16.mp3?s=t", "size": "4.59M", "type": 2 } ], "mv_list": [ { "id": 598785, "format": "mp4", "bitrate": 1000, "type_description": "高清画质", "size": "44.14M", "url": "http://mv.hotmusique.com/mv_2_5/29/94/292c64b87a1209620c5dc9abdd313e94.mp4?k=58292ebf4bf47645&t=1423689685", "duration": "05:10", "pic_url": "http://img.mv.ttpod.com/mv_pic/mv_pic_5/160_90/2348/85540/598785_20.jpg" } ], "ae": { "_id": "b9ccad4db726c3653ac92318b1645bff", "device": "iPhone", "audio_effect": { "bass": 200, "balance": 0, "virtualizer": 100, "treble": 300, "reverb": 0, "eq": [ 375, 625, 1125, 375, -500, 250, 500, -250, 875, 500 ], "islimit": true } } }, { "song_id": 29681415, "flag": 1, "album_id": 0, "song_name": "双截棍+惊叹号(Live)", "singer_name": "周杰伦", "album_name": "2015江苏卫视新年演唱会", "artist_flag": "1", "out_list": [ { "logo": "http://pic.ttpod.cn/upload/new/forbidden.png", "name": "版权原因 暂无资源" } ] }, { "song_id": 29681453, "singer_id": 1399541, "pick_count": 6141, "vip": 0, "album_id": 0, "artist_flag": 0, "song_name": "简单爱(Live)", "singer_name": "周杰伦 & 陈奕迅", "album_name": "2015江苏卫视新年演唱会", "audition_list": [ { "duration": "04:26", "format": "m4a", "bitrate": 32, "type_description": "压缩品质", "url": "http://b.ali.hotchanson.com/2cba3b8a658a2fdd/1423731828/m4a_32_296/db/00/dba324e94aa9d6fae42203d3affc7200.m4a?s=t", "size": "1.05M", "type": 1 }, { "duration": "04:26", "format": "mp3", "bitrate": 128, "type_description": "标准品质", "url": "http://b.ali.hotchanson.com/2cba3b8a658a2fdd/1423731828/mp3_128_296/db/00/dba324e94aa9d6fae42203d3affc7200.mp3?s=t", "size": "4.07M", "type": 2 } ], "url_list": [ { "duration": "04:26", "format": "m4a", "bitrate": 32, "type_description": "压缩品质", "url": "http://b.ali.hotchanson.com/2cba3b8a658a2fdd/1423731828/m4a_32_296/db/00/dba324e94aa9d6fae42203d3affc7200.m4a?s=t", "size": "1.05M", "type": 1 }, { "duration": "04:26", "format": "mp3", "bitrate": 128, "type_description": "标准品质", "url": "http://b.ali.hotchanson.com/2cba3b8a658a2fdd/1423731828/mp3_128_296/db/00/dba324e94aa9d6fae42203d3affc7200.mp3?s=t", "size": "4.07M", "type": 2 } ], "mv_list": [ { "id": 598796, "format": "mp4", "bitrate": 1000, "type_description": "高清画质", "size": "42.92M", "url": "http://mv.hotmusique.com/mv_2_5/80/50/80390082cf3a145b5b8afb3c493f7250.mp4?k=16626565575b2983&t=1423689693", "duration": "05:01", "pic_url": "http://img.mv.ttpod.com/mv_pic/mv_pic_5/160_90/2348/85542/598796_20.jpg" } ], "ae": { "_id": "8440c3181712fac701a4588cd308dff5", "device": "iPhone", "audio_effect": { "bass": 590, "balance": -16, "virtualizer": 800, "treble": 632, "reverb": 9, "eq": [ 506, 0, 500, 600, 0, 200, 100, 300, 600, 714 ], "islimit": false } } } ] }
上面返回的json可以得到歌曲名,歌手,歌曲ID,专辑,歌曲URL
歌词API:http://lp.music.ttpod.com/lrc/down?lrcid=&artist={2}&title={1}&song_id={0}
{0}=歌曲ID
{1}=歌曲名
{2}=歌手名
例子:http://lp.music.ttpod.com/lrc/down?lrcid=&artist=周杰伦&title=手写的从前(Live)&song_id=29681418
歌曲图片API:http://lp.music.ttpod.com/pic/down?artist={0}
{0}=歌手名
例子:http://lp.music.ttpod.com/pic/down?artist=周杰伦
天天动听的图片有些问题,它只是随机返回歌手的图片,并不是对应歌曲或者专辑的图片
大家可以利用这个接口做一个可以微信点歌的类似微点歌:vdiange
这样的微信公众号
大家可以添加微点歌:vdiange
大家可以添加微点歌:vdiange
![](https://images2015.cnblogs.com/blog/682199/201512/682199-20151221180151343-392967214.jpg)
测试一下音乐接口效果。
本文来自博客园,作者:大象已无形,转载请注明原文链接:https://www.cnblogs.com/mmm/p/ttpod_music_api.html