接口详情
GET/POST
JSON
接口状态
调用频率
无限制
响应时间
测速中
稳定性
稳定
请求参数
参数名 | 是否必填 | 类型 | 说明 | 示例 |
---|---|---|---|---|
url | 是 | string | 需要填的链接 | https://v.douyin.com/eEEfBw-3-pQ/ |
示例代码
https://api.bugpk.com/api/dylive?url=https://v.douyin.com/eEEfBw-3-pQ/
// 使用 Fetch API 调用接口
const apiUrl = 'https://api.bugpk.com/api/dylive';
// 准备请求参数
const params = {
key1: 'value1',
key2: 'value2',
// 根据实际参数添加
};
// GET 请求示例
async function getRequest() {
try {
const queryParams = new URLSearchParams(params).toString();
const url = `${apiUrl}?${queryParams}`;
const response = await fetch(url, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
},
});
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const data = await response.json();
console.log('响应数据:', data);
return data;
} catch (error) {
console.error('请求失败:', error);
throw error;
}
}
// POST 请求示例
async function postRequest() {
try {
const response = await fetch(apiUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(params),
});
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const data = await response.json();
console.log('响应数据:', data);
return data;
} catch (error) {
console.error('请求失败:', error);
throw error;
}
}
// 根据请求方法调用对应的函数
const method = 'GET/POST';
if (method === 'GET') {
getRequest();
} else if (method === 'POST') {
postRequest();
}
// 使用 cURL 调用接口
$apiUrl = 'https://api.bugpk.com/api/dylive';
$method = 'GET/POST';
// 准备请求参数
$params = [
'key1' => 'value1',
'key2' => 'value2',
// 根据实际参数添加
];
function callApi($url, $method, $params = []) {
$ch = curl_init();
// 设置 cURL 选项
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
// 设置请求头
$headers = [
'Content-Type: application/json',
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
if ($method === 'GET') {
// GET 请求
$queryString = http_build_query($params);
$fullUrl = $url . '?' . $queryString;
curl_setopt($ch, CURLOPT_URL, $fullUrl);
} else {
// POST/PUT/DELETE 请求
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
if (!empty($params)) {
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
}
}
// 执行请求
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if (curl_error($ch)) {
throw new Exception('cURL Error: ' . curl_error($ch));
}
curl_close($ch);
// 解析响应
$data = json_decode($response, true);
if (json_last_error() !== JSON_ERROR_NONE) {
throw new Exception('JSON 解析错误: ' . json_last_error_msg());
}
return [
'status' => $httpCode,
'data' => $data
];
}
try {
$result = callApi($apiUrl, $method, $params);
echo "请求成功:\n";
print_r($result['data']);
} catch (Exception $e) {
echo "请求失败: " . $e->getMessage() . "\n";
}
import requests
import json
# API 配置
api_url = 'https://api.bugpk.com/api/dylive'
method = 'get/post'
# 准备请求参数
params = {
'key1': 'value1',
'key2': 'value2',
# 根据实际参数添加
}
# 设置请求头
headers = {
'Content-Type': 'application/json',
'User-Agent': 'API-Client/1.0'
}
def call_api():
try:
if method == 'get':
# GET 请求
response = requests.get(
api_url,
params=params,
headers=headers,
timeout=30
)
else:
# POST/PUT/DELETE 请求
data = json.dumps(params)
if method == 'post':
response = requests.post(api_url, data=data, headers=headers, timeout=30)
elif method == 'put':
response = requests.put(api_url, data=data, headers=headers, timeout=30)
elif method == 'delete':
response = requests.delete(api_url, data=data, headers=headers, timeout=30)
else:
raise ValueError(f"不支持的请求方法: {method}")
# 检查响应状态
response.raise_for_status()
# 解析 JSON 响应
result = response.json()
print("请求成功!")
print(f"状态码: {response.status_code}")
print("响应数据:")
print(json.dumps(result, indent=2, ensure_ascii=False))
return result
except requests.exceptions.RequestException as e:
print(f"请求失败: {e}")
return None
except json.JSONDecodeError as e:
print(f"JSON 解析失败: {e}")
return None
# 调用接口
if __name__ == "__main__":
result = call_api()
import java.io.*;
import java.net.*;
import java.util.HashMap;
import java.util.Map;
public class ApiClient {
private static final String API_URL = "https://api.bugpk.com/api/dylive";
private static final String METHOD = "GET/POST";
public static void main(String[] args) {
try {
// 准备请求参数
Map params = new HashMap<>();
params.put("key1", "value1");
params.put("key2", "value2");
// 根据实际参数添加
String response = callApi(API_URL, METHOD, params);
System.out.println("响应结果: " + response);
} catch (Exception e) {
System.err.println("请求失败: " + e.getMessage());
}
}
public static String callApi(String url, String method, Map params) throws IOException {
HttpURLConnection connection = null;
try {
if (method.equals("GET")) {
// GET 请求
String queryString = buildQueryString(params);
String fullUrl = url + "?" + queryString;
URL apiUrl = new URL(fullUrl);
connection = (HttpURLConnection) apiUrl.openConnection();
connection.setRequestMethod("GET");
} else {
// POST/PUT/DELETE 请求
URL apiUrl = new URL(url);
connection = (HttpURLConnection) apiUrl.openConnection();
connection.setRequestMethod(method);
connection.setDoOutput(true);
// 设置请求体
String requestBody = buildJsonBody(params);
try (OutputStream os = connection.getOutputStream()) {
byte[] input = requestBody.getBytes("utf-8");
os.write(input, 0, input.length);
}
}
// 设置请求头
connection.setRequestProperty("Content-Type", "application/json");
connection.setRequestProperty("User-Agent", "API-Client/1.0");
connection.setConnectTimeout(30000);
connection.setReadTimeout(30000);
// 获取响应
int status = connection.getResponseCode();
StringBuilder response = new StringBuilder();
try (BufferedReader br = new BufferedReader(
new InputStreamReader(connection.getInputStream(), "utf-8"))) {
String responseLine;
while ((responseLine = br.readLine()) != null) {
response.append(responseLine.trim());
}
}
if (status != 200) {
throw new IOException("HTTP 错误代码: " + status);
}
return response.toString();
} finally {
if (connection != null) {
connection.disconnect();
}
}
}
private static String buildQueryString(Map params) throws UnsupportedEncodingException {
StringBuilder result = new StringBuilder();
for (Map.Entry entry : params.entrySet()) {
if (result.length() > 0) {
result.append("&");
}
result.append(URLEncoder.encode(entry.getKey(), "UTF-8"));
result.append("=");
result.append(URLEncoder.encode(entry.getValue(), "UTF-8"));
}
return result.toString();
}
private static String buildJsonBody(Map params) {
StringBuilder json = new StringBuilder();
json.append("{");
boolean first = true;
for (Map.Entry entry : params.entrySet()) {
if (!first) {
json.append(",");
}
json.append("\"").append(entry.getKey()).append("\":\"").append(entry.getValue()).append("\"");
first = false;
}
json.append("}");
return json.toString();
}
}
# API 配置
API_URL="https://api.bugpk.com/api/dylive"
METHOD="GET/POST"
# GET/POST 请求示例
curl -X GET/POST \
"$API_URL" \
-H "Content-Type: application/json" \
-H "User-Agent: API-Client/1.0" \
-d '{
"key1": "value1",
"key2": "value2"
}'
# 带详细输出的 cURL 命令
curl -v \
-X GET/POST \
"$API_URL" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"key1":"value1","key2":"value2"}' \
--connect-timeout 30 \
--max-time 60
# 将响应保存到文件
curl -X GET/POST \
"$API_URL" \
-H "Content-Type: application/json" \
-d '{"key1":"value1","key2":"value2"}' \
-o response.json
# 使用变量参数的示例
KEY1="value1"
KEY2="value2"
curl -X GET/POST \
"$API_URL" \
-H "Content-Type: application/json" \
-d "{\"key1\":\"$KEY1\",\"key2\":\"$KEY2\"}"
返回示例
{
"code": 200,
"msg": "解析完成",
"data": {
"auther": "桶锣烧(主页取原圖)",
"uid": 4163189922866003,
"followerCount": 13865,
"totalFavorited": 228391,
"avatar": "https://p3-pc.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_5c0de41286f94274d666e1efcb8cfe6d.jpeg?from=327834062",
"title": "#实况live #动态锁屏 #屏保该换了系列 #4k超清",
"cover": "https://p3-pc-sign.douyinpic.com/tos-cn-i-0813c000-ce/oUCAjEGDwJAEbqIFfAn9EAAfEIRIo0IdQN2DKe~noop.jpeg?biz_tag=pcweb_cover&from=327834062&lk3s=138a59ce&s=PackSourceEnum_AWEME_DETAIL&se=false&x-expires=1758470400&x-signature=zOlPhe8BoT2vKMmvUG5FdS6gPWs%3D",
"images": [
"https://p3-pc-sign.douyinpic.com/tos-cn-i-0813c000-ce/oknginCDiAAELhRAMPAByaZCEAIiP508iEoK9~tplv-dy-aweme-images:q75.webp?biz_tag=aweme_images&from=327834062&lk3s=138a59ce&s=PackSourceEnum_AWEME_DETAIL&sc=image&se=false&x-expires=1759852800&x-signature=ICvU2PB0W3nhBvR7H4UOhsueR0s%3D",
"https://p3-pc-sign.douyinpic.com/tos-cn-p-0015c000-ce/owCyAFdokLmeLBhCQPIGiOeMgZf6gRsQJ8iTE7~tplv-dy-aweme-images:q75.webp?biz_tag=aweme_images&from=327834062&lk3s=138a59ce&s=PackSourceEnum_AWEME_DETAIL&sc=image&se=false&x-expires=1759852800&x-signature=T4SFzEdktc46sDhB%2BGxyBJHQEfg%3D",
"https://p3-pc-sign.douyinpic.com/tos-cn-p-0015c000-ce/owyTE83irGAnCTrnNhLfJ7PAHBfgGCToIHe1RI~tplv-dy-aweme-images:q75.webp?biz_tag=aweme_images&from=327834062&lk3s=138a59ce&s=PackSourceEnum_AWEME_DETAIL&sc=image&se=false&x-expires=1759852800&x-signature=bGYQv8JtnxEHWEnT%2BUWnygy832E%3D",
"https://p3-pc-sign.douyinpic.com/tos-cn-p-0015c000-ce/o4PzGTePAPB6oRXi0CiUeE8nEcnsIwC5IOAeyA~tplv-dy-aweme-images:q75.webp?biz_tag=aweme_images&from=327834062&lk3s=138a59ce&s=PackSourceEnum_AWEME_DETAIL&sc=image&se=false&x-expires=1759852800&x-signature=sd2WN36BzizOkfTuWvPDLq9fhus%3D",
"https://p3-pc-sign.douyinpic.com/tos-cn-p-0015c000-ce/og6BhQSzihPAgjYFweIgCLoB7JQGmgT8eQeWlD~tplv-dy-aweme-images:q75.webp?biz_tag=aweme_images&from=327834062&lk3s=138a59ce&s=PackSourceEnum_AWEME_DETAIL&sc=image&se=false&x-expires=1759852800&x-signature=ofTqkJcCcyEa28kDDR13PoOkatQ%3D",
"https://p3-pc-sign.douyinpic.com/tos-cn-p-0015c000-ce/oAfR9oTI2e7EBIPEoCLPAC7Ggg8dMJxoehoBkS~tplv-dy-aweme-images:q75.webp?biz_tag=aweme_images&from=327834062&lk3s=138a59ce&s=PackSourceEnum_AWEME_DETAIL&sc=image&se=false&x-expires=1759852800&x-signature=8wF5wi8%2F3OJbkMiGt6gOwTOh7zk%3D",
"https://p3-pc-sign.douyinpic.com/tos-cn-p-0015c000-ce/o4FkUGUIeHLhJwFeBgUiQ8PQFG74oAPiIQxCBe~tplv-dy-aweme-images:q75.webp?biz_tag=aweme_images&from=327834062&lk3s=138a59ce&s=PackSourceEnum_AWEME_DETAIL&sc=image&se=false&x-expires=1759852800&x-signature=3tD9GL9V5LoI2rPxcV5QvKd%2FQWM%3D",
"https://p3-pc-sign.douyinpic.com/tos-cn-p-0015c000-ce/oYeWifHAJCCI3NgJcqG88PQQoIBULF7uhL6BOe~tplv-dy-aweme-images:q75.webp?biz_tag=aweme_images&from=327834062&lk3s=138a59ce&s=PackSourceEnum_AWEME_DETAIL&sc=image&se=false&x-expires=1759852800&x-signature=088jtwiacXfTlIpNgwwUWuunWjg%3D",
"https://p3-pc-sign.douyinpic.com/tos-cn-p-0015c000-ce/ooyEEUfBeE2qeFzAaC96b6UIRCoAhiVriB0DIw~tplv-dy-aweme-images:q75.webp?biz_tag=aweme_images&from=327834062&lk3s=138a59ce&s=PackSourceEnum_AWEME_DETAIL&sc=image&se=false&x-expires=1759852800&x-signature=QnU8SRHZMSCf8urEXDmLEG4ntU0%3D"
],
"url": [
"https://www.douyin.com/aweme/v1/play/?file_id=a237abf5a2194d358355968ff62cca42&is_play_url=1&is_ssr=1&line=0&sign=9114f36ac74c2effab24d9683af0b543&source=PackSourceEnum_AWEME_DETAIL&video_id=v1e00fgi0000cv8gkafog65ohd1c279g&aid=6383",
"https://www.douyin.com/aweme/v1/play/?file_id=ffaa87a3aeb84a0e815ab982354a890b&is_play_url=1&is_ssr=1&line=0&sign=e3dcaa2b1c51e18ca235fc047c078c38&source=PackSourceEnum_AWEME_DETAIL&video_id=v1e00fgi0000cv8gktfog65voicfu6rg&aid=6383",
"https://www.douyin.com/aweme/v1/play/?file_id=c17f59c59b9f4995ab0a96e3bacb3fb1&is_play_url=1&is_ssr=1&line=0&sign=b92e554de6b0c4658f1c71a1476db0ea&source=PackSourceEnum_AWEME_DETAIL&video_id=v1e00fgi0000cv8gku7og65ppb516ee0&aid=6383",
"https://www.douyin.com/aweme/v1/play/?file_id=881328245d6a45aab2d1ed726b69bbfb&is_play_url=1&is_ssr=1&line=0&sign=3894f9efe8dfd38a75b34d0428fb9c02&source=PackSourceEnum_AWEME_DETAIL&video_id=v1e00fgi0000cv8gkufog65ocr1t51o0&aid=6383",
"https://www.douyin.com/aweme/v1/play/?file_id=994e01bdcba5441ca74d24d620a9ec02&is_play_url=1&is_ssr=1&line=0&sign=6a9f68de3b6d409e6874d3c6950260a8&source=PackSourceEnum_AWEME_DETAIL&video_id=v1e00fgi0000cv8gkvnog65kl3o94vg0&aid=6383",
"https://www.douyin.com/aweme/v1/play/?file_id=cddb4bced4cf44a1a9d273822b0e440b&is_play_url=1&is_ssr=1&line=0&sign=5f28c5f4fa4b6c39b8cb794ac85e3cc4&source=PackSourceEnum_AWEME_DETAIL&video_id=v1e00fgi0000cv8gl0nog65l4h1hs1fg&aid=6383",
"https://www.douyin.com/aweme/v1/play/?file_id=be4c8c23802f47a4815c1de22bf73411&is_play_url=1&is_ssr=1&line=0&sign=6197e9d7f0707392b568e473d0f34ba6&source=PackSourceEnum_AWEME_DETAIL&video_id=v1e00fgi0000cv8gl0vog65n17pcdueg&aid=6383",
"https://www.douyin.com/aweme/v1/play/?file_id=ce08443cc51745519ba782a1d1cc9659&is_play_url=1&is_ssr=1&line=0&sign=f4030dcd925e34816d0e150a7e9b3183&source=PackSourceEnum_AWEME_DETAIL&video_id=v1e00fgi0000cv8gl1vog65md12gakt0&aid=6383"
],
"music": {
"title": "DJ阿布创作的原声",
"author": "DJ阿布",
"avatar": "https://p3-pc.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_60346582681ef82e3fd2c332d67959d7.jpeg?from=327834062",
"url": "https://sf5-hl-cdn-tos.douyinstatic.com/obj/ies-music/7463400147016452901.mp3"
}
}
}
响应参数
参数名 | 类型 | 说明 | 示例 |
---|---|---|---|
code | int | 响应码 | |
msg | string | 解析结果 | |
data | json | 视频数据 | |
data[author] 嵌套参数 | string | 作者用户名 | |
data[uid] 嵌套参数 | string | 作者抖音号 | |
data[avatar] 嵌套参数 | string | 作者头像 | |
data[avatar] 嵌套参数 | string | 作者用户名 | |
data[title] 嵌套参数 | string | 作品标题 | |
data[cover] 嵌套参数 | string | 作品封面 | |
data[images] 嵌套参数 | string | 实况封面 | |
data[url] 嵌套参数 | string | 实况视频 | |
music | json | 作品音乐 | |
music[author] 嵌套参数 | json | 作品音乐作者 | |
music[avatar] 嵌套参数 | json | 作品音乐封面 |
在线请求
该接口支持多种请求方式
响应结果
发送请求后,响应结果将显示在这里...
友情链接

短视频解析
可以解析各大平台短视频
https://sv.bugpk.com九魂刷步
这是一个免费刷步数的网站!
https://api.jiuhunwl.cn/九魂博客
这是一个分享资源,交流学习的博客站!
https://www.jiuhunwl.cn/
资源库导航
你的专属网址标签站
https://www.zykdh.com/时空邮局
给未来写封信
https://skyj.jiuhunwl.cn/妙藏API
稳定、快速的免费API数据接口服务
https://api.tinise.cn/
IT睿行
编程技术,软件开发,人工智能,大数据,云计算,前端开发,后端开发,移动应用,算法设计,开源项目,个人博客,创意写作,生活随笔,读书笔记,旅行故事,摄影分享,美食体验,手工制作,灵感记录,生活感悟
https://itrf.cn/稳定API
免费高效稳定的API站
https://api.xingchenfu.xyz
小渡api
小渡API是一个免费的接口平台,致力于让数据传输更加快捷、高效,助力开发者轻松实现信息互通。
https://api.dwo.cc/