Node.JS Client - Validate API

Step 1 - Add the Client with the NPM Package Manager

Add the Node client to your package.json:

  "dependencies": {
    "cloudmersive-validate-api-client": "^1.0.8"
  }

Or install it using npm install:

npm install cloudmersive-validate-api-client --save

Step 2 - Create an API Client object with API Key

Import the API Client package by adding this line to the top of your .js file:

var CloudmersiveValidateApiClient = require('cloudmersive-validate-api-client');
 

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

var defaultClient = CloudmersiveValidateApiClient.ApiClient.instance;

// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = "YOUR_API_KEY_HERE"

var api = new CloudmersiveValidateApiClient.DomainApi()

var domain = "cloudmersive.com"; // {String} Domain name to check, for example \"cloudmersive.com\".  The input is a string so be sure to enclose it in double-quotes.


var callback = function (error, data, response) {
    if (error) {
        console.error(error);
    } else {
        console.log('API called successfully. Returned data: ' + data);
    }
};

api.domainCheck(domain, callback);


Sample Application

Download Sample

You can also download our sample application from GitHub.

Node.JS Client - Image API

Step 1 - Add the Client with the NPM Package Manager

Add the Node client to your package.json:

  "dependencies": {
    "cloudmersive-image-api-client": "^1.0.8"
  }

Or install it using npm install:

npm install cloudmersive-image-api-client --save

Step 2 - Create an API Client object with API Key

Import the API Client package by adding this line to the top of your .js file:

var CloudmersiveImageApiClient = require('cloudmersive-image-api-client');
 

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

var defaultClient = CloudmersiveImageApiClient.ApiClient.instance;
 
// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = "YOUR API KEY"
 
var api = new CloudmersiveImageApiClient.FaceApi()
 
var imageFile = "/path/to/file.txt"; // {File} Image file to perform the operation on.  Common file formats such as PNG, JPEG are supported.
 
 
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.faceCropFirst(imageFile, callback);


Node.JS Client - Convert API

Step 1 - Add the Client with the NPM Package Manager

Add the Node client to your package.json:

  "dependencies": {
    "cloudmersive-convert-api-client": "^1.0.8"
  }

Or install it using npm install:

npm install cloudmersive-convert-api-client --save

Step 2 - Create an API Client object with API Key

Import the API Client package by adding this line to the top of your .js file:

var CloudmersiveConvertApiClient = require('cloudmersive-convert-api-client');
 

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

var defaultClient = CloudmersiveConvertApiClient.ApiClient.instance;
 
// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = "YOUR API KEY"
 
var api = new CloudmersiveConvertApiClient.ConvertDataApi()
 
var inputFile = "/path/to/file.txt"; // {File} Input file to perform the operation on.
 
 
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.convertDataCsvToJson(inputFile, callback);


Node.JS Client - Natural Language Processing (NLP) API

Step 1 - Add the Client with the NPM Package Manager

Add the Node client to your package.json:

  "dependencies": {
    "cloudmersive-nlp-api-client": "^1.0.9"
  }

Or install it using npm install:

npm install cloudmersive-nlp-api-client --save

Step 2 - Create an API Client object with API Key

Import the API Client package by adding this line to the top of your .js file:

var CloudmersiveNlpApiClient = require('cloudmersive-nlp-api-client');
 

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

var defaultClient = CloudmersiveNlpApiClient.ApiClient.instance;

// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = "YOUR API KEY"

var api = new CloudmersiveNlpApiClient.ExtractEntitiesStringApi()

var value = "value_example"; // {String} Input string


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.extractEntitiesStringPost(value, callback);


Node.JS Client - Optical Character Recognition (OCR) API

Step 1 - Add the Client with the NPM Package Manager

Add the Node client to your package.json:

  "dependencies": {
    "cloudmersive-ocr-api-client": "^1.0.8"
  }

Or install it using npm install:

npm install cloudmersive-ocr-api-client --save

Step 2 - Create an API Client object with API Key

Import the API Client package by adding this line to the top of your .js file:

var CloudmersiveOcrApiClient = require('cloudmersive-ocr-api-client');
 

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

var defaultClient = CloudmersiveOcrApiClient.ApiClient.instance;
 
// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = "YOUR API KEY"
 
var api = new CloudmersiveOcrApiClient.ImageOcrApi()
 
var imageFile = "/path/to/file.txt"; // {File} Image file to perform OCR on.  Common file formats such as PNG, JPEG are supported.
 
 
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.imageOcrPost(imageFile, callback);
 


Node.JS Client - Barcode API

Step 1 - Add the Client with the NPM Package Manager

Add the Node client to your package.json:

  "dependencies": {
    "cloudmersive-barcodeapi-client": "^1.0.8"
  }

Or install it using npm install:

npm install cloudmersive-barcodeapi-client --save

Step 2 - Create an API Client object with API Key

Import the API Client package by adding this line to the top of your .js file:

var CloudmersiveBarcodeapiClient = require('cloudmersive-barcodeapi-client');
 

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

var defaultClient = CloudmersiveBarcodeapiClient.ApiClient.instance;
 
// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = "YOUR API KEY"
 
var api = new CloudmersiveBarcodeapiClient.BarcodeLookupApi()
 
var value = "value_example"; // {String} Barcode value
 
 
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.barcodeLookupEanLookup(value, callback);


Node.JS Client - Virus Scan API

Step 1 - Add the Client with the NPM Package Manager

Add the Node client to your package.json:

  "dependencies": {
    "cloudmersive-virus-api-client": "^1.0.8"
  }

Or install it using npm install:

npm install cloudmersive-virus-api-client --save

Step 2 - Create an API Client object with API Key

Import the API Client package by adding this line to the top of your .js file:

var CloudmersiveVirusApiClient = require('cloudmersive-virus-api-client');
 

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

var defaultClient = CloudmersiveVirusApiClient.ApiClient.instance;
 
// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = "YOUR API KEY"
 
var api = new CloudmersiveVirusApiClient.ScanApi()
 
var inputFile = "/path/to/file.txt"; // {File} Input file to perform the operation on.
 
 
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.scanFile(inputFile, callback);


50,000 free API calls/month, no credit card required

Get started now!