Open Food Facts API
REST API for querying the Open Food Facts collaborative food product database, offering barcode-based product lookups and search by category, brand, label, and nutritional criteria. Returns detailed product data including ingredients, nutrition facts, allergens, and environmental impact scores.
Screenshot:
Slug: openfoodfacts
Key:
Base URL:
Auth: none
Endpoints: 17
Reachable: unknown
CORS: unknown
Tier: verified
Key:
openfoodfacts.org:open-food-facts-apiBase URL:
https://world.openfoodfacts.org/apiAuth: none
Endpoints: 17
Reachable: unknown
CORS: unknown
Tier: verified
Links
Topics
Tutorials
- Getting Started with Open Food Facts — I can look up any food product by barcode — ingredients, nutrition per 100 g, allergens, dietary labels, Nutri-Score, and NOVA processing group — from the Open Food Facts database in a single unauthenticated GET.
Skills
- Search food products — I can search for food products by category, nutrition grade, brand, or dietary label across the Open Food Facts database — but always include `?fields=` to trim the response or you'll get megabytes per page.
Endpoints (17)
| Path | Summary | Response | Auth |
|---|---|---|---|
| api/v2/additives | List additives | ? |
— |
| api/v2/allergens | List allergens | ? |
— |
| api/v2/brands | List brands | ? |
— |
| api/v2/categories | List categories | ? |
— |
| api/v2/countries | List countries | ? |
— |
| api/v2/labels | List labels | ? |
— |
| api/v2/product/{barcode} | Get product by barcode | application/json |
— |
| api/v2/search | Search products | application/json |
— |
| cgi/search.pl | Legacy search endpoint | application/json |
— |
| facets/additives.json | List additives | application/json |
— |
| facets/allergens.json | List allergens | application/json |
— |
| facets/brands/{brand}.json | Get products by brand | text/html |
— |
| facets/categories/{category}.json | Get products by category | text/html |
— |
| facets/countries.json | List countries | application/json |
— |
| facets/labels/{label}.json | Get products by label | text/html |
— |
| v0/product/{barcode}.json | Get product by barcode | application/json |
none |
| v2/search | Search products | text/html |
none |