published

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

99.50%Uptime
200msLatency
5.8kStars
No AuthAuth
NoCredit Card
RESTStyle
v2Version
API Endpoints

Reference for available routes, request structures, and live examples.

Retrieves food product information by barcode

Full Endpoint URL
https://world.openfoodfacts.org/product/{barcode}
Implementation Example
curl -X GET 'https://world.openfoodfacts.org/product/{barcode}'
Request Payload
{
  "fields": "product_name,nutriments,ingredients"
}
Expected Response
{
  "code": "123456789012",
  "product": {
    "nutriments": {
      "energy-kcal_100g": 450,
      "carbohydrates_100g": 65
    },
    "ingredients": [
      "oats",
      "honey",
      "almonds"
    ],
    "product_name": "Organic Granola"
  }
}
Version:v2
Limit:300 requests/minute
Real-World Applications
  • 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
Advantages
  • 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
Limitations
  • 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

v2
Pricing Model
Free tier only (no paid plans)
Credit Card
Not Required
Response Formats
JSON
Supported Languages
5 Languages
SDK Support
Python (unofficial wrappers), JavaScript (npm packages)
Time to Hello World

2 minutes—just call the REST endpoint in your app.

Rate Limit

1000 requests per day per IP

Free Tier Usage

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.

#nutrition#food

Explore Related APIs

Discover similar APIs to Open Food Facts

View All APIs
OPEN SOURCE

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.

Food & DrinkView Details
OPEN SOURCE

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.

Food & DrinkView Details
OPEN SOURCE

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.

Food & DrinkView Details