3 026
مشترکین
-524 ساعت
-237 روز
-8630 روز
آرشیو پست ها
3 026
<?php
error_reporting(0);
header('Content-Type: application/json');
$url = $_GET['vid'];
function ajax($link)
{
$curl = curl_init();
$config = array(
CURLOPT_URL => "https://api.tikmate.app/api/lookup",
CURLOPT_HTTPHEADER => array(
'origin: https://tikmate.app',
'referer: https://tikmate.app/',
'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36'
),
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => 'url=' . $link
);
curl_setopt_array($curl, $config);
$result = curl_exec($curl);
curl_close($curl);
return $result;
}
$modes = json_decode(ajax($url), true);
$response = array('ok'=> false, 'descrption'=> 'Missing a vaild url');
if( $url ) {
if(strpos($url, 'tiktok.com') !== false ) {
if( $modes ) {
$response = array(
'ok'=> true,
'result' => [
'like'=> $modes['like_count'],
'comment'=> $modes['comment_count'],
'share'=> $modes['share_count'],
'created'=> $modes['create_time'],
'url'=> 'https://tikmate.app/download/' . $modes['token'] . '/' . $modes['id'] . '.mp4'
]
);
}
}
else
{
$response = array('ok'=> false, 'descrption'=> 'invaild tiktok url');
}
}
$response['source'] = 0;
echo json_encode($response, JSON_PRETTY_PRINT);
ايبي تحميل تيك توك.3 026
<?php
error_reporting(0);
header('Content-Type: application/json');
$link = $_GET['url'];
$headers = array();
$headers[] = 'origin: https://www.getfvid.com';
$headers[] = 'referer: https://www.getfvid.com/';
$headers[] = 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36';
function index($POSTFIELDS, $HTTPHEADER)
{
$curl = curl_init();
$config = array(
CURLOPT_URL => "https://www.getfvid.com/downloader",
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => $HTTPHEADER,
CURLOPT_POSTFIELDS => array(
'url'=> $POSTFIELDS
)
);
curl_setopt_array($curl, $config);
$response = curl_exec($curl);
curl_close($curl);
preg_match_all('/(<input type="hidden" id="title_video" value="(.*?)">)|(<a href="(.*?)" target="_blank" class="btn btn-download" rel="nofollow" download>Download in <strong>HD<\/strong>)/', $response, $matches);
return $matches;
}
$result = array('ok'=> false, 'error'=> 'invalid method');
if($_GET){
if(strpos($link, 'facebook.com') !== false ){
$get = index($link, $headers);
$result = array(
'ok'=> true,
'result'=> [
'title'=> $get[2][0],
'link'=> $get[4][1]
]
);
}else{
$result = array(
'ok'=> false,
'error'=> 'invalid url'
);
}
}
$result['source'] = 'https://t.me/WWW99W';
echo json_encode($result);
ايبي تحميل من المواقع