提交 4c5a1109 编写于 作者: B binaryify

新增歌手详情接口 #1035

上级 6e1a5b9a
# 更新日志 # 更新日志
### 3.47.3 | 2020.11.22
- 新增歌手详情接口 [#1035](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1035)
### 3.47.2 | 2020.11.15 ### 3.47.2 | 2020.11.15
- 新增关注歌手新歌/新MV接口 [#1028](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1028) - 新增关注歌手新歌/新MV接口 [#1028](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1028)
### 3.47.1 | 2020.11.14 ### 3.47.1 | 2020.11.14
- 修复使用post请求取消喜欢音乐会失败的问题 [#1024](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1024) - 修复使用post请求取消喜欢音乐会失败的问题 [#1024](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1024)
......
...@@ -294,6 +294,9 @@ banner({ type:0 }).then(res=>{ ...@@ -294,6 +294,9 @@ banner({ type:0 }).then(res=>{
192. 抱一抱评论 192. 抱一抱评论
193. 评论抱一抱列表 193. 评论抱一抱列表
194. 收藏的专栏 194. 收藏的专栏
195. 关注歌手新歌
196. 关注歌手新MV
197. 歌手详情
## 更新日志 ## 更新日志
......
...@@ -212,6 +212,7 @@ ...@@ -212,6 +212,7 @@
194. 收藏的专栏 194. 收藏的专栏
195. 关注歌手新歌 195. 关注歌手新歌
196. 关注歌手新MV 196. 关注歌手新MV
197. 歌手详情
## 安装 ## 安装
...@@ -1960,6 +1961,16 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具 ...@@ -1960,6 +1961,16 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
**调用例子 :** `/artist/desc?id=6452` ( 周杰伦 ) **调用例子 :** `/artist/desc?id=6452` ( 周杰伦 )
### 获取歌手详情
说明 : 调用此接口 , 传入歌手 id, 可获得获取歌手详情
**必选参数 :** `id`: 歌手 id
**接口地址 :** `/artist/detail`
**调用例子 :** `/artist/detail?id=11972054` (Billie Eilish)
### 获取相似歌手 ### 获取相似歌手
说明 : 调用此接口 , 传入歌手 id, 可获得相似歌手 说明 : 调用此接口 , 传入歌手 id, 可获得相似歌手
......
...@@ -1354,3 +1354,9 @@ export function artist_new_song( ...@@ -1354,3 +1354,9 @@ export function artist_new_song(
startTimestamp?: number | string startTimestamp?: number | string
} & RequestBaseConfig, } & RequestBaseConfig,
): Promise<Response> ): Promise<Response>
export function artist_detail(
params: {
id: number | string
} & RequestBaseConfig,
): Promise<Response>
module.exports = (query, request) => {
return request(
'POST',
`https://music.163.com/api/artist/head/info/get`,
{
id: query.id,
},
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}
{ {
"name": "NeteaseCloudMusicApi", "name": "NeteaseCloudMusicApi",
"version": "3.47.2", "version": "3.47.3",
"description": "网易云音乐 NodeJS 版 API", "description": "网易云音乐 NodeJS 版 API",
"scripts": { "scripts": {
"start": "node app.js", "start": "node app.js",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册