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.

Claim this API

Are you the operator of Open Food Facts API? Submit a claim to establish contact with us.

Report an Issue

Found something wrong with Open Food Facts API? Let us know about broken links, changed auth, deprecated endpoints, or other issues.

Screenshot:
Screenshot of Open Food Facts API homepage
Slug: openfoodfacts
Key: openfoodfacts.org:open-food-facts-api
Base URL: https://world.openfoodfacts.org/api
Auth: none
Endpoints: 17
Reachable: unknown
CORS: unknown
Tier: verified

Links

Homepage: https://world.openfoodfacts.org
API Base: https://world.openfoodfacts.org/api

Topics

FOOD, KNOWLEDGE

Tutorials

Skills

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