- Home
- Categories
- Food & Drink
- Open Food Facts
Open Food Facts
Open Food Facts API offers developers access to a comprehensive crowd-sourced database of food products, suitable for various health-focused applications.
Developed by Open Food Facts
Reference for available routes, request structures, and live examples.
Retrieves food product information by barcode
https://world.openfoodfacts.org/product/{barcode}curl -X GET 'https://world.openfoodfacts.org/product/{barcode}'{
"fields": "product_name,nutriments,ingredients"
}{
"code": "123456789012",
"product": {
"nutriments": {
"energy-kcal_100g": 450,
"carbohydrates_100g": 65
},
"ingredients": [
"oats",
"honey",
"almonds"
],
"product_name": "Organic Granola"
}
}- Scan a food product barcode to display nutrition information in a mobile appOptimized Capability
- Build a recipe tool that fetches ingredient details and allergen warningsOptimized Capability
- Analyze eco‑scores across products for sustainability dashboardsOptimized Capability
- Create diet tracking apps providing real‑time nutrient lookupsOptimized Capability
- ✓ Completely free and open access with no sign‑up
- ✓ Massive, crowdsourced, multilingual product database
- ✓ Supports detailed nutritional, allergen, packaging, and eco‑score data
- ✓ Lightweight REST JSON endpoints easily consumable in any language
- ✗ Rate limited per IP, which may affect high‑volume usage
- ✗ Data quality depends on crowd contributions; occasional inconsistencies
- ✗ No built‑in advanced search operators (e.g., fuzzy matching)
- ✗ Lacks official SDKs for all languages, requiring custom wrappers
FAQs
API Specifications
v22 minutes—just call the REST endpoint in your app.
1000 requests per day per IP
Unlimited free access to all endpoints with rate limit of 1000 requests per day per IP.
Use Case: Best For
Developers needing open, free access to food product data for diet, health, sustainability, or barcode apps.
Not Recommended For
High‑volume commercial usage without caching, or apps needing enterprise‑grade SLAs.
Explore Related APIs
Discover similar APIs to Open Food Facts
Foodish
The Foodish API provides developers with free access to random images of food from multiple categories, ideal for enhancing food-related applications and websites.
Cocktail DB
Cocktail DB API offers developers free access to a comprehensive database of cocktail recipes, suitable for creating bartending apps, recipe websites, and drink suggestion tools.
The MealDB
The MealDB API offers developers free access to a vast database of meal recipes, ingredients, and categories, suitable for building culinary apps and websites.