网易云音乐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 | "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) |
lv
:lyric
,带时间轴的歌词kv
:kalaok lyric
,==推测为==卡拉OK同步变色歌词字幕tv
:translate lyric
,翻译歌词
Info Structure
Song
1 | { |
一级目录:
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
==意义不明==