Food Safety & Recall Risk Analyzer avatar

Food Safety & Recall Risk Analyzer

Pricing

$80.00 / 1,000 food safety analyses

Go to Apify Store
Food Safety & Recall Risk Analyzer

Food Safety & Recall Risk Analyzer

Check for food safety issues, recalls, and contamination risks. Rate food products and suppliers for safety.

Pricing

$80.00 / 1,000 food safety analyses

Rating

0.0

(0)

Developer

daehwan kim

daehwan kim

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

11 hours ago

Last modified

Share

Food Safety Intelligence

Analyze any food product by barcode or name for nutrition quality, recall history, and safety score. Returns 0-100 overall score using Open Food Facts + OpenFDA recall data.

Features

  • Barcode/Name Search: UPC/EAN barcode or product name lookup
  • Nutritional Analysis: Nutri-Score grade, calories, macros (sugar, fat, sodium, fiber)
  • FDA Recall History: Last 5 years of brand-level recalls
  • Allergen Detection: Major allergens from ingredient list
  • Food Additive Analysis: High-risk additives detection
  • Comprehensive Scoring:
    • Quality Score (0-100): Based on Nutri-Score
    • Safety Score (0-100): Based on FDA recalls
    • Overall Score (0-100): Combined weighted score

Input

FieldTypeRequiredExample
barcodestringNo*"0041196018769"
productNamestringNo*"Nutella"

*Either barcode or productName required (barcode takes priority)

Output

Each analysis returns a dataset item with:

  • product_name: Product name
  • brand: Brand name
  • barcode: Product barcode/UPC
  • categories: Product categories
  • nutriscore_grade: A/B/C/D/E grade
  • calories_per_100g: kcal per 100g
  • sugar_per_100g: grams per 100g
  • saturated_fat_per_100g: grams per 100g
  • sodium_per_100g: mg per 100g
  • fiber_per_100g: grams per 100g
  • allergens: Array of detected allergens
  • recall_count: Number of FDA recalls (brand, last 5 years)
  • high_risk_additives: Count of high-risk additives
  • quality_score: 0-100 nutritional quality
  • safety_score: 0-100 safety (recall history)
  • overall_score: 0-100 combined score
  • disclaimer: Legal disclaimer
  • timestamp: ISO timestamp

Scoring Logic

Quality Score = Nutri-Score Points (A=90, B=70, C=50, D=30, E=10)
Safety Score = max(0, 100 - min(40, recall_count × 20))
Overall Score = max(0, (Quality × 0.5 + Safety × 0.5) - additive_penalty)
Additive Penalty = min(30, high_risk_count × 5)

Data Sources

  1. Open Food Facts (https://world.openfoodfacts.org)

    • Product info, ingredients, Nutri-Score
    • ODbL license (open data)
  2. OpenFDA Food Enforcement API (https://api.fda.gov)

    • FDA recall history (last 5 years)
    • Public domain data
  3. USDA FoodData Central

    • Nutritional reference (if needed)
    • Public domain data

Disclaimer

This Actor aggregates publicly available data from Open Food Facts (ODbL license), OpenFDA (public domain), and USDA FoodData Central (public domain). It is NOT medical or dietary advice. Nutritional scores are estimates based on labeled information. Recall data is historical and may not reflect current product safety. Consult healthcare professionals for dietary decisions. Individuals with allergies must verify ingredients independently. Open Food Facts is community-contributed data without 100% accuracy guarantee.

Usage Example

Input

{
"barcode": "0041196018769"
}

Output

{
"product_name": "Nutella",
"brand": "Ferrero",
"barcode": "0041196018769",
"categories": "Breakfast cereals, Chocolate spreads",
"nutriscore_grade": "E",
"calories_per_100g": 540,
"sugar_per_100g": 56.3,
"saturated_fat_per_100g": 10.7,
"sodium_per_100g": null,
"fiber_per_100g": 1.3,
"allergens": ["en:tree-nuts", "en:soy"],
"recall_count": 0,
"high_risk_additives": 0,
"quality_score": 10,
"safety_score": 100,
"overall_score": 52.5,
"disclaimer": "...",
"timestamp": "2025-02-13T18:30:00.000Z"
}

Pricing

  • Pay-per-event: $0.08 per product analysis
  • Free during development/testing

Local Testing

npm install
npm start

Input: {"barcode": "0041196018769"} or {"productName": "Nutella"}


Extend this actor with the ntriqpro intelligence network:

⭐ Love it? Leave a Review

Your rating helps professionals discover this actor. Rate it here.