fetch("https://api.whoisfreaks.com/v1.0/whois?apiKey=API_KEY&whois=live&domainName=google.com", {
method: "GET",
})
.then(res => res.text())
.then(console.log)
.catch(console.error);fetch("https://api.whoisfreaks.com/v1.0/whois?apiKey=API_KEY&whois=historical&domainName=google.com", {
method: "GET",
})
.then(res => res.text())
.then(console.log)
.catch(console.error);fetch("https://api.whoisfreaks.com/v1.0/whois?apiKey=API_KEY&whois=reverse&keyword=youtube", {
method: "GET",
})
.then(res => res.text())
.then(console.log)
.catch(console.error);fetch("https://api.whoisfreaks.com/v1.0/bulkwhois?apiKey=API_KEY", {
method: "GET",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({"domainNames": ["amazon.ch","google.com","whoisfreaks.com","nic.dev","news.si"]}),
})
.then(res => res.text())
.then(console.log)
.catch(console.error);