网易云音乐API分析

网易云音乐API分析

Song

1
"http://music.163.com/api/song/detail/?id=" + url_id + ("&ids=%5B" + {url_id} + "%5D")
1
api_url = "http://music.163.com/api/song/detail/?id={url_id}{}".format("&ids=%5B{url_id}%5D")
  • ids=%5B{url_id}%5D

==意义不明,日后再议。==

Playlist

1
"http://music.163.com/api/playlist/detail/?id=" + url_id

地址最简单的API:

1
api_url = "http://music.163.com/api/playlist/detail/?id={}".format(url_id)

添加版:

1
"http://music.163.com/api/playlist/detail/?id={url_id}{}" format("&updateTime=-1")

添加了:

  • &updateTime=-1

==意义不明,部分网址有些许变化,其他信息位置有变化,日后再议。==

Album

1
2
"https://music.163.com/api/album/" + url_id + ("?ext=true&id=" + url_id + "&offset=0&total=true&limit=10")
'''参数可换'''

地址最简单的API:

1
api_url = "https://music.163.com/api/album/{}".format(url_id)

添加版:

1
"https://music.163.com/api/album/{url_id}?{}".format("ext=true&id={url_id}&offset=0&total=true&limit=10”)

添加了:

  • ext=true
  • id={url_id}
  • offset=0
  • total=true
  • limit={number}

之间用&连接

==意义不明,但得到的JSON数据有不同之处,日后再议。==

Mv

1
"https://music.163.com/api/mv/detail?id=" + url_id + ("&type=" + movie_format)

最简单的API:

1
api_url = "https://music.163.com/api/mv/detail?id={}".format(url_id)

添加版:

1
"https://music.163.com/api/mv/detail?id={url_id}{}".format("&type=mp4")

添加了:

  • &type=mp4

==意义不明,但得到的JSON数据有不同之处,日后再议。==

Artist

1
"http://music.163.com/api/artist/albums/" + url_id + ("?id=" + url_id + "&offset=0&total=true&limit=5")

最简单的API:

1
api_url = "http://music.163.com/api/artist/albums/{}".format(url_id)

添加版:

1
"http://music.163.com/api/artist/albums/{url_id}{}".format("?id={url_id}&offset=0&total=true&limit=5")

添加了:

  • id={url_id}
  • offset=0
  • total=true
  • limit={number}

==意义不明,但得到的JSON数据有不同之处,日后再议。==

Lyric

1
"http://music.163.com/api/song/lyric?id=" + url_id + "&lv=-1&kv=-1&tv=-1"
1
api_url = "http://music.163.com/api/song/lyric?id={}&lv=-1&kv=-1&tv=-1".format(url_id)
  • lvlyric,带时间轴的歌词
  • kvkalaok lyric,==推测为==卡拉OK同步变色歌词字幕
  • tvtranslate lyric,翻译歌词

Info Structure

Song

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
{
"songs": [
{
"name": "云雀 (《君主·埃尔梅罗二世事件簿 》ED) TV size(Cover:ASCA)",
"id": 1378916759,
"position": 0,
"alias": [],
"status": 0,
"fee": 0,
"copyrightId": 0,
"disc": "01",
"no": 1,
"artists": [
{
"name": "ina喵",
"id": 32563338,
"picId": 0,
"img1v1Id": 0,
"briefDesc": "",
"picUrl": "http://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
"img1v1Url": "http://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
"albumSize": 0,
"alias": [],
"trans": "",
"musicSize": 0,
"topicPerson": 0
}
],
"album": {
"name": "雲雀",
"id": 80473646,
"type": "EP/Single",
"size": 1,
"picId": 109951164224406444,
"blurPicUrl": "http://p1.music.126.net/G9i17nieD944RTqqFueRAw==/109951164224406444.jpg",
"companyId": 0,
"pic": 109951164224406444,
"picUrl": "http://p1.music.126.net/G9i17nieD944RTqqFueRAw==/109951164224406444.jpg",
"publishTime": 1563524637865,
"description": "",
"tags": "",
"company": null,
"briefDesc": "",
"artist": {
"name": "",
"id": 0,
"picId": 0,
"img1v1Id": 0,
"briefDesc": "",
"picUrl": "http://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
"img1v1Url": "http://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
"albumSize": 0,
"alias": [],
"trans": "",
"musicSize": 0,
"topicPerson": 0
},
"songs": [],
"alias": [],
"status": 0,
"copyrightId": 0,
"commentThreadId": "R_AL_3_80473646",
"artists": [
{
"name": "ina喵",
"id": 32563338,
"picId": 0,
"img1v1Id": 0,
"briefDesc": "",
"picUrl": "http://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
"img1v1Url": "http://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
"albumSize": 0,
"alias": [],
"trans": "",
"musicSize": 0,
"topicPerson": 0
}
],
"subType": "伴奏版",
"transName": null,
"mark": 0,
"picId_str": "109951164224406444"
},
"starred": false,
"popularity": 100.0,
"score": 100,
"starredNum": 0,
"duration": 94563,
"playedNum": 0,
"dayPlays": 0,
"hearTime": 0,
"ringtone": "",
"crbt": null,
"audition": null,
"copyFrom": "",
"commentThreadId": "R_SO_4_1378916759",
"rtUrl": null,
"ftype": 0,
"rtUrls": [],
"copyright": 0,
"transName": null,
"sign": null,
"mark": 0,
"hMusic": {
"name": null,
"id": 3860465174,
"size": 3784664,
"extension": "mp3",
"sr": 44100,
"dfsId": 0,
"bitrate": 320000,
"playTime": 94563,
"volumeDelta": -28990.0
},
"mMusic": {
"name": null,
"id": 3860465175,
"size": 2270816,
"extension": "mp3",
"sr": 44100,
"dfsId": 0,
"bitrate": 192000,
"playTime": 94563,
"volumeDelta": -26370.0
},
"lMusic": {
"name": null,
"id": 3860465176,
"size": 1513892,
"extension": "mp3",
"sr": 44100,
"dfsId": 0,
"bitrate": 128000,
"playTime": 94563,
"volumeDelta": -24635.0
},
"mvid": 0,
"bMusic": {
"name": null,
"id": 3860465176,
"size": 1513892,
"extension": "mp3",
"sr": 44100,
"dfsId": 0,
"bitrate": 128000,
"playTime": 94563,
"volumeDelta": -24635.0
},
"rtype": 0,
"rurl": null,
"mp3Url": null
}
],
"equalizers": {},
"code": 200
}

一级目录:

songs[{}]

equalizers{}

code

songs下的二级目录:

name歌曲名

id歌曲ID

​ ......

artists艺术家

album专辑

​ ......

hMusic

mMusic

lMusic

bMusic

​ ......

三级目录:

artists里包含艺术家名字、ID、图片(pic、img1v1)==?==编号及网址等

album里包含专辑名、ID、歌曲封面图片、发布时间、描述、标签、歌曲目录、专辑作者(artist)和专辑内歌曲的作者(artists

h/m/l/bMusic==意义不明==