全民K歌直链解析-API接口
正常 需密钥调用免费
接口信息
总调用次数: 3
所属分类: 工具
请求方式: GET
响应格式: JSON
添加时间: 2026-05-23
更新时间: 2026-06-05
接口描述: 全民K歌直链解析
请求信息
请求地址
https://api.key5.site/API/kg_qq/index.php
示例地址
https://api.key5.site/API/kg_qq/index.php?url=https://kg.qq.com/node/play?s=riEBRhrlX8YxXrUT&g_f=share_html
请求参数
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| 此接口无需请求参数 | |||
返回示例
{
"code": 200,
"msg": "请求成功",
"data": {
"song_name": "泡沫",
"time": 1511086810,
"pic": "http://y.gtimg.cn/music/photo_new/T002R500x500M000002YFufr4bXZyI.jpg?max_age=2592000",
"musiclink": "http://tx.stream.kg.qq.com/gzc-kgsvp/gzc_0_50111_1021_9df7bcefa1f1ebab547e47ef80f9cefd768137ae.f0.m4a?vkey=D799F0F7A92E4D64CE7F64CA9FEAE2E5C4EBB6079E4ACA36F12E73D4CBCFB1950854101FFDEBEF3A0BE884A7F55743CAD64CE541A48D5267385DBFE62D254368A35351DA1391EACF919B97698B1E55DD16AA2F8D7AE92EC0&dis_k=6ac4c412b515a663e559571cad9cc399&dis_t=1660377897&fromtag=1021&sdtfrom=v1021&ugcid=283962548_1511086810_232",
"author": {
"name": "http://shp.qlogo.cn/ttsing/283962548/283962548/100",
"avatar": "19A-张承惠"
}
}
}
状态码说明
| 状态码 | 说明 |
|---|---|
| 200 | 请求成功,服务器已成功处理了请求。 |
| 403 | 服务器拒绝请求。这可能是由于缺少必要的认证凭据(如API密钥)或权限不足。 |
| 404 | 请求的资源未找到。请检查您的请求地址是否正确。 |
| 429 | 请求过于频繁。您已超出速率限制,请稍后再试。 |
| 500 | 服务器内部错误。服务器在执行请求时遇到了问题。 |
调用示例
<?php
$url = 'https://api.key5.site/API/kg_qq/index.php';
$params = [
];
$url .= '?' . http_build_query($params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = "https://api.key5.site/API/kg_qq/index.php"
params = {
}
response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://api.key5.site/API/kg_qq/index.php');
const params = {
};
Object.keys(params).forEach(key => {
url.searchParams.append(key, params[key]);
});
fetch(url)
.then(response => response.text())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl "https://api.key5.site/API/kg_qq/index.php"