Brand-name foods data

Jump to a section

GymFork has about 450,000 brand-name foods sold in Canada and the US built into the app, so you can search them and scan their barcodes. Part of that data comes from Open Food Facts, whose licence asks us to share our copy. This page is where anyone can download it, free.

What the file is

Where the data comes from

We kept products sold in Canada or the US that list calories, protein, carbs and fat, dropped rows whose numbers can’t be right (calories that don’t add up from protein, carbs and fat, a protein bar or peanut butter listed with no protein, or a bread or bar listed at zero for everything), merged the two sources by barcode (USDA’s numbers win where both have a product, and Open Food Facts fills in what USDA left out), folded pack sizes of the same product into one food, and kept the most scanned products first.

Licence

This database is made available under the Open Database License: https://opendatacommons.org/licenses/odbl/1-0/. Any rights in individual contents of the database are licensed under the Database Contents License: https://opendatacommons.org/licenses/dbcl/1-0/

Contains data from Open Food Facts, available under the Open Database License (ODbL). Contains USDA FoodData Central data, in the public domain.

You can use, share and change this file under the ODbL. If you share a database made from it, share that under the ODbL too, and keep the credit to Open Food Facts. The same notices are inside the file, in its meta table.

Download

To open it, unzip it and use any SQLite tool, for example:

gunzip brands.db.gz
sqlite3 brands.db "SELECT * FROM brand_foods_per_100g LIMIT 5"

How we made it

Mistakes

Food data can have mistakes, and some products change their recipe. If a product is wrong in Open Food Facts, anyone can fix it there, and the next version of this file picks the fix up. To tell us, email support@gymfork.com.