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