Unknown
Ir al canal en Telegram
1 066
Suscriptores
Sin datos24 horas
Sin datos7 días
Sin datos30 días
Archivo de publicaciones
1 066
<?php
header('Content-Type: application/json; charset=utf-8');
$crl = curl_init();
$headr = array();
$headr[] = 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36';
$headr[] = 'referer: https://downtik.com/';
$headr[] = 'origin: https://downtik.com';
curl_setopt($crl, CURLOPT_URL, "https://api.app.downtik.com/a.php");
curl_setopt($crl, CURLOPT_HTTPHEADER, $headr);
curl_setopt($crl, CURLOPT_POST, true);
curl_setopt($crl, CURLOPT_POSTFIELDS, array('url'=>$_GET['URL'],'lang'=>"en"));
curl_setopt($crl, CURLOPT_RETURNTRANSFER, true);
$rest = curl_exec($crl);
preg_match_all('/<img src="(.*?)" class="" alt="">/',$rest,$photo);
$photo = $photo[1][0];
preg_match_all('/<a href="(.*?)" class="text-center text-lg-start abutton">/',$rest,$url);
$url = ['srv1'=>$url[1][0],'srv2'=>$url[1][1]];
preg_match_all('/<h3 class="title-video">(.*?)<\/h3>/',$rest,$auther);
$auther = $auther[1][0];
preg_match_all('/<p class="exp-video">(.*?)<\/p>/',$rest,$title);
$title = $title[1][0];
$json = [];
$json['ok'] = true;
$json['result']['title'] = $title;
$json['result']['thumb'] = $photo;
$json['result']['auther'] = $auther;
$json['result']['url'] = $url;
$json['dev'] = "https://t.me/PPooP";
if($_GET['URL']){
echo json_encode($json,JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
}else{
echo "null";
}
# ياسين19 abr 2022, 05:39
