Skip to content

Open Food Facts data

Some of MacroTrax's foods come from Open Food Facts: products cached when someone scans a barcode, gaps in them filled in from the label by our users and checked by our team, and branded products we curate from Open Food Facts records.

Contains information from Open Food Facts, available under the Open Database License. As the licence asks, our version of that data is available to everyone under the same Open Database License (ODbL) 1.0. Individual contents are under the Database Contents License, as on Open Food Facts.

Download the CSV

Updated hourly. It holds no user accounts and nothing about who scanned or added what.

The file

UTF-8 CSV. The first lines start with # and give the licence and attribution; skip them when reading the data. Then one row per food:

  • off_code: the Open Food Facts product code.
  • barcodes: every barcode we match to it, space-separated.
  • name, brand.
  • kcal, protein_g, fat_g, carbs_g, fiber_g, sugars_g, sat_fat_g, sodium_mg: per 100 g (100 mL for drinks); blank when unknown.
  • liquid: “yes” for drinks.
  • servings: “label=grams; …”, the default starred.
  • our_source: “branded:<key>” for a branded product we curate from the record, “off cache” for a product as fetched from Open Food Facts, “community fill” when missing values were filled in from the label.
  • off_date: the Open Food Facts record's date (branded products), or when we fetched it.
MacroTrax home