新增排行榜接口

This commit is contained in:
binaryify
2017-04-15 21:03:14 +08:00
parent e4327ecad5
commit 02e7582db6
3 changed files with 86 additions and 0 deletions

View File

@ -311,7 +311,46 @@ $ set PORT=4000 && node app.js
![移除成功](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/fm_trash.png)
### 排行榜
说明:调用此接口,传入数字 idx, 可获取不同排行榜
**必选参数:**
` idx`: 对象 key, 对应以下排行榜
```
"0": 云音乐新歌榜,
"1": 云音乐热歌榜,
"2": 网易原创歌曲榜,
"3": 云音乐飙升榜,
"4": 云音乐电音榜,
"5": UK排行榜周榜,
"6": 美国Billboard周榜
"7": KTV嗨榜,
"8": iTunes榜,
"9": Hit FM Top榜,
"10": 日本Oricon周榜
"11": 韩国Melon排行榜周榜,
"12": 韩国Mnet排行榜周榜,
"13": 韩国Melon原声周榜,
"14": 中国TOP排行榜(港台榜),
"15": 中国TOP排行榜(内地榜)
"16": 香港电台中文歌曲龙虎榜,
"17": 华语金曲榜,
"18": 中国嘻哈榜,
"19": 法国 NRJ EuroHot 30周榜,
"20": 台湾Hito排行榜,
"21": Beatport全球电子舞曲榜
```
**接口地址:**
`/top_list`
**调用例子:**
`/top_list?idx=6`
返回数据如下图:
![排行榜](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/top_list.png)
## 离线访问此文档
此文档同时也是 Progressive Web Apps(PWA), 加入了serviceWorker,可离线访问