Open Food Facts Product Intelligence
by benthepythondev
Extract food product data with AI-powered health scoring. Access nutrition facts, ingredients, allergens, and environmental impact scores for millions...
Opens on Apify.com
About Open Food Facts Product Intelligence
Extract food product data with AI-powered health scoring. Access nutrition facts, ingredients, allergens, and environmental impact scores for millions of products worldwide.
What does this actor do?
Open Food Facts Product Intelligence is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
Open Food Facts Product Intelligence Extract comprehensive food product data with AI-powered health scoring. Access nutrition facts, ingredients, allergens, processing levels, and environmental impact scores for millions of products worldwide - no API key required. ## Features - AI Health Scoring: Proprietary 0-100 scoring based on nutrition grade (30pts), processing level/NOVA group (25pts), environmental impact/Eco-Score (25pts), and allergens/additives (20pts) - No API Key Required: Uses Open Food Facts public API (no authentication needed) - Millions of Products: Access to 2.8M+ products from 180+ countries - Complete Nutrition Data: Calories, fats, carbs, sugars, proteins, salt, fiber per 100g - Allergen Information: Identify products with common allergens - Processing Levels: NOVA group classification (1=unprocessed to 4=ultra-processed) - Environmental Impact: Eco-Score grades (A=best to E=worst) - Pay-Per-Event Pricing: $0.00005 actor start + $0.02 per product ## Use Cases - Health Apps: Build nutrition tracking and meal planning applications - E-commerce: Enrich product listings with nutrition and health data - Food Retailers: Compare products and find healthier alternatives - Dietary Research: Analyze food trends and nutritional patterns - Allergen Trackers: Help users avoid allergenic ingredients - Sustainability Platforms: Assess environmental impact of food choices - Price Comparison: Combine with pricing data for value analysis - Recipe Apps: Provide nutritional breakdown of ingredients ## AI Health Score Algorithm The health score (0-100) evaluates products across four dimensions: ### 1. Nutrition Grade (30 points max) Official Nutri-Score rating: - A (Best nutrition): 30 points - Low calories, fat, sugar, salt; high fiber, protein - B (Good nutrition): 24 points - Mostly healthy nutritional profile - C (Average): 18 points - Moderate nutritional quality - D (Poor): 12 points - High in calories, fat, sugar, or salt - E (Worst): 6 points - Very poor nutritional quality - Unknown/Not graded: 15 points ### 2. NOVA Processing Group (25 points max) Degree of industrial processing: - Group 1 (Unprocessed): 25 points - Fresh fruits, vegetables, meat, milk - Group 2 (Processed ingredients): 20 points - Oils, butter, sugar, salt - Group 3 (Processed foods): 12 points - Canned vegetables, cheese, bread - Group 4 (Ultra-processed): 5 points - Soft drinks, packaged snacks, instant meals - Unknown: 15 points ### 3. Eco-Score (25 points max) Environmental impact assessment: - A (Best environmental impact): 25 points - Low carbon footprint, sustainable - B (Good impact): 20 points - Moderate environmental footprint - C (Average): 15 points - Standard environmental impact - D (Poor impact): 10 points - High environmental footprint - E (Worst impact): 5 points - Very high environmental impact - Unknown: 12 points ### 4. Allergens & Additives (20 points max) Potential health concerns: - No allergens: +10 points - No additives: +10 points - Few additives (1-2): +7 points - Some additives (3-5): +4 points - Many additives (6+): 0 points ## Input Parameters ### Optional Filters | Parameter | Type | Description | Example | |-----------|------|-------------|---------| | searchQuery | string | Search products by name/keywords | "organic chocolate", "gluten free pasta" | | barcodes | array | List of product barcodes (EAN/UPC) | ["737628064502", "3017620422003"] | | minNutritionGrade | string | Minimum nutrition grade | "A", "B" (filters out C, D, E) | | maxNovaGroup | integer | Maximum processing level (1-4) | 2 (excludes ultra-processed) | | excludeAllergens | boolean | Only allergen-free products | true | | maxResults | integer | Maximum products to return (1-1000) | 100 (default) | | includeHealthScore | boolean | Include AI health scoring | true (default) | ## Output Each product contains: json { "barcode": "737628064502", "product_name": "Organic Dark Chocolate", "brands": "Green & Black's", "categories": "Snacks, Sweet snacks, Cocoa and its products, Chocolates, Dark chocolates", "countries": "United Kingdom", "ingredients_text": "Organic cocoa mass, organic cane sugar, organic cocoa butter...", "allergens": "en:milk", "nutrition_grade": "b", "nova_group": 4, "ecoscore_grade": "c", "additives_count": 0, "energy_kcal_100g": 600, "fat_100g": 48, "saturated_fat_100g": 29, "carbohydrates_100g": 33, "sugars_100g": 29, "proteins_100g": 10, "salt_100g": 0.03, "fiber_100g": 12, "image_url": "https://images.openfoodfacts.org/...", "image_nutrition_url": "https://images.openfoodfacts.org/.../nutrition.jpg", "health_score": 71 } ## Example Inputs ### Find Healthy Breakfast Cereals json { "searchQuery": "breakfast cereal", "minNutritionGrade": "B", "maxNovaGroup": 3, "maxResults": 50, "includeHealthScore": true } ### Allergen-Free Snacks json { "searchQuery": "snacks", "excludeAllergens": true, "maxResults": 100, "includeHealthScore": true } ### Organic Products Only json { "searchQuery": "organic", "minNutritionGrade": "A", "maxNovaGroup": 2, "maxResults": 75, "includeHealthScore": true } ### Lookup Specific Products by Barcode json { "barcodes": ["737628064502", "3017620422003", "4006040059505"], "includeHealthScore": true } ### Low-Sugar Products json { "searchQuery": "chocolate", "minNutritionGrade": "A", "maxResults": 50, "includeHealthScore": true } ## Pricing Pay-Per-Event Model (eligible for Apify $1M Challenge): - Actor Start: $0.00005 (one-time per run) - Per Product: $0.02 per product returned Examples: - 50 products: $1.00 + $0.00005 = $1.00005 - 100 products: $2.00 + $0.00005 = $2.00005 - 500 products: $10.00 + $0.00005 = $10.00005 - 1000 products: $20.00 + $0.00005 = $20.00005 ## Data Source This actor uses Open Food Facts public API at https://world.openfoodfacts.org. No API key or authentication required. Open Food Facts is a collaborative, free and open database of food products from around the world, with over 2.8 million products. ## Understanding the Scores ### Nutri-Score (A-E) - Calculated based on 100g of product - Considers both positive (fiber, protein, fruits/vegetables) and negative (calories, sugar, salt, saturated fat) nutrients - A = healthiest, E = least healthy ### NOVA Classification - Group 1: Whole foods (fruits, vegetables, meat, eggs, milk) - Group 2: Processed culinary ingredients (butter, oil, sugar, salt) - Group 3: Processed foods (canned vegetables, cheese, freshly made bread) - Group 4: Ultra-processed (soft drinks, packaged snacks, reconstituted meat products) ### Eco-Score (A-E) - Considers carbon footprint, packaging, origin, threatened species impact - A = lowest environmental impact, E = highest ## Support For issues or questions: - Review Open Food Facts documentation at https://world.openfoodfacts.org/data - Verify product barcodes are valid EAN/UPC codes - Check actor logs for detailed error messages - Contact support via Apify platform ## Legal This actor uses Open Food Facts public data under the Open Database License (ODbL). Data contributors retain copyright. Products remain property of their respective manufacturers. Use responsibly and credit Open Food Facts as the data source.
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Open Food Facts Product Intelligence now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- benthepythondev
- Pricing
- Paid
- Total Runs
- 53
- Active Users
- 5
Related Actors
Google Search Results Scraper
by apify
Website Content Crawler
by apify
🔥 Leads Generator - $3/1k 50k leads like Apollo
by microworlds
Video Transcript Scraper: Youtube, X, Facebook, Tiktok, etc.
by invideoiq
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support