十行代码获取抖音无水印视频地址

Videoparse(https://www.videoparse.cn) 提供视频去水印解析接口,下面代码中的appId和appSecret可以在开发者后台获得。

PHP代码实例如下:

//开发者后台生成的appid
$appId = ‘‘;

//开发者后台生成的appsecret
$appSecret = ‘‘;

//需要解析的url
$url = ‘‘;

$param = [
    ‘appid‘     => $appId,
    ‘appsecret‘ => $appSecret,
    ‘url‘       => $url,
];

//得到请求的地址:https://api-sv.videoparse.cn/api/video/normalParse?appid=2m3Ju99MPXrNtkgH&appsecret=bNG3JYjT83qp4cib&url=http%3A%2F%2Fv.douyin.com%2Fa2X5ab%2F
$apiUrl = ‘https://api-sv.videoparse.cn/api/video/normalParse?‘.http_build_query($param);
$videoInfo = file_get_contents($apiUrl);
print_r($videoInfo);

相关推荐