Why not all products are found using a barcode scanner - and where our data comes from

Matthias Schmid
July 19, 2021
In this article, we give you a look behind the scenes at how we process barcodes and where our product data comes from.
How does a barcode work?
A barcode, also known as a stripe code, is a machine-readable identification number. It makes products identifiable for commercial use and retail - ideally unique on a global scale.
The first barcode (Universal Product Code, abbreviated UPC) was introduced in 1973 in the USA. The commonly used UPC-A in the USA consists of 12 digits. It quickly becomes apparent that, aside from the country and the manufacturing company, not much information is contained within those 12 digits.
An EAN13 barcode - the machine-readable part on top, below the encoded 13-digit identification number. No more information is contained directly in the barcode. By VaGla - own work created in Inkscape based on the graphics by Grzexs, CC BY-SA 3.0
In Europe, three years later in 1976, the European Article Number (abbreviated EAN) was introduced. It is 13 digits long and compatible with the UPC system.
Identification scheme since 2015
Since 2015, the identification numbers used worldwide in commerce have been renamed to Global Trade Item Number (GTIN). It is 8, 12, 13, or 14 digits long and always contains a check digit to detect errors during machine reading.
How does one access the product data?
GS1 Germany GmbH based in Cologne is the only official provider of EAN8/EAN13 codes in Germany. Anyone who wants to sell a product with a barcode must purchase a unique barcode from there.
Up to 30 barcodes can be retrieved for free per day from there - however, without all the relevant sizes that are of interest for the storage of food. For example, the product name, the package size, and the nutritional values are missing.
As a test, I used the official barcode search of GS1 Germany called Gepir to look up a randomly selected item: A pack of Haribo from an Edeka in Munich. The barcode 8426617106201 immediately reveals the country that issued the barcode: The two digits on the left stand for Spain (84).
The search in Gepir yields the following result: Company name "HARIBO ESPAรA S.A.U." as well as an address.
Unfortunately, we can't do much with this yet. Commercial use of the service is costly and does not provide us with the data we are interested in. At a minimum, these would be: name, quantity, nutritional values of the food, and information on any allergens it may contain.
The first pantry app with product data: Crowdsourcing
When we launched the first pantry app in the App Store in 2013, there wasn't even a barcode scanner - and accordingly, no product data was stored.
Each user had to enter their items manually, which was quite laborious. In December 2015, the time had finally come: We created a product database for the pantry, with which users still had to enter food items, but these were then shared among all users! This way, at least common items were usually already in the database, and the recording of stock or shopping became much faster.
However, over time, weaknesses of the approach have become apparent:
Thus, there was only one field per article for the product name - even though the app was also used internationally. People then filled in the name sometimes in Swedish, sometimes in English, sometimes in German.
Although the app had storage locations, it seems that these were not sufficient for organizing items for some users. Thus, cryptic category names like "30 Juice", "31 UHT Milk" quickly emerged, which were only understandable to the respective user.
Some users have meticulously transferred all nutritional values - others have completely skipped this part. The level of detail of the products varied accordingly. Excerpt from the product database of the Pantry App, where product names have been entered by different users in various languages.
The current Pantry WebApp
Before we released our current WebApp for public beta in 2019, we spent a long time searching for the right model regarding the product database. We considered how we could improve the quality of the existing data.
Ultimately, we have actively decided to stop using our own product database and instead switch to the open model of OpenFoodFacts.org. Here too, product data is maintained by volunteer users and stored in a publicly accessible database. However, the project has several advantages, as we will see in the following section.
Products can be accessed directly from OpenFoodFacts and used for one's own purposes. The product data is licensed under the Open Database License - this ensures the data can be used for any purpose - as long as newly added product data is contributed back - thus the crowd-sourcing effect is ensured through the license.
A few facts about OpenFoodFacts
- OpenFoodFacts was founded in France in May 2012
- Meanwhile, there are 1,875,095 product data from all over the world listed with barcodes
Compared to our first database, OpenFoodFacts has a very extensive data schema. For instance, name fields are provided for any language.
Additionally, OpenFoodFacts allows for the uploading of photos of the product, the list of ingredients, and the nutritional value table. This enables automated machine quality control of the entered nutritional information, significantly improving the quality of the data.
Everything that can be found on OpenFoodFacts about the bag of Haribo from the example above can be found here.
Pantry App and OpenFoodFacts
Since October 7, 2019, we have been retrieving product data from OpenFoodFacts and, of course, also contributing back for the benefit of all users.
Since then, our users have created 10,184 articles from scratch and edited 20,441 articles, mostly to add missing attributes.
With this, our users have created 0.5% of all articles in the global database - that's an impressive sum, from which users in Germany benefit especially! A heartfelt thank you at this point for the careful entry of data, which will be very conveniently available to all future users.
Although it may happen that individual products are not found when scanning, we believe in the approach: A product database maintained by users is independent of the interests of food manufacturers, can be expanded as needed, and is unrestrictedly usable for all future purposes.
So if you come across an article that is not found, and you have to enter it yourself - think of the many users who will also scan the article, they will thank you for your product entry! ๐


New laws on food waste in Spain
Spain has recently passed a groundbreaking law to combat food waste. This law requires all actors in the food chain, from producers to retailers, to implement specific plans to prevent food loss.
Key provisions of the law:
Obligation to donate surplus food: Supermarkets with a floor space of more than 1,300 square meters are now required to form partnerships with non-profit organizations to donate surplus food that is still fit for consumption. These donations are exempt from value-added tax.
Offer of packaging for leftover food: Restaurants and bars are required to provide their guests with free, reusable or recyclable packaging so that they can take home uneaten food. The aim is to raise consumer awareness of food waste and encourage them to take leftovers with them.
Promotion of the sale of products with approaching expiration dates: Retailers should offer products that are nearing their expiration date or have aesthetic defects at reduced prices to encourage their sale and reduce waste.
Hierarchy of priorities for dealing with surplus food: The law establishes an order for handling surplus food. Priority is given to human consumption through donations. If this is not possible, the food should be used for the production of processed products. The last options include using it as animal feed or for energy generation.
Sanctions for violations:
Companies that violate the provisions of the law can expect fines ranging from 2,000 to 500,000 euros.
Critique and Outlook:
While the law is considered an important step in the fight against food waste in Europe, there is also criticism. Some voices argue that the strict framework of sanctions could disproportionately burden companies and that the law does not sufficiently address the role of consumers, who are responsible for a significant portion of food waste.
Nevertheless, the law is seen as a significant advancement in reducing food waste and promoting a more sustainable awareness in society.
Join in and reduce food waste! ๐ฑ๐ฒ
Spain's new law demonstrates: Sustainability starts in the pantry! With the Speisekammer App you can keep track of your groceries, plan meals efficiently, and avoid unnecessary waste.
๐ Download the app now and join the movement for less waste and more conscious consumption! ๐ Try it now!

Get the most out of your Smantry App: Activate these premium features!
๐ผ๏ธ Private photos for your articles
Make your inventory management visual! With the feature "Upload Your Own Images" you can add a photo to each item โ for example, of the packaging, the jar, or the portion in the freezer. This is especially helpful if you share with others in a community or if you want to visually remember your supplies better.
Activation: Open app โ Account (last tab in the mobile app) โ Settings โ "Activate Personal Pictures"
๐ Target nutritional information
The app automatically displays calorie and nutritional information โ super convenient when you're shopping or eating mindfully. Don't need this info right now or want a cleaner view? You can also simply hide the display!
Control:Profile โ Account Settings โ Enable โHide Nutritional Informationโ, to hide it.
๐ถ Prices & Expenses at a Glance
If you want to know how much you spend on which item or how much money is lying dormant in your pantry, the Price Entry feature can help you. With it, you can plan your shopping even better and even track your budget.
Activation: Open app โ Account (last tab in the mobile app) โ Settings โ โEnable price inputโ
๐ก Prepper Mode: Even More Control
The Prepper Mode has been introduced for those who really want to keep track of everything โ including minimum quantities, emergency supplies, and individual notes for serious situations. It's also useful if you just want to make sure you never run out of anything important.
Activation: Open app โ Account (last tab in the mobile app) โ Settings โ โShow Prepper Informationโ
Here's how you can find your account settings
In the mobile app you can find the settings easily in the last tab on the far right (Account). In the web app click on Account โ "Settings".
All mentioned features are part of the Premium-Version. If you don't have a premium license yet, feel free to check in the app or on app.speisekammer.app/upgrade โ there's also a family license available!
โจ Conclusion: You have more options than you think. Activate the hidden premium features now and get the most out of your Smantry app. Because smart inventory management starts with the right tools.
If you have any questions about activation, feel free to contact support or check out our Help Center. And if you have feature requests โ we always welcome your feedback!

Never forget leftovers again: Soon you'll be able to mark opened products ๐งโจ
๐ก The new feature: Mark products as "opened"
With the upcoming update, you will soon be able to specify in the Pantry App when a product was opened. This way, you always keep track:
- What is already open
- Since when it has been open
This is particularly useful for fresh or perishable food items, but also for sauces, canned goods, spreads, or snacks.
๐ Reminders included
Of course, if you wish, you will also be automatically reminded, when an opened product should soon be consumed โ all in keeping with the motto: Use rather than waste.
๐ฏ Why this is important
Food waste often doesn't occur while shopping โ but at home, in everyday life. If we know better what is open and should be consumed, it becomes easier to make the right decisions. And that's exactly what the Pantry App wants to support you with even better with the new feature.
๐ When will it be time?
We are currently working hard on the implementation โ the feature is expected to be rolled out in the next update. So you will be able to test it very soon yourself.
If you want to participate in the testing or have feedback, feel free to write to us in support. We look forward to your ideas!
With the Pantry App, stockpiling becomes not only more sustainable, but also easier โ step by step.
Stay tuned โ it's getting exciting! ๐

๐ Small ideas โ big impact: These companies help you save food in everyday life
๐ Foodsi (Poland)
This mobile app connects users with restaurants, bakeries and cafรฉs offering surplus food at reduced pricesโespecially valuable in Polish cities like Warsaw or Krakรณw.
๐ foodsi.pl
๐๏ธ OLIO โ Share Surplus Food with Neighbors
OLIO connects neighbors and local businesses to share surplus food instead of throwing it away. Users can offer or request free food via the app โ reducing waste and building community.
๐ https://olioapp.com
๐ Imperfect Foods โ Selling "Ugly" but Edible Food
This U.S.-based grocery delivery service rescues "imperfect" produce and surplus goods that major supermarkets reject due to appearance or overstocking โ and delivers them directly to your door.
๐ https://www.imperfectfoods.com
๐ฆ Dispatch Goods โ Reusable Packaging for Takeout
Dispatch Goods partners with restaurants to replace single-use containers with reusable packaging. This reduces packaging waste โ and their system tracks and collects the containers for reuse.
๐ https://www.dispatchgoods.com
๐ฅฌ Fresh.Land โ Farm-to-Consumer to Prevent Waste (DK)
Fresh.Land shortens the supply chain by connecting consumers directly with farmers. This means fresher produce, longer shelf life, and fewer losses due to long storage or transport.
๐ง ColdHubs โ Solar-Powered Cold Storage in Nigeria
ColdHubs installs solar-powered cold rooms for small farmers and markets to store perishable foods. This innovation significantly extends shelf life and reduces spoilage in hot climates.
๐ง Winnow โ AI to Track Food Waste in Commercial Kitchens
Winnowโs smart scales and AI help restaurants and hotels measure and reduce food waste. By showing how much food is wasted and why, kitchens can adapt their behavior.
๐ https://www.winnowsolutions.com
Why this matters for you
When you use the Smantry app, you can track and manage rescued food items in your pantry โ whether they came from Foodsi, Karma, or another initiative. Weโre building integrations to log these products, set reminders, and reduce waste in your household.
Know any other businesses doing this well?
Weโd love to hear about them! Email your favourites to kira@mantry.com or write us in the chat or social media. Your tip might inspire others and be featured next. ๐ฟ