Lookup an EAN Barcode with Node.JS

1 min readDec 21, 2020


If you have an EAN barcode that cannot be scanned for some reason, it is useful to have a backup method for finding an item based on its barcode. The following API will allow you to look up an EAN barcode using Node.JS. The only input necessary for this function is the EAN barcode value.

Run this command to install the SDK:

npm install cloudmersive-barcodeapi-client --save

Or add this snippet to your package.json:

"dependencies": {
"cloudmersive-barcodeapi-client": "^1.1.2"

Then, call the function:

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

This will return whether the lookup was successful, the EAN string, and the item title. You can retrieve the API Key from the Cloudmersive website at no cost and with no commitment. This will provide you with 800 monthly calls across our library of APIs.




There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Recommended from Medium