cURL
curl "https://api.ruseo.cn/api/kugou_search?music=%E6%88%91%E7%94%A8%E4%BB%80%E4%B9%88%E6%8A%8A%E4%BD%A0%E7%95%99%E4%BD%8F"
搜索酷狗平台上的铃声资源,返回歌曲名、歌手、封面图和播放地址,适用于个性化铃声设置和音乐应用。
https://api.ruseo.cn/api/kugou_search
接口调用前需要确认的核心配置。
/api/kugou_searchkugou_search必填参数必须传入,示例值可直接用于联调。
免费API不强制要求API Key,但如果您希望统计个人调用次数,请在请求时附加参数 key=您的API_KEY。
注册账号后即可获得API Key。
| 参数名 | 必填 | 类型 | 说明 | 示例值 |
|---|---|---|---|---|
key |
否 | string | 可选参数:携带此参数可统计您的个人调用次数。请注册账号获取API Key。 | YOUR_API_KEY |
music |
是 | string | 需要搜索的音乐名称 | 我用什么把你留住 |
优先使用示例地址测试请求参数是否正确。
https://api.ruseo.cn/api/kugou_search?music=%E6%88%91%E7%94%A8%E4%BB%80%E4%B9%88%E6%8A%8A%E4%BD%A0%E7%95%99%E4%BD%8F
curl "https://api.ruseo.cn/api/kugou_search?music=%E6%88%91%E7%94%A8%E4%BB%80%E4%B9%88%E6%8A%8A%E4%BD%A0%E7%95%99%E4%BD%8F"
$url = 'https://api.ruseo.cn/api/kugou_search?music=%E6%88%91%E7%94%A8%E4%BB%80%E4%B9%88%E6%8A%8A%E4%BD%A0%E7%95%99%E4%BD%8F';
$response = file_get_contents($url);
$data = json_decode($response, true);
fetch('https://api.ruseo.cn/api/kugou_search?music=%E6%88%91%E7%94%A8%E4%BB%80%E4%B9%88%E6%8A%8A%E4%BD%A0%E7%95%99%E4%BD%8F')
.then(res => res.json())
.then(data => console.log(data));
实际返回内容以接口脚本处理结果为准。
{
"code": 0,
"msg": "success",
"data": {
"route": "kugou_search",
"example": true
}
}
| 参数名 | 类型 | 说明 | 示例值 |
|---|---|---|---|
music |
string | 搜索的音乐名称 | 我用什么把你留住 |
count |
integer | 搜索结果数量 | 10 |
list |
array | 铃声列表 | [] |
song |
string | 歌曲名称(list内) | 我用什么把你留住 |
singer |
string | 歌手名称(list内) | 潘男男ha |
image |
string | 封面图片URL(list内) | https://ringimgbssdl.kugou.com/xxx.jpg |
url |
string | 铃声播放地址(list内) | http://ring.bssdlbig.kugou.com/xxx.mp3 |
点击左侧“发送请求”查看结果...