接口地址
https://www.xzzti.cn/api/jiexi
返回格式
JSON
请求方式
GET
认证方式
API Key
请求示例
https://www.xzzti.cn/api/jiexi?apiKey=【替换成自己的APIKEY】
请求参数说明
| 参数名称 | 是否必填 | 数据类型 | 参数说明 |
|---|---|---|---|
url |
是 | string | 需要解析的视频链接 |
返回参数说明
| 字段名称 | 数据类型 | 字段说明 |
|---|
返回示例
{
"code": 200,
"msg": "解析成功",
"data": {
"author": "二狗脱口秀",
"uid": 50302011614,
"avatar": "https://p26.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813_ocDAcKuzIEPWEPV4xIaiAiBgQyiEwAOkDAjAN.jpeg?from=327834062",
"like": 29323,
"time": 1766150930,
"title": "快乐加倍 #脱口秀#二狗脱口秀#观众搭茬#每日一笑",
"cover": "https://p9-sign.douyinpic.com/tos-cn-i-dy/30a811321bcb49e3b7f3bc637ebcec56~tplv-dy-resize-walign-adapt-aq:540:q75.webp?lk3s=138a59ce&x-expires=1768352400&x-signature=N%2F27GfxxCWQ2ST04oRnfq267SaY%3D&from=327834062&s=PackSourceEnum_DOUYIN_REFLOW&se=false&sc=cover&biz_tag=aweme_video&l=202512310957486129984810494B82EA8C",
"url": "https://aweme.snssdk.com/aweme/v1/play/?line=0&logo_name=aweme_diversion_search&ratio=720p&video_id=v0200fg10000d52l1bvog65urvh1fcq0",
"music": {
"author": "二狗脱口秀",
"avatar": "https://p26.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813_ocDAcKuzIEPWEPV4xIaiAiBgQyiEwAOkDAjAN.jpeg?from=327834062"
}
}
}
错误码参照表
| 错误码 | 状态说明 | 错误描述 | 解决方案 |
|---|
JavaScript 示例
// 使用 fetch API
fetch('https://www.xzzti.cn/api/jiexi?apiKey=YOUR_API_KEY')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Python 示例
import requests
url = 'https://www.xzzti.cn/api/jiexi'
params = {'apiKey': 'YOUR_API_KEY'}
response = requests.get(url, params=params)
data = response.json()
print(data)
PHP 示例
<?php
$url = 'https://www.xzzti.cn/api/jiexi?apiKey=YOUR_API_KEY';
$response = file_get_contents($url);
$data = json_decode($response, true);
print_r($data);
?>
Java 示例
import java.net.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
URL url = new URL("https://www.xzzti.cn/api/jiexi?apiKey=YOUR_API_KEY");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("GET");
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
}
}
cURL 示例
curl -X GET \
'https://www.xzzti.cn/api/jiexi?apiKey=YOUR_API_KEY' \
-H 'Accept: application/json'
在线测试工具
测试结果
就绪
点击"运行测试"按钮开始测试接口