-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgoogle_php.php
More file actions
36 lines (31 loc) · 1 KB
/
Copy pathgoogle_php.php
File metadata and controls
36 lines (31 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
$curl = curl_init();
curl_setopt_array($curl, [
// Primary (Recommended): OSINT Trace Direct API
CURLOPT_URL => "https://api.osinttrace.com/v1/check/google",
// Alternative (API.Market): "https://prod.api.market/api/v1/osint-trace-1/google-checker/check/google"
// Alternative (RapidAPI): "https://google-checker2.p.rapidapi.com/check"
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'input' => 'test@gmail.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-osint-key: YOUR_OSINT_KEY"
// Alternative API.Market: "X-Api-Key: YOUR_API_KEY"
// Alternative RapidAPI: "x-rapidapi-host: google-checker2.p.rapidapi.com", "x-rapidapi-key: YOUR_RAPIDAPI_KEY"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}