pricing background

Node Js API Integration

api

Live

fetch("https://api.whoisfreaks.com/v2.0/dns/live?apiKey=API_KEY&domainName=whoisfreaks.com&ipAddress=8.8.8.8&type=all", {
  method: "GET",
})
  .then(res => res.text())
  .then(console.log)
  .catch(console.error);

Historical

fetch("https://api.whoisfreaks.com/v2.0/dns/historical?apiKey=API_KEY&domainName=whoisfreaks.com&type=all&page=1", {
  method: "GET",
})
  .then(res => res.text())
  .then(console.log)
  .catch(console.error);

Reverse

fetch("https://api.whoisfreaks.com/v2.1/dns/reverse?apiKey=API_KEY&format=json&value=8.8.8.8&type=a", {
  method: "GET",
})
  .then(res => res.text())
  .then(console.log)
  .catch(console.error);

Bulk DNS

fetch("https://api.whoisfreaks.com/v2.0/dns/bulk/live?apiKey=API_KEY&type=all&format=json", {
  method: "GET",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"domainNames": ["whoisfreaks.com","jfreaks.com"],"ipAddresses": ["1.1.1.1","8.8.8.8"]}),
})
  .then(res => res.text())
  .then(console.log)
  .catch(console.error);