-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgoogle_javascript.js
More file actions
28 lines (22 loc) · 925 Bytes
/
Copy pathgoogle_javascript.js
File metadata and controls
28 lines (22 loc) · 925 Bytes
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
const data = JSON.stringify({
input: "test@gmail.com"
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
// Primary (Recommended): OSINT Trace Direct API
xhr.open('POST', 'https://api.osinttrace.com/v1/check/google');
xhr.setRequestHeader('x-osint-key', 'YOUR_OSINT_KEY');
xhr.setRequestHeader('Content-Type', 'application/json');
// Alternative (API.Market):
// xhr.open('POST', 'https://prod.api.market/api/v1/osint-trace-1/google-checker/check/google');
// xhr.setRequestHeader('X-Api-Key', 'YOUR_API_KEY');
// Alternative (RapidAPI):
// xhr.open('POST', 'https://google-checker2.p.rapidapi.com/check');
// xhr.setRequestHeader('x-rapidapi-key', 'YOUR_RAPIDAPI_KEY');
// xhr.setRequestHeader('x-rapidapi-host', 'google-checker2.p.rapidapi.com');
xhr.send(data);