If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.

Installation
The package is available at npmjs.com and it can be installed via npm by executing the following command:
npm install groupdocs-comparison-cloud

Requirements
Dependencies
The SDK requires the following packages:
| Package | Constraint |
|---|
| axios | ^1.16.1 |
| form-data | * |
| jsonwebtoken | 9.0.1 |
| qs | 6.15.2 |
Quick Start
Get your API credentials
To use GroupDocs.Comparison Cloud, sign up at GroupDocs.Cloud Dashboard and get your Client ID and Client Secret.
Initialize the API
Use the following code to start using the GroupDocs.Comparison Cloud SDK for Node.js.
"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const compareApi = comparison_cloud.CompareApi.fromConfig(config);
See the full example in RunExamples.js.
Compare two documents
Once initialized, use this basic example to compare two Word documents and save the result.
"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const compareApi = comparison_cloud.CompareApi.fromConfig(config);
(async () => {
let source = new comparison_cloud.FileInfo();
source.filePath = "source_files/word/source.docx";
let target = new comparison_cloud.FileInfo();
target.filePath = "target_files/word/target.docx";
let options = new comparison_cloud.ComparisonOptions();
options.sourceFile = source;
options.targetFiles = [target];
options.outputPath = "output/result.docx";
let request = new comparison_cloud.ComparisonsRequest(options);
let response = await compareApi.comparisons(request);
console.log("Output file link: " + response.href);
})();
See the full example in CompareDocuments.js.
Get the List of Changes
This example returns the changes between two Word documents.
"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const compareApi = comparison_cloud.CompareApi.fromConfig(config);
(async () => {
let source = new comparison_cloud.FileInfo();
source.filePath = "source_files/word/source.docx";
let target = new comparison_cloud.FileInfo();
target.filePath = "target_files/word/target.docx";
let options = new comparison_cloud.ComparisonOptions();
options.sourceFile = source;
options.targetFiles = [target];
options.outputPath = "output/result.docx";
let request = new comparison_cloud.PostChangesRequest(options);
let changes = await compareApi.postChanges(request);
console.log("Changes count: " + changes.length);
})();
See the full example in GetListOfChanges.js.
This example returns the page count of a source document.
"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const infoApi = comparison_cloud.InfoApi.fromConfig(config);
(async () => {
let fileInfo = new comparison_cloud.FileInfo();
fileInfo.filePath = "source_files/word/source.docx";
let request = new comparison_cloud.GetDocumentInfoRequest(fileInfo);
let response = await infoApi.getDocumentInfo(request);
console.log("GetDocumentInformation completed: " + response.pageCount);
})();
See the full example in GetDocumentInformation.js.
Retrieve the document formats the API can compare.
"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const infoApi = comparison_cloud.InfoApi.fromConfig(config);
(async () => {
let response = await infoApi.getSupportedFileFormats();
console.log("Formats count: " + response.formats.length);
})();
See the full example in GetSupportedFormats.js.
Examples on GitHub
The GroupDocs.Comparison Cloud Node.js Examples repository includes ready-to-run examples covering:
| Category | Examples |
|---|
| Basic Usage | Compare documents, compare PDF documents, document information, supported formats, preview, license consumption |
| Advanced Usage | Multiple documents, protected documents, sensitivity, change styles, list of changes, revisions, save options |
How to run the examples
- Clone or download the examples repository
- Edit
Examples/RunExamples.js and set your clientId and clientSecret - Go to the
Examples directory - Run
npm install - Run
npm update - Execute
npm run-script start
For more details, visit Getting Started.

Document Comparison API | Node.js Cloud API | GroupDocs.Comparison Cloud | REST API | Document Comparison | Folder Comparison | Revision Control | Track Changes | Preview Generation | Multi-format Support | Password Protected Documents | Source Code Comparison | Change Tracking | Customization | Document Merging | Change Coordinates | Metadata Extraction | Document Security | Document Review | Secure API Access | Cloud Storage Integration | Cross-platform API