pricing background

Node Js API Integration

api

Geolocation Lookup

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);

Bulk Geolocation Lookup

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);