fetch("https://api.whoisfreaks.com/v1.0/geolocation?apiKey=API_KEY&ip=8.8.8.8", {
method: "GET",
})
.then(res => res.text())
.then(console.log)
.catch(console.error);fetch("https://api.whoisfreaks.com/v1.0/geolocation?apiKey=API_KEY", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({"ips":["1.1.1.1","2.2.2.2","8.8.8.8"]}),
})
.then(res => res.text())
.then(console.log)
.catch(console.error);