How to Lookup EAN Barcode Value & Return Product Data with JavaScript

2 min readMay 23, 2022


To get details on a retail product, you can either scan its physical barcode or look up the barcode number instead. Our EAN Barcode Lookup API is a great tool for the latter option, instantly returning information about an EAN product with zero fuss.

Looking to incorporate this API into your app? Take advantage of ready-to-run code provided below to help structure your API call with JavaScript, or visit our API documentation page to find code snippets available in a variety of common programming languages. This API is free to use when you register a free account on our website (when you register your free account, you’ll receive an API key with a limit of 800 API calls per month and access to dozens of additional Cloudmersive APIs).

Let’s start with installing the jQuery library. Run the following command:

bower install jquery

After that, let’s add in the API call:

var settings = {
"url": "",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"data": {
"0": "<",
"1": "s",
"2": "t",
"3": "r",
"4": "i",
"5": "n",
"6": "g",
"7": ">"
$.ajax(settings).done(function (response) {

And that’s it — no more steps required. Check out our other Barcode APIs to outfit your app with multi-national product scanning and barcode generation capabilities.




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