Dataset Viewer

The dataset viewer should be available soon. Please retry later.

EAN product dataset

Barcode to product name, description, product image, retailer and safety data sheet link, harvested from Danish web shops. Product text is in Danish.

from datasets import load_dataset
p = load_dataset("EAN-data/ean-product-dataset", "products")["train"]
b = load_dataset("EAN-data/ean-product-dataset", "images")["train"]
b[0]["image"]        # a PIL image, not a URL

About the images

The images are stored as bytes under images/, not as links. A URL is a promise: the retailer can change CDN tomorrow, and the dataset would be empty without looking empty.

The originals, untouched. Every image is stored byte for byte as the retailer sent it — same format, same resolution. We do not re-encode and we do not downscale: both are irreversible, and if a model is later to read the label text, a downscaled JPEG is too little. The format column says what the row actually is (jpg, png, webp, avif, gif).

Pillow is opened ONLY to decide whether the file is an image at all, and if so which kind — the content decides the format, not Content-Type. The file name is the sha256 of the content, so two shops with the same photo cost one file.

There are up to three images per item: a photo from the front says something different from one of the back with the hazard pictograms. Join on ean — there are several rows per item.

AVIF needs pip install pillow-avif-plugin to be decoded.

placeholder: true means the same image file appears on at least 25 different items — then it is the shop's "image to follow" icon, not a product photo. They are labelled, not removed: a silent filter is a claim nobody can check.

Join the two on ean. image_sha256 in products points at one of the item's images (the most recently fetched) — use the images configuration when you want them all.

field count
products 1268016
with description 988976
with image url 1121099
with fetched image 1017911
with safety data sheet 36472
assessed chemical 60820
assessed not chemical 1206795
not assessed 401
retailers 159

About is_chemical

true / false / null. null means not assessed — which is not the same as "not hazardous". The assessment is made in a separate step from the product name; products not yet reached are null.

About ean

Every EAN is verified with its check digit. A number is only counted when it appears labelled as EAN/GTIN/barcode on the page — a loose 13-digit number is just as often a phone number or a form placeholder.

Provenance and rights

The content was fetched from retailers' public product pages between 2026 and today; source and product_url record where each row came from, and harvested_at when.

The dataset is published as-is for research and for building tools that help people sort chemical waste correctly. Product names, descriptions and photographs remain the property of the respective retailers and manufacturers; we claim no rights over them. If you are a rights holder and want a row or an image removed, open a discussion on this repository and it will be removed.

Downloads last month
792