Open Food Facts Extractor avatar

Open Food Facts Extractor

Pricing

from $0.17 / 1,000 results

Go to Apify Store
Open Food Facts Extractor

Open Food Facts Extractor

Search and extract food-product data from Open Food Facts as clean typed JSON: name, brand, ingredients, allergens, nutrition (energy/fat/sugars/salt/protein), Nutri-Score, NOVA, Eco-Score, labels, image and source URL. No API key required.

Pricing

from $0.17 / 1,000 results

Rating

0.0

(0)

Developer

Cynix Dev

Cynix Dev

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

a day ago

Last modified

Share

Food product data from Open Food Facts — name, brand, ingredients, allergens, per-100g nutrition, Nutri-Score, NOVA processing group, Eco-Score, labels and images. Search, look up barcodes, or pull a whole brand. No API key.

What it does

Open Food Facts is a collaborative database of packaged food products from around the world, with over a million entries. This Actor gives you three ways in:

  • product — fetch exact products by EAN/UPC barcode.
  • search — full-text search (nutella, almond milk, protein bar).
  • by_brand — everything catalogued for a brand.

Filters let you narrow by category, country, Nutri-Score grade and NOVA group, so you can ask precise questions like "Nutri-Score A or B breakfast cereals sold in France" and get a clean table back.

Features

  • Barcode lookup — pass a list of EAN/UPC codes and get one record each.
  • Nutri-Score filter — restrict to grade ae for healthier-product analysis.
  • NOVA filter — isolate ultra-processed foods (group 4) or minimally processed (group 1).
  • Full nutrition per 100 g — energy in both kJ and kcal, fat, sugars, protein, salt.
  • Allergens and ingredients as text, ready for parsing or LLM analysis.
  • Eco-Score and labels — organic, halal, fair-trade and other certifications.
  • Country and category scoping for market-specific research without post-filtering.
  • Product images and source URLs on every record.

What people use it for

  • Nutrition and public-health research — compare processing levels across a category.
  • Retail and CPG competitive analysis — audit a rival brand's portfolio and scores.
  • App and chatbot backends — barcode lookup for a food-scanning feature.
  • Diet and allergen tooling — filter products by allergen or certification.
  • Sustainability reporting — pull Eco-Score data across a product range.

Nutri-Score, NOVA and Eco-Score explained

ScoreScaleWhat it measures
Nutri-Scorea (best) → e (worst)Overall nutritional quality: energy, sugar, salt, saturated fat versus fibre, protein, fruit/veg content
NOVA14Degree of industrial processing; 1 is unprocessed/minimally processed, 4 is ultra-processed
Eco-ScoreaeEstimated environmental impact across the life cycle

These are the same indicators printed on packaging across much of Europe, which makes them useful for like-for-like comparison.

Data completeness

Open Food Facts is contributor-driven. Popular products in France, Germany, Spain, Belgium and Switzerland are richly documented; coverage is thinner elsewhere and for niche items. Expect some empty nutrition or score fields, and sort by popularity when you want well-documented products first.

Input

Pick a mode first. codes is used only for barcode lookups; searchTerms, brands, categories and the score filters drive the search modes.

FieldTypeDefaultWhat it does
modestringsearchproduct = fetch one product by barcode; search = full-text search; by_brand = search scoped to a brand. Options: search, product, by_brand.
codesarray[]EAN/UPC barcodes to fetch (one per line). Only used when Mode = Single product.
searchTermsstringchocolateFree-text query, e.g. 'nutella', 'almond milk'. Ignored in product mode.
brandsstringRestrict to a brand, e.g. 'nestle'. Used by search and by_brand modes.
categoriesstringOFF category tag, e.g. 'breakfast-cereals', 'cheeses'.
countriesstringLimit to a country tag, e.g. 'france', 'united-states'.
nutriscoreGradestringOnly return products with this Nutri-Score grade or better (a/b/c/d/e). Leave empty for all.
novaGroupstringOnly return products in this NOVA ultra-processing group (1-4). Leave empty for all.
maxResultsinteger50Cap on records returned. Range 1–1000.
pageSizeinteger50Records fetched per API page (1-100). Range 1–100.
sortBystringpopularityResult ordering for search / by_brand modes. Options: relevance, popularity, last_modified, product_name, nutriscore, nova, ecoscore, created_t.

Input example

{
"mode": "search",
"searchTerms": "chocolate",
"maxResults": 10,
"pageSize": 50,
"sortBy": "popularity"
}

Output

One record per product. Nutrition values are per 100 g/ml as published. Fields are sparse where contributors haven't filled them in — normal for a crowd-sourced database.

Every dataset record contains: code, product_name, brands, categories, quantity, countries, ingredients_text, allergens, labels, nova_groups, nutriscore_grade, ecoscore_grade, energy_100g_kj, energy_100g_kcal, fat_100g, sugars_100g, proteins_100g, salt_100g, additives_n, image_url, url, mode.

Output example

A real record from a run of this Actor:

{
"code": "6111246721261",
"product_name": "Fromage Blanc Nature",
"brands": "Milky Food Professional",
"categories": "Cheeses, fr:Fromages blancs natures",
"quantity": "1 kg",
"countries": "Canada, France, Morocco, United States",
"ingredients_text": "Lait de vache pasteurisé, Protéines de lait de vache, Crème de lait de vache, Ferment lactique, Amidon, Epaississant, Sorbate de potassium",
"allergens": "milk",
"labels": "Halal, No additives",
"nova_groups": "4",
"nutriscore_grade": "c",
"ecoscore_grade": "b",
"energy_100g_kj": "643",
"energy_100g_kcal": "159",
"fat_100g": "11",
"sugars_100g": "4",
"proteins_100g": "5",
"salt_100g": "0.1",
"additives_n": "",
"image_url": "https://images.openfoodfacts.org/images/products/611/124/672/1261/front_fr.118.400.jpg",
"url": "https://world.openfoodfacts.org/product/6111246721261",
"mode": "search"
}

Export the dataset as JSON, CSV, Excel, XML or JSONL from the Console, or pull it programmatically through the Apify API and any of the official clients.

How to use it

  1. Click Try for free (or Start if you already have an Apify account).
  2. Fill in the input fields described above — the defaults already produce a working run.
  3. Press Start and watch the log; results stream into the dataset as they are found.
  4. When the run finishes, open the Output/Storage tab and export as JSON, CSV or Excel.

Runs can be scheduled (hourly, daily, weekly) and wired into Slack, Google Sheets, Zapier, Make, webhooks or your own backend through Apify integrations. Everything the Console does is also available over the Apify API.

Pricing

This Actor is billed on Apify's pay-per-event model: a small charge when a run starts, plus a charge for each result written to the dataset. You only pay for records you actually receive — a run that finds nothing costs only the start event. Current rates are always shown on the Pricing tab of this page, and the run log prints your usage as it goes.

Free-plan credits from Apify cover a large amount of light usage, so you can evaluate the Actor before committing to anything.

FAQ

Do I need an API key?

No. Open Food Facts is an open database with a free public API. Please keep run volumes reasonable — it's a non-profit project funded by donations.

How do I look up a specific product?

Set mode to product and put its EAN/UPC barcode in codes. You can pass many barcodes in one run, one per line.

Why are some nutrition fields empty?

Contributors enter data manually from packaging, so completeness varies by product and country. Sorting by popularity surfaces the best-documented entries.

Can I filter to only healthy products?

Set nutriscoreGrade to a or b for better-scoring items, and/or novaGroup to 1 or 2 to exclude ultra-processed products.

What licence covers this data?

Open Food Facts data is published under the Open Database License (ODbL), and product images under Creative Commons terms. Attribute Open Food Facts if you redistribute the data.

Other Actors by cynix_dev

ActorWhat it does
Recipe Extractor — Clean Structured RecipesPaste recipe URLs, get back just the recipe: ingredients, numbered steps, times, yield, nutrition, and rating as clean typed …
Recipe URL Scraper — Keyword SearchEnter keywords (bread, pasta, mediterranean, lunch…) and get back matching recipe URLs with titles from the web and top recipe …
Recipe Extractor — Clean Structured RecipesPaste recipe URLs, get back just the recipe: ingredients, numbered steps, times, yield, nutrition, and rating as clean typed …
FDA Drug Database ExtractorFDA Drug Database Extractor: Orange Book (patents/exclusivity), NDC Directory, openFDA (adverse events, recalls, labeling), …

This Actor collects only publicly available information. You are responsible for how you use the data, including compliance with the target site's Terms of Service, robots directives, copyright, and data protection law such as GDPR and CCPA. Do not use it to gather personal data without a lawful basis.

Support and feedback

Found a bug, hit a site change, or need an extra field? Open a ticket on the Issues tab of this Actor — issues are read and fixed. Feature requests and custom-scraper enquiries are welcome through the same channel.