mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-22 22:53:09 +00:00
增加歌手视频接口
This commit is contained in:
parent
873eb58899
commit
8d7c147696
@ -244,6 +244,7 @@
|
|||||||
226. 获取客户端歌曲下载 url
|
226. 获取客户端歌曲下载 url
|
||||||
227. 获取歌单所有歌曲
|
227. 获取歌单所有歌曲
|
||||||
228. 乐签信息
|
228. 乐签信息
|
||||||
|
229. 获取歌手视频
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
@ -3597,6 +3598,22 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
|
|||||||
|
|
||||||
**接口地址 :** `/song/download/url`
|
**接口地址 :** `/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, 可离线访问
|
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
|
||||||
|
15
interface.d.ts
vendored
15
interface.d.ts
vendored
@ -1542,12 +1542,6 @@ export function song_download_url(
|
|||||||
} & RequestBaseConfig,
|
} & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
export function send_event_text(
|
|
||||||
params: {
|
|
||||||
msg: number | string
|
|
||||||
} & RequestBaseConfig,
|
|
||||||
): Promise<Response>
|
|
||||||
|
|
||||||
export function playlist_track_all(
|
export function playlist_track_all(
|
||||||
params: {
|
params: {
|
||||||
id: number | string
|
id: number | string
|
||||||
@ -1555,4 +1549,13 @@ export function playlist_track_all(
|
|||||||
} & RequestBaseConfig,
|
} & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function artist_video(
|
||||||
|
params: {
|
||||||
|
id: number | string
|
||||||
|
size?: number | string
|
||||||
|
cursor?: number | string
|
||||||
|
order?: number | string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function sign_happy_info(params: RequestBaseConfig): Promise<Response>
|
export function sign_happy_info(params: RequestBaseConfig): Promise<Response>
|
||||||
|
24
module/artist_video.js
Normal file
24
module/artist_video.js
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
// 歌手相关视频
|
||||||
|
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user