接口地址
https://ffapi.cn/int/v1/dg_qqmusic
返回格式
json/text
请求方式
get/post
请求示例
https://ffapi.cn/int/v1/dg_qqmusic?msg=邓紫棋&limit=5&format=json&n=
参数说明
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| act | 否 | string | 输出类型(ckadd=入库CK获取key秘钥、search=详细搜索、info=歌曲信息、lrcgc=LRC歌词、musicurl=音乐URL)默认为点歌台 |
| msg | 是 | string | 搜索内容(歌曲名字、歌手名字) |
| page | 否 | string | 搜索翻页(页数默认1) |
| limit | 否 | string | 每页数量(歌曲数量默认20) |
| n | 否 | string | 选歌序号(选择单独返回一首歌详细) |
| format | 否 | string | 输出格式(text、json) |
| quality | 否 | string | 输出音乐格式(m4a、mp3、ogg、192、320、flac) |
| key | 否 | string | Key秘钥(需要QQ音乐VIP数据时必填) |
返回数据
{
"code": 200,
"msg": "查询成功",
"data": [
{
"n": 1,
"title": "句号",
"singer": "G.E.M. 邓紫棋",
"pic": "https://y.gtimg.cn/music/photo_new/T002R300x300M0000049MVh824D7bM_1.jpg"
},
{
"n": 2,
"title": "多远都要在一起",
"singer": "G.E.M. 邓紫棋",
"pic": "https://y.gtimg.cn/music/photo_new/T002R300x300M000003c616O2Zlswm_1.jpg"
},
{
"n": 3,
"title": "喜欢你",
"singer": "G.E.M. 邓紫棋",
"pic": "https://y.gtimg.cn/music/photo_new/T002R300x300M000000cFPKx3ZGzks_1.jpg"
},
{
"n": 4,
"title": "泡沫",
"singer": "G.E.M. 邓紫棋",
"pic": "https://y.gtimg.cn/music/photo_new/T002R300x300M000002YFufr4bXZyI_1.jpg"
},
{
"n": 5,
"title": "倒数",
"singer": "G.E.M. 邓紫棋",
"pic": "https://y.gtimg.cn/music/photo_new/T002R300x300M000003cKIKZ1J4Yyu_1.jpg"
}
]
}