Recent blog posts

Google category IDs now in API results

Introducing Our MCP Server for AI Integration

DeepSeek AI text generation with product data

New API Call: Similar-Product-Search

Doing GTIN Lookup in JavaScript

Using the EAN-Search API with ChatGPT

Why are some EAN numbers "invalid"?

Python, PHP and Go libraries updated

How do GTIN, EAN & UPC codes relate?

Using VBA to look up EAN barcodes

Product names in different languages

How to search for product categories

Introducing the GraphQL API (Beta)

EAN Prefix Search

EAN prefix 2 and 8-digit EANs

Hidden gems: Prefix search in our API

08 April 2022

When you have an account, you get access to our API, that allows you more flexible searching than the website. With the API, you can not only search for an EAN code and get the product or search for a name and get the EAN, you can also search for only the start (the "prefix") of the barcodes.

So let's say you have the imaginary EAN code 4567891234567 and you suspect the same manufacturer makes other interesting products. Since most large manufacturers register a large range of EAN codes at the same time, you could use the API call barcode-prefix-search and see if we have any other EAN codes that start with 4567891234xxx (using the prefix parameter) and more often than you think, you will find related products.

The API will return a list of all matches and if there are many, you can use the additional page parameter to page through all of them.

The API requires that you specify at least the first 4 digits, but that will yield a huge number of results, so better start with a much longer prefix, like in the example above.


What is special about EAN prefix 2 and 8-digit EAN codes? >


/ / / / / / /
   Login / Register