Kugou Music API · KuGouMusicApi 精简版 @ Cloudflare Workers

基于 MakcRe/KuGouMusicApi 移植的酷狗音乐 API,仅保留匿名可用的核心接口。全部为 GET 请求,返回 JSON。

播放地址 /song/url 依赖服务端注入的真实 dfid(部署时配置),无需调用方处理。搜索接口返回字段 FileHash 即歌曲 hash,供 /song/url 与 /search/lyric 使用。
接口必填参数可选参数说明
/searchkeywordspage, pagesize搜索歌曲(返回 FileHash/SongName/SingerName/AlbumName/Image 封面/HQ·SQ hash)
/song/urlhashquality(默认128,支持128/192/320/flac等)获取播放地址(url 数组 + backupUrl)
/search/lyrichash 或 keywordsduration(毫秒,提高匹配精度)搜索歌词,返回 candidates(id + accesskey)
/lyricid, accesskeydecode=true, fmt=lrc下载歌词;decode 后 base64 解码在 decodeContent 字段
/search/hot--热搜榜
/search/default--默认搜索词
/album/detailid (album_id)-专辑详情(含 sizable_cover 封面)
/images/audiohashcount按 hash 获取歌曲相关图片
/register/dev--设备注册获取 dfid(调试用)

示例:/search?keywords=周杰伦 → 取 FileHash → /song/url?hash=xxx&quality=128

仅供学习研究,请尊重版权。上游接口变更时以 KuGouMusicApi 项目为准。