IP Vigilante

IP Vigilante

Geocoding

IP Vigilante provides a free geographical IP locator API, so the developers can obtain geographical information of an IP in various formats: JSON and CSV.

Visit API🔁 Alternatives

📚 Documentation & Examples

Everything you need to integrate with IP Vigilante

🚀 Quick Start Examples

IP Vigilante Javascript Examplejavascript
// IP Vigilante API Example
const response = await fetch('https://www.ipvigilante.com/', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

Introduction to IP Vigilante API

IP Vigilante is a powerful, public API that helps to secure your web applications and websites from potential cyber threats. It offers various endpoints to lookup a visitors' IP address, validate email addresses, and check if an IP has been recorded as spam or not. IP Vigilante API provides both JSON and XML output formats.

In this blog post, we will discuss the various endpoints provided by the IP Vigilante API along with some JavaScript code examples.

IP Lookup Endpoint

The IP lookup endpoint is used to retrieve information about any IP address. This endpoint returns the country, region, city, time zone, latitude, longitude, and ISP of the IP address.

JavaScript API example
const apiUrl = `https://ipvigilante.com/json/${ipAddress}`;

fetch(apiUrl)
  .then(response => response.json())
  .then(data => {
    console.log(data);
  })
  .catch(error => {
    console.error(error);
  });

Email Validation Endpoint

The Email Validation endpoint allows you to verify an email address. It returns a boolean status along with a message describing the validation result.

JavaScript API example
const apiUrl = `https://ipvigilante.com/api/email-validate/?email=${emailAddress}`;

fetch(apiUrl)
  .then(response => response.json())
  .then(data => {
    console.log(data);
  })
  .catch(error => {
    console.error(error);
  });

Spam IP Check Endpoint

The Spam IP Check endpoint checks if an IP address has been marked as spam. A JSON message containing a 'status' value is returned, indicating whether the IP address is spam or not.

JavaScript API example
const apiUrl = `https://ipvigilante.com/api/spam-filter/${ipAddress}`;

fetch(apiUrl)
  .then(response => response.json())
  .then(data => {
    console.log(data);
  })
  .catch(error => {
    console.error(error);
  });

Conclusion

The IP Vigilante API provides developers with a powerful way to protect their web applications and websites from potential threats. This API is easy to use, and with our JavaScript code examples, you can easily integrate it into your applications. Head over to their website to learn more about their API.

📊 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Sep 30Oct 2Oct 4Oct 6Oct 8Oct 10Oct 12Oct 14Oct 16Oct 18Oct 20Oct 22Oct 24Oct 26Oct 2904008001440Minutes
Online
Offline

Related APIs in Geocoding