Free Food & Nutrition API
Look up any product barcode for nutrition facts, ingredients, allergens and Nutri-Score from Open Food Facts' 3-million-product database, search products by name or brand, and pull full cocktail recipes from TheCocktailDB.
Endpoints
| Method | Endpoint | Description | Source |
|---|---|---|---|
GET |
/api/v1/food/product/{barcode} |
Nutrition facts, ingredients and Nutri-Score by barcode | Open Food Facts |
GET |
/api/v1/food/search?q=nutella&limit=10 |
Search products by name/brand | Open Food Facts |
GET |
/api/v1/food/cocktails/search?q=margarita |
Search cocktail recipes by name | TheCocktailDB |
GET |
/api/v1/food/cocktails/{id} |
Full cocktail recipe, ingredients and measures by id | TheCocktailDB |
Full request/response details for every endpoint are in the API documentation.
Example request
curl "https://freeopenapi.dev/api/v1/food/product/3017620422003" \
-H "X-Api-Key: YOUR_API_KEY"
Works the same with ?apiKey=... as a query parameter. Every response carries
X-RateLimit-Limit / X-RateLimit-Remaining headers so you can track your budget.
Frequently asked questions
Is the food and nutrition API really free?
Yes. The free tier includes 100 requests per day and only requires a verified email address — no credit card. Paid Pro and Business tiers raise the daily limit.
Which barcodes are supported?
Any EAN/UPC barcode known to Open Food Facts — roughly 3 million products worldwide, strongest coverage for European and North American groceries.
Does it include allergen information?
Yes, product lookups include ingredients, allergen tags, additives and the Nutri-Score grade where available.
How do I get an API key?
Request a key with your email address on the Docs page, click the confirmation link we send you, and your key is active immediately on the free tier.