menu 抖音解析

更新日志

brightness_4 more_vert

解析抖音视频图集,无需cookie

equalizer 累计使用:709747

short_text 接口文档 http 状态码 code 示例代码
编辑接口
接口信息
名称不能为空
请填写接口名称
介绍不能为空
请填写接口介绍
地址不能为空
请填写完整路径,包含http协议头
参数不能为空
格式:参数名=参数值&参数名=参数值(用于在接口文档展示)
请求方式

请求参数
不能为空
请填写参数的介绍


返回参数
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍


状态代码




short_text 请求说明

请求地址  https://api.yujn.cn/api/dy_jx.php  

请求示例  https://api.yujn.cn/api/dy_jx.php?msg=https://v.douyin.com/irCXBD1U/

请求方式   GET

返回格式  JSON

short_text 返回示例
{
    "msg": "解析成功!💬️",
    "name": "脆啵啵大王",
    "title": "#卷毛 #infp",
    "aweme_id": 7402831605867334949,
    "video": "https://www.douyin.com/aweme/v1/play/?video_id=v0d00fg10000cqu234fog65scmj3s460",
    "play_video": "https://v5-hl-tc-ov.zjcdn.com/68d25d42bed73e5ab6725a70b41d86f5/68e81dce/video/tos/cn/tos-cn-ve-0015c800/oAsRG4NMIEExU5BACJmA8DDBvEt0NeofgAyFm9/?a=1128&ch=0&cr=0&dr=0&cd=0%7C0%7C0%7C0&cv=1&br=1329&bt=1329&cs=0&ds=3&ft=gGfir88-oLsD12NVbfah-UxWCtaOgF_O51Y&mime_type=video_mp4&qs=0&rc=PDo3OGY7NWg3NzpkNzVkZkBpMzc2cHY5cjc1dDMzNGkzM0A0YzAzL180XmAxL141M2AvYSMzcGdgMmRjMHJgLS1kLWFzcw%3D%3D&btag=80010e00088000&cquery=100y&dy_q=1760038841&feature_id=f0150a16a324336cda5d6dd0b69ed299&l=202510100340418587140308EFC237D231",
    "cover": "https://p26-sign.douyinpic.com/tos-cn-i-0813/o0AgLpEgN1AFaECJCk9dfvftAQDRACAI4ACmE8~tplv-dy-resize-walign-adapt-aq:540:q75.webp?lk3s=138a59ce&x-expires=1761246000&x-signature=zeytg%2BlyaF4IGWgDbD0PVO67Xzo%3D&from=327834062&s=PackSourceEnum_DOUYIN_REFLOW&se=false&sc=cover&biz_tag=aweme_video&l=20251010034040390B97DF7C983DEAF3CD",
    "images": [],
    "type": "视频",
    "tips": "遇见API api.yujn.cn"
}

short_text 请求参数
参数名称 是否必需 参数说明
msg 抖音链接
short_text 返回参数
参数名称 参数类型 参数说明
msg string 提示内容
name string 作者昵称
title string 标题
video string 视频
cover string 封面
images string 图集照片
type string 作品类型
tips string 版权

short_text 更新时间

更新时间  2024-08-18 13:01:08

系统状态

状态码 状态说明
400 请求错误
403 请求被服务器拒绝
404 请求服务器失败
500 服务器错误
503 服务器维护






PHP


GET方法

$url = 'https://api.yujn.cn/api/dy_jx.php';
$data = '?msg=https://v.douyin.com/irCXBD1U/';
$get = $url.$data;
$result = file_get_contents($get);
if ($result) {
  //成功
  echo $result;
} else {
  //失败
}

POST方法

$url = 'https://api.yujn.cn/api/dy_jx.php';
$data = array(
  'msg' => 'https://v.douyin.com/irCXBD1U/',
);
$data = http_build_query($data); $option = array('http'=>array('method'=>'POST','content'=>$data)); $context = stream_context_create($option); $result = file_get_contents($url,false,$context); if ($result) { //成功 echo $result; } else { //失败 }

JavaScript


GET方法

var url = "https://api.yujn.cn/api/dy_jx.php"
var data = "?msg=https://v.douyin.com/irCXBD1U/"
var xhrGet = new XMLHttpRequest();
xhrGet.open('GET', url + data, true);
xhrGet.send();
xhrGet.onreadystatechange = function() {
    if (xhrGet.readyState == 4 && xhrGet.status == 200) {
        //成功
        var result = xhrGet.responseText;
        console.log(result);
    } else {
        //失败
    }
};

POST方法

var url = "https://api.yujn.cn/api/dy_jx.php"
var data = "msg=https://v.douyin.com/irCXBD1U/"
var xhrPost = new XMLHttpRequest();
xhrPost.open('POST', url, true);
xhrPost.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhrPost.send(data);
xhrPost.onreadystatechange = function() {
    if (xhrPost.readyState == 4 && xhrPost.status == 200) {
        //成功
        var result = xhrPost.responseText;
        console.log(result);
    } else {
        //失败
    }
};

JAVA


GET方法

new Thread(){
  public void run() {
    String path = "https://api.yujn.cn/api/dy_jx.php";
    String data = "?msg=https://v.douyin.com/irCXBD1U/";      
     try {
        URL url = new URL(path + data);
        HttpURLConnection connection = (HttpURLConnection)url.openConnection();
        connection.setRequestMethod("GET");
        int code = connection.getResponseCode();
        if (code == 200) {
          //成功
          InputStreamReader isr = new InputStreamReader(connection.getInputStream());
          BufferedReader bufferedreader = new BufferedReader(isr);
          String string;
          StringBuilder stringbuilder = new StringBuilder();
            while ((string = bufferedreader.readLine()) != null) {
              stringbuilder.append(string);
            }
          final String result = stringbuilder.toString();
          System.out.println(result);
        } else {
          //失败
        }
	} catch (MalformedURLException e) {
        e.printStackTrace();
	} catch (IOException e) {
        e.printStackTrace();
	}
}}.start();

POST方法

new Thread(){
  public void run() {
    String path = "https://api.yujn.cn/api/dy_jx.php";
    String data = "msg=https://v.douyin.com/irCXBD1U/";
      try {
        URL url = new URL(path);
        HttpURLConnection connection = (HttpURLConnection)url.openConnection();
        connection.setRequestMethod("POST");          
        connection.setDoOutput(true);
        connection.getOutputStream().write(data.getBytes());
        int code = connection.getResponseCode();
        if (code == 200) {
          //成功
          InputStreamReader isr = new InputStreamReader(connection.getInputStream());
          BufferedReader bufferedreader = new BufferedReader(isr);
          String string;
          StringBuilder stringbuilder = new StringBuilder();
            while ((string = bufferedreader.readLine()) != null) {
            stringbuilder.append(string);
            }
          final String result = stringbuilder.toString();
          System.out.println(result);
        } else {
          //失败
        }
	} catch (MalformedURLException e) {
        e.printStackTrace();
	} catch (IOException e) {
        e.printStackTrace();
	}
}}.start();

Lua


GET方法

url="https://api.yujn.cn/api/dy_jx.php"
data=url.."?msg=https://v.douyin.com/irCXBD1U/"
Http.get(data,function(code,content,data)
  if code==200 then
    --成功
    print(content)
   else
    --失败
  end
end)

POST方法

url="https://api.yujn.cn/api/dy_jx.php"
data="msg=https://v.douyin.com/irCXBD1U/"
Http.post(url,data,function(code,content,data)
  if code==200 then
    --成功
    print(content)
   else
    --失败
  end
end)

结绳


GET方法

变量 网络GET操作 为 网络操作 = 创建 网络操作()
   变量 GET数据 为 文本型 = "?msg=https://v.douyin.com/irCXBD1U/"   
   网络GET操作.取网页源码("https://api.yujn.cn/api/dy_jx.php" + GET数据)
   事件 网络GET操作:取网页源码结束(结果 为 文本型,cookie 为 文本型)
      //成功
      调试输出(结果)
   结束 事件
   事件 网络GET操作:取网页源码失败(响应码 为 文本型)
      //失败
   结束 事件

POST方法

变量 网络POST操作 为 网络操作 = 创建 网络操作()
   变量 POST数据 为 文本型 = "msg=https://v.douyin.com/irCXBD1U/"
   网络POST操作.发送数据("https://api.yujn.cn/api/dy_jx.php",POST数据)
   事件 网络POST操作:发送数据结束(结果 为 文本型,cookie 为 文本型)
      //成功
      调试输出(结果)
   结束 事件
   事件 网络POST操作:发送数据失败(响应码 为 文本型)
      //失败
   结束 事件

iAPP


GET方法

s url="https://api.yujn.cn/api/dy_jx.php"
s data="?msg=https://v.douyin.com/irCXBD1U/"
ss(url+data,get)
t(){
  hs(get,result)
  f(result!=null){
    //成功
    syso(result)
  }else{
    //失败
  }
}

POST方法

s url="https://api.yujn.cn/api/dy_jx.php"
s data="msg=https://v.douyin.com/irCXBD1U/"
t(){
  hs(url,data,"utf-8",result)
  f(result!=null){
    //成功
    syso(result)
  }else{
    //失败
  }
}



接口反馈
反馈时间 反馈接口 反馈内容 反馈者IP