<?php
/*
منبع این سورس کانال @MahdyBots نمیباشد
منبع در خروجی ذکر شده است
در صورت بروز مشکل میتوانید به پیوی نویسنده مراجعه کنید
*/
$User = $_GET['User'];
function Info($User){
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://storiesig.info/api/ig/profile/'.$User);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');

curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');

$headers = array();
$headers[] = 'Authority: storiesig.info';
$headers[] = 'Sec-Ch-Ua: ^^';
$headers[] = 'Accept: application/json, text/plain, */*';
$headers[] = 'X-Xsrf-Token: eyJpdiI6IitsTkxVS09tcUxKU1JJRnk3bTRPQXc9PSIsInZhbHVlIjoiQTBoVnVJdjdKOUM3YW4yWFJ3SkczbXNmb0VPS2F4MXN5UFwvNUZFWVFWbmVLN2R3UTIyQ1BlNVFPdk5FZlpcL0Z3d0xDTHY5eUFoZWxtZGZHZ2ttVzdDYjA2VGN5aG8zblZ2eWNZSW9MZlJjZitxbFBvVEVFMzgwOWk3Y2RSWDhjSyIsIm1hYyI6IjQ2MTE3NWRlNzFmNGEwMWVlNjZkNjE0MDMyNzQ4OGI2NWYzYjA2MjQ1MzI0ZTI3OWM4ZGI2MTM0YWVkNmNhNTkifQ==';
$headers[] = 'X-Token: null';
$headers[] = 'Sec-Ch-Ua-Mobile: ?0';
$headers[] = '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';
$headers[] = 'Sec-Ch-Ua-Platform: ^^Windows^^\"\"';
$headers[] = 'Sec-Fetch-Site: same-origin';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Referer: https://storiesig.info/en/';
$headers[] = 'Accept-Language: en-US,en;q=0.9,fa;q=0.8';
$headers[] = 'Cookie: XSRF-TOKEN=eyJpdiI6IitsTkxVS09tcUxKU1JJRnk3bTRPQXc9PSIsInZhbHVlIjoiQTBoVnVJdjdKOUM3YW4yWFJ3SkczbXNmb0VPS2F4MXN5UFwvNUZFWVFWbmVLN2R3UTIyQ1BlNVFPdk5FZlpcL0Z3d0xDTHY5eUFoZWxtZGZHZ2ttVzdDYjA2VGN5aG8zblZ2eWNZSW9MZlJjZitxbFBvVEVFMzgwOWk3Y2RSWDhjSyIsIm1hYyI6IjQ2MTE3NWRlNzFmNGEwMWVlNjZkNjE0MDMyNzQ4OGI2NWYzYjA2MjQ1MzI0ZTI3OWM4ZGI2MTM0YWVkNmNhNTkifQ^%^3D^%^3D; aig_session=eyJpdiI6ImJ3elJ1OUx2Y2VQRU50OVdwQ0xGMnc9PSIsInZhbHVlIjoiWHVIQUlGZEYxeitpMUM4ZFB0ZFE1aEk1Rjh0aDBIUVE5Snhta2pxRHVBbUllUlpWTkY3RFRHeFJhWFExYjhHSjVpRTlQcE1KQWNMdm5JMjFHdXRyMWF0TDRDT1ZXT3lZXC83dmNsYzh3U1l1c3dLOUNxUnhWVUhSbE5LeGNpZGtRIiwibWFjIjoiODMxNjgwNDk3YjZmYzQ3NGJjZTU5ZGI2MTE1NjYyNjMwNmU2ZjBkNzQ4YjU2ZDY4YmQ4NmJjOTlmMDYzYTdhMiJ9; _ga=GA1.2.960632246.1640965380; _gid=GA1.2.575823392.1640965380; __gads=ID=1d66574d3e167173-22ed5e3113cd00d2:T=1640965381:RT=1640965381:S=ALNI_MbjYEguAA_ASe2dQckzFEkK5CG_FA; _gat=1';
$headers[] = 'If-None-Match: W/^^2c0-AALqp0idUyd0BPxAmTT2lIBiKi8^^\"\"';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}else{
    $x = $result;
}
curl_close($ch);
return $x;
}
if ($User != null and $User != '') {
    echo Info($User);
}
?>