published

Open Food Facts

The Open Food Facts API offers developers free access to an extensive database of food product information, suitable for health and diet applications.

Developed by Open Food Facts

99.50%Uptime
250msLatency
961Stars
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
  • Building diet and nutrition apps that require detailed product dataOptimized Capability
  • Creating recipe tools that utilize ingredient informationOptimized Capability
  • Developing barcode scanning applications to identify food itemsOptimized Capability
  • Integrating sustainability features in health-focused platformsOptimized Capability
  • Researching food product information and consumer awareness projectsOptimized Capability
Advantages
  • No authentication required, allowing immediate integration
  • Vast and crowd-sourced database with global food product coverage
  • Detailed nutritional, allergen, and eco-score information
  • Supports multi-language product data
  • Free to use with no rate limiting documented
Limitations
  • No official SDKs available for streamlined integration
  • API response times can vary due to open-source infrastructure
  • Data quality depends on crowd-sourced contributions
  • Limited to REST style with no GraphQL or SOAP support
  • No official service level agreements (SLAs)

FAQs

API Specifications

v2
Pricing Model
Free
Credit Card
Not Required
Response Formats
JSON
Supported Languages
5 Languages
SDK Support
REST Only
Time to Hello World

Less than 10 minutes

Rate Limit

No documented limits

Free Tier Usage

Unlimited free access to all endpoints with no authentication or rate limiting required.

Use Case: Best For

Health and nutrition app developers, food researchers, sustainability platform integrators, barcode scanner apps

Not Recommended For

Enterprise applications requiring guaranteed SLAs or official support, applications demanding SDK integrations

#nutrition#food

Explore Related APIs

Discover similar APIs to Open Food Facts

View All APIs
PUBLIC

Cocktail DB

The Cocktail DB API offers developers free and seamless access to a comprehensive collection of cocktail recipes, enabling the creation of bartending apps and drink suggestion tools.

Food & DrinkView Details
PUBLIC

Foodish

The Foodish API offers free access to random food images, suitable for applications needing diverse food imagery.

Food & DrinkView Details
PUBLIC

The MealDB

The MealDB API offers free access to a comprehensive database of meal recipes, ingredients, and categories, enabling developers to build culinary applications seamlessly.

Food & DrinkView Details