bilibili视频解析
正常只能解析bilibili短视频,画质为1080,支持合集。
接口详情
请求地址
https://gy.owyun.cn/api/bilibili/
示例地址
https://gy.owyun.cn/api/bilibili/?apikey=你的API密钥&url=https://www.bilibili.com/video/BV13DXGBHEqE/?share_source=copy_web&vd_source=6451c7c12c33d838c0d0f1426ca424ee
请求方式
GET
返回格式
application/json
请求参数说明
| 参数名 | 必填 | 类型 | 说明 | 示例值 |
|---|---|---|---|---|
| apikey | 必填 | string | 用户密钥 | |
| url | 必填 | string | 视频分享链接 | https://b23.tv/XhtfoyZ |
示例代码
<?php
$url = 'https://gy.owyun.cn/api/bilibili/';
$params = [
'apikey' => 'YOUR_VALUE',
'url' => '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/bilibili/"
params = {
"apikey": "YOUR_VALUE",
"url": "YOUR_VALUE",
}
response = requests.get(url, params=params)
print(response.text)
const url = new URL("https://gy.owyun.cn/api/bilibili/");
const params = {
"apikey": "YOUR_VALUE",
"url": "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));
返回示例
暂无返回示例,可在“在线调试”中查看实时返回结果。
在线调试
此处将显示接口返回结果...