短视频去水印
支持解析23个短视频平台去水印

接口地址: http://125.64.3.73:6688/api/videodsp

返回格式: JSON

请求方式: GET

请求示例: http://125.64.3.73:6688/api/videodsp?url=https://v.douyin.com/YjtTqbr/

请求参数说明:

名称 必填 类型 说明
url string 短视频链接

返回参数说明:

名称 类型 说明

返回示例:

{
    "code": 200,
    "msg": "解析成功",
    "data": {
        "author": "Thurman猫一杯",
        "uid": "Thurman",
        "avatar": "https://p26.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_42dc40a2072b58d601ac2aca8eb5a2b7.jpeg?from=116350172",
        "like": 1094197,
        "time": 1648034409,
        "title": "在法国上英语课是种什么样的体验?",
        "cover": "https://p26-sign.douyinpic.com/tos-cn-p-0015/bf8e5e0b9ff7497a8a82c39040eb3794_1648034419~tplv-dy-360p.jpeg?x-expires=1663081200&x-signature=9vMmnQSDKM6aLIU1FebIFrQNd24%3D&from=3213915784&se=false&biz_tag=feed_cover&l=20220830234240010212036079161B9914",
        "url": "https://v95-zj.douyinvod.com/6df238fc42cb4fc597daed0d67dfbae5/630e3e4d/video/tos/cn/tos-cn-ve-15c001-alinc2/18751bff5f204887be5f6e87e0a672e8/?a=1128&ch=0&cr=0&dr=0&cd=0%7C0%7C0%7C0&cv=1&br=2634&bt=2634&cs=0&ds=3&ft=blh3-IQQqUuIf_oZmo0OW_EklpPixBGSHadS9eFJZIVRV12&mime_type=video_mp4&qs=0&rc=O2lmNTo4NmRpMzozZWk8ZUBpam53NDg6ZmRqOzMzNGkzM0AzLWMtNC80X2ExNjNeNC4uYSNgcXFicjRvMHFgLS1kLTBzcw%3D%3D&l=20220830234240010208073131401AB310&btag=80000",
        "music": {
            "author": "Thurman猫一杯",
            "avatar": "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_42dc40a2072b58d601ac2aca8eb5a2b7.jpeg?from=116350172",
            "url": "https://sf3-cdn-tos.douyinstatic.com/obj/ies-music/7078253934422379272.mp3"
        }
    }
}

请求参数设置:

参数名称 参数值


{
    "code": 200,
    "msg": "解析成功",
    "data": {
        "author": "Thurman猫一杯",
        "uid": "Thurman",
        "avatar": "https://p26.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_42dc40a2072b58d601ac2aca8eb5a2b7.jpeg?from=116350172",
        "like": 1094197,
        "time": 1648034409,
        "title": "在法国上英语课是种什么样的体验?",
        "cover": "https://p26-sign.douyinpic.com/tos-cn-p-0015/bf8e5e0b9ff7497a8a82c39040eb3794_1648034419~tplv-dy-360p.jpeg?x-expires=1663081200&x-signature=9vMmnQSDKM6aLIU1FebIFrQNd24%3D&from=3213915784&se=false&biz_tag=feed_cover&l=20220830234240010212036079161B9914",
        "url": "https://v95-zj.douyinvod.com/6df238fc42cb4fc597daed0d67dfbae5/630e3e4d/video/tos/cn/tos-cn-ve-15c001-alinc2/18751bff5f204887be5f6e87e0a672e8/?a=1128&ch=0&cr=0&dr=0&cd=0%7C0%7C0%7C0&cv=1&br=2634&bt=2634&cs=0&ds=3&ft=blh3-IQQqUuIf_oZmo0OW_EklpPixBGSHadS9eFJZIVRV12&mime_type=video_mp4&qs=0&rc=O2lmNTo4NmRpMzozZWk8ZUBpam53NDg6ZmRqOzMzNGkzM0AzLWMtNC80X2ExNjNeNC4uYSNgcXFicjRvMHFgLS1kLTBzcw%3D%3D&l=20220830234240010208073131401AB310&btag=80000",
        "music": {
            "author": "Thurman猫一杯",
            "avatar": "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_42dc40a2072b58d601ac2aca8eb5a2b7.jpeg?from=116350172",
            "url": "https://sf3-cdn-tos.douyinstatic.com/obj/ies-music/7078253934422379272.mp3"
        }
    }
}

错误码格式说明:

名称 类型 说明

代码示例:

<?php
header("Content-Type:text/json;charset=UTF-8");
$url = $_GET['url'];
$api = "http://125.64.3.73:6688/api/videodsp?url=" . $domain;
$url = XingJi($api);
echo $url;

function XingJi($url)
{
$ch = curl_init();
$timeout = 30;
$ua= $_SERVER['HTTP_USER_AGENT'];
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
$http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';
$urls = $http_type . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_REFERER,$urls);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-FORWARDED-FOR:'.$ip, 'CLIENT-IP:'.$ip));
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
$content = curl_exec($ch);
curl_close($ch);
return $content;
}
?>