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


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

Get started now!