新增 API: 歌曲百科简要信息

有点无用的 API
This commit is contained in:
kengwang 2022-09-02 12:29:41 +08:00
parent 7a0321bcef
commit b9e3b8f016
No known key found for this signature in database
GPG Key ID: 9ED4CB8A0CF42B18
2 changed files with 32 additions and 0 deletions

View File

@ -3877,6 +3877,19 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
**调用例子 :** `/vip/timemachine` `/vip/timemachine?startTime=1638288000000&endTime=1640966399999&limit=10`2021年12月 `/vip/timemachine?startTime=1609430400&endTime=1640966399999&limit=60`(2021年)
### 音乐百科 - 简要信息
说明: 调用此接口可以获取歌曲的音乐百科简要信息
由于此接口返回内容过于复杂, 请按需取用
**接口地址:** `/song/wiki/about`
**必选参数:** `id`: 歌曲 ID
**调用例子:** `/song/wiki/about?id=1958384591`
## 离线访问此文档

View File

@ -0,0 +1,19 @@
// 音乐百科基础信息
const crypto = require('crypto')
module.exports = (query, request) => {
const data = {
songId: query.id
}
return request(
'POST',
`https://interface3.music.163.com/eapi/music/wiki/home/song/get`,
data,
{
crypto: 'eapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
url: '/api/song/play/about/block/page',
},
)
}