基于 MakcRe/KuGouMusicApi 移植的酷狗音乐 API,仅保留匿名可用的核心接口。全部为 GET 请求,返回 JSON。
| 接口 | 必填参数 | 可选参数 | 说明 |
|---|---|---|---|
/search | keywords | page, pagesize | 搜索歌曲(返回 FileHash/SongName/SingerName/AlbumName/Image 封面/HQ·SQ hash) |
/song/url | hash | quality(默认128,支持128/192/320/flac等) | 获取播放地址(url 数组 + backupUrl) |
/search/lyric | hash 或 keywords | duration(毫秒,提高匹配精度) | 搜索歌词,返回 candidates(id + accesskey) |
/lyric | id, accesskey | decode=true, fmt=lrc | 下载歌词;decode 后 base64 解码在 decodeContent 字段 |
/search/hot | - | - | 热搜榜 |
/search/default | - | - | 默认搜索词 |
/album/detail | id (album_id) | - | 专辑详情(含 sizable_cover 封面) |
/images/audio | hash | count | 按 hash 获取歌曲相关图片 |
/register/dev | - | - | 设备注册获取 dfid(调试用) |
示例:/search?keywords=周杰伦 → 取 FileHash → /song/url?hash=xxx&quality=128
仅供学习研究,请尊重版权。上游接口变更时以 KuGouMusicApi 项目为准。