Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
AscendKing
NeteaseCloudMusicApi
提交
8d7c1476
N
NeteaseCloudMusicApi
项目概览
AscendKing
/
NeteaseCloudMusicApi
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
NeteaseCloudMusicApi
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8d7c1476
编写于
11月 23, 2021
作者:
C
chen_10
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加歌手视频接口
上级
873eb588
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
48 addition
and
4 deletion
+48
-4
docs/README.md
docs/README.md
+17
-0
interface.d.ts
interface.d.ts
+7
-4
module/artist_video.js
module/artist_video.js
+24
-0
未找到文件。
docs/README.md
浏览文件 @
8d7c1476
...
...
@@ -244,6 +244,7 @@
226.
获取客户端歌曲下载 url
227.
获取歌单所有歌曲
228.
乐签信息
229.
获取歌手视频
## 安装
...
...
@@ -3597,6 +3598,22 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
**接口地址 :**
`/song/download/url`
### 获取歌手视频
说明 : 调用此接口 , 传入歌手 id, 可获得歌手视频
**必选参数 :**
`id`
: 歌手 id
**可选参数 :**
`size`
: 返回数量 , 默认为 10
`cursor`
: 返回数据的 cursor, 默认为 0 , 传入上一次返回结果的 cursor,将会返回下一页的数据
`order`
: 排序方法, 0 表示按时间排序, 1 表示按热度排序, 默认为 0
**接口地址 :**
`/artist/video`
**调用例子 :**
`/artist/video?id=2116`
## 离线访问此文档
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
...
...
interface.d.ts
浏览文件 @
8d7c1476
...
...
@@ -1542,16 +1542,19 @@ export function song_download_url(
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
export
function
send_event_text
(
export
function
playlist_track_all
(
params
:
{
msg
:
number
|
string
id
:
number
|
string
s
?:
number
|
string
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
export
function
playlist_track_all
(
export
function
artist_video
(
params
:
{
id
:
number
|
string
s
?:
number
|
string
size
?:
number
|
string
cursor
?:
number
|
string
order
?:
number
|
string
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
...
...
module/artist_video.js
0 → 100644
浏览文件 @
8d7c1476
// 歌手相关视频
module
.
exports
=
(
query
,
request
)
=>
{
const
data
=
{
artistId
:
query
.
id
,
page
:
JSON
.
stringify
({
size
:
query
.
size
||
10
,
cursor
:
query
.
cursor
||
0
,
}),
tab
:
0
,
order
:
query
.
order
||
0
,
}
return
request
(
'
POST
'
,
`https://music.163.com/weapi/mlog/artist/video`
,
data
,
{
crypto
:
'
weapi
'
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
,
realIP
:
query
.
realIP
,
},
)
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录