How to Identify IP Address Intelligence in Node.JS

2 min readJan 11, 2021


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.

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;
// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = 'YOUR API KEY';
var apiInstance = new CloudmersiveValidateApiClient.IPAddressApi();var value = "value_example"; // String | IP address to process, e.g. \"\". The input is a string so be sure to enclose it in double-quotes.var callback = function(error, data, response) {
if (error) {
} else {
console.log('API called successfully. Returned data: ' + data);
apiInstance.iPAddressIpIntelligence(value, callback);

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.