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.1.2"
  }

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.1.4"
  }

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 imageBytes = fs.readFileSync('C:\\temp\\input.jpg');

 var callback = function (error, data, response) {
     if (error) {
         console.error(error);
         res.end('Error\n');
     } else {
         console.log('API called successfully.');

         res.writeHead(200, { 'Content-Type': 'image/png' });
         res.end(data, 'binary');

         //res.end(data);
     }
 };
 
 api.faceCropFirst( Buffer.from(imageBytes.buffer), callback);


Sample Application

Download Sample

You can also download our sample application from GitHub.

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.2.7"
  }

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 = fs.readFileSync("C:\\temp\\input.docx"); // {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(Buffer.from(inputFile.buffer), 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.1.2"
  }

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.1.3"
  }

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 = fs.readFileSync("C:\\temp\\page.png"); // {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(Buffer.from(pageBytes.buffer), 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.1.2"
  }

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.1.2"
  }

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 = fs.readFileSync("C:\\temp\\input.docx");
 
 
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};

api.scanFile(Buffer.from(inputFile.buffer), callback);


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

Get started now!