How to Identify IP Address Intelligence in Node.JS

Are you looking for ways to better understand your client base? If so, gathering key intelligence about their IP addresses is a great first step. Every computer we interact with online has an IP address that provides the geolocation of each user, and that’s valuable information when targeting your products. However, we must also be aware of the possibility that an IP address could be a threat in disguise. The following API can be used to provide not only the location of the IP address, but also to identify if it’s a known threat IP, known bot, or Tor exit node.

Image for post
Image for post

To run this API, install the SDK:

npm install cloudmersive-validate-api-client –save

Or, add this snippet to your package.json:

  "dependencies": {
"cloudmersive-validate-api-client": "^1.2.4"

Then, we are going to instance our API using a key, and call the function:

var CloudmersiveValidateApiClient = require('cloudmersive-validate-api-client');
var defaultClient = CloudmersiveValidateApiClient.ApiClient.instance;

The returned result will reflect the location of the IP and a definite decision on whether the IP is safe to interact with. This process can be repeated for any IP address you input in the code. Head to the Cloudmersive website to retrieve your API key and unlock access to 800 calls/month.

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store