天天动听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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
{
    "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
 


测试一下音乐接口效果。

 

posted @   大象已无形  阅读(2404)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
阅读排行:
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
点击右上角即可分享
微信分享提示