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