Javascript (Browser) Client - Validate API

Step 1 - Add a script tag to import the client:

Add this script tag between the <head>...</head> tags of your page, or elsewhere in your HTML file:

<script src="https://cdn.cloudmersive.com/jsclient/cloudmersive-validate-client.js"></script>

Or download the file and save it locally (our Apache 2.0 Client License permits you to redistribute the client files)


Step 2 - Create an API Client object with API Key

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);




Javascript (Browser) Client - Image API

Step 1 - Add a script tag to import the client:

Add this script tag between the <head>...</head> tags of your page, or elsewhere in your HTML file:

<script src="https://cdn.cloudmersive.com/jsclient/cloudmersive-image-client.js"></script>

Or download the file and save it locally (our Apache 2.0 Client License permits you to redistribute the client files)


Step 2 - Create an API Client object with API Key

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);




Javascript (Browser) Client - Data Integration API

Step 1 - Add a script tag to import the client:

Add this script tag between the <head>...</head> tags of your page, or elsewhere in your HTML file:

<script src="https://cdn.cloudmersive.com/jsclient/cloudmersive-dataintegration-client.js"></script>

Or download the file and save it locally (our Apache 2.0 Client License permits you to redistribute the client files)


Step 2 - Create an API Client object with API Key

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

var CloudmersiveDataintegrationApiClient = require('cloudmersive-dataintegration-api-client');
var defaultClient = CloudmersiveDataintegrationApiClient.ApiClient.instance;

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



var apiInstance = new CloudmersiveDataintegrationApiClient.BackupConvertApi();

var opts = { 
	'tableName': "tableName_example", // String | Name of the table to return
	'inputFile': Buffer.from(fs.readFileSync("C:\\temp\\inputfile").buffer) // 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);
	}
};
apiInstance.dataintegrationBackupConvertMssqlBakToCsvPost(opts, callback);




Javascript (Browser) Client - Convert API

Step 1 - Add a script tag to import the client:

Add this script tag between the <head>...</head> tags of your page, or elsewhere in your HTML file:

<script src="https://cdn.cloudmersive.com/jsclient/cloudmersive-document-convert-client.js"></script>

Or download the file and save it locally (our Apache 2.0 Client License permits you to redistribute the client files)


Step 2 - Create an API Client object with API Key

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);


Javascript (Browser) Client - Natural Language Processing (NLP) API

Step 1 - Add a script tag to import the client:

Add this script tag between the <head>...</head> tags of your page, or elsewhere in your HTML file:

<script src="https://cdn.cloudmersive.com/jsclient/cloudmersive-nlp-client.js"></script>

Or download the file and save it locally (our Apache 2.0 Client License permits you to redistribute the client files)


Step 2 - Create an API Client object with API Key

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);


Javascript (Browser) Client - Optical Character Recognition (OCR) API

Step 1 - Add a script tag to import the client:

Add this script tag between the <head>...</head> tags of your page, or elsewhere in your HTML file:

<script src="https://cdn.cloudmersive.com/jsclient/cloudmersive-ocr-client.js"></script>

Or download the file and save it locally (our Apache 2.0 Client License permits you to redistribute the client files)


Step 2 - Create an API Client object with API Key

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);
 


Javascript (Browser) Client - Barcode API

Step 1 - Add a script tag to import the client:

Add this script tag between the <head>...</head> tags of your page, or elsewhere in your HTML file:

<script src="https://cdn.cloudmersive.com/jsclient/cloudmersive-barcode-client.js"></script>

Or download the file and save it locally (our Apache 2.0 Client License permits you to redistribute the client files)


Step 2 - Create an API Client object with API Key

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);


Javascript (Browser) Client - Video API

Step 1 - Add a script tag to import the client:

Add this script tag between the <head>...</head> tags of your page, or elsewhere in your HTML file:

<script src="https://cdn.cloudmersive.com/jsclient/cloudmersive-video-client.js"></script>

Or download the file and save it locally (our Apache 2.0 Client License permits you to redistribute the client files)


Step 2 - Create an API Client object with API Key

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

var defaultClient = CloudmersiveVideoApiClient.ApiClient.instance;

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



var apiInstance = new CloudmersiveVideoApiClient.VideoApi();

var inputFile = Buffer.from(fs.readFileSync("C:\\temp\\inputfile").buffer); // File | Input file to perform the operation on.

var opts = { 
	'fileUrl': "fileUrl_example", // String | Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
	'maxWidth': 56, // Number | Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
	'maxHeight': 56, // Number | Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
	'preserveAspectRatio': true, // Boolean | Optional; If false, the original video's aspect ratio will not be preserved, allowing customization of the aspect ratio using maxWidth and maxHeight, potentially skewing the video. Default is true.
	'frameRate': 56, // Number | Optional; Specify the frame rate of the output video. Defaults to original video frame rate.
	'quality': 56, // Number | Optional; Specify the quality of the output video, where 100 is lossless and 1 is the lowest possible quality with highest compression. Default is 50.
	'extendProcessingTime': true // Boolean | Optional; If true, will allow additional processing time for the video file conversion, using one API call per additional minute over the 5 minute default processing time, up to a maximum of 25 total minutes. This is generally necessary for files larger than 500 MB or longer than 30 minutes.
};

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


Javascript (Browser) Client - Virus Scan API

Step 1 - Add a script tag to import the client:

Add this script tag between the <head>...</head> tags of your page, or elsewhere in your HTML file:

<script src="https://cdn.cloudmersive.com/jsclient/cloudmersive-virus-client.js"></script>

Or download the file and save it locally (our Apache 2.0 Client License permits you to redistribute the client files)


Step 2 - Create an API Client object with API Key

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);


800 free API calls/month, no credit card required

Get started now!