网易云音乐SVIP解析
正常接口详情
请求地址
https://gy.owyun.cn/api/wyy/
示例地址
https://gy.owyun.cn/api/wyy/?apikey=你的api密钥&url=歌曲链接&level=exhigh&type=json
请求方式
GET
返回格式
application/json
请求参数说明
| 参数名 | 必填 | 类型 | 说明 | 示例值 |
|---|---|---|---|---|
| apikey | 必填 | string | 用户密钥 | |
| url | 可选 | string | 音乐链接 | |
| ids | 可选 | string | 音乐id | 1933997277 |
| level | 可选 | string | standard(标准音质), exhigh(极高音质), lossless(无损音质), hires(Hi-Res音质), jyeffect(高清环绕声), sky(沉浸环绕声), jymaster(超清母带) | lossless |
| type | 必填 | string | json/text/down/search/song/url/lyric/playlist/album | json |
| s | 可选 | string | 搜索关键词,搜索时必填的参数 | Lydia |
| limit | 可选 | string | 返回数量,默认 20 | |
| offset | 可选 | string | 偏移量,默认 0 | |
| id | 可选 | string | 获取音乐直链或音乐详情时需要输入 |
示例代码
<?php
$url = 'https://gy.owyun.cn/api/wyy/';
$params = [
'apikey' => 'YOUR_VALUE',
'url' => 'YOUR_VALUE',
'ids' => 'YOUR_VALUE',
'level' => 'YOUR_VALUE',
'type' => 'YOUR_VALUE',
's' => 'YOUR_VALUE',
'limit' => 'YOUR_VALUE',
'offset' => 'YOUR_VALUE',
'id' => 'YOUR_VALUE',
];
$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://gy.owyun.cn/api/wyy/"
params = {
"apikey": "YOUR_VALUE",
"url": "YOUR_VALUE",
"ids": "YOUR_VALUE",
"level": "YOUR_VALUE",
"type": "YOUR_VALUE",
"s": "YOUR_VALUE",
"limit": "YOUR_VALUE",
"offset": "YOUR_VALUE",
"id": "YOUR_VALUE",
}
response = requests.get(url, params=params)
print(response.text)
const url = new URL("https://gy.owyun.cn/api/wyy/");
const params = {
"apikey": "YOUR_VALUE",
"url": "YOUR_VALUE",
"ids": "YOUR_VALUE",
"level": "YOUR_VALUE",
"type": "YOUR_VALUE",
"s": "YOUR_VALUE",
"limit": "YOUR_VALUE",
"offset": "YOUR_VALUE",
"id": "YOUR_VALUE",
};
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));
返回示例
暂无返回示例,可在“在线调试”中查看实时返回结果。
在线调试
此处将显示接口返回结果...