Nutrition data
Go beyond the headline macros. Pull a detailed breakdown of 40+ nutrients per product — energy, protein, carbs, fats, sugars, fiber, sodium, vitamins, and minerals — all per 100g, for any food by ID.
curl -H "X-API-Key: food_•••" \
"https://foodbase.dev/v1/foods/62ea12b8.../nutrients"
{
"energy_kcal": 42,
"proteins_g": 0,
"carbs_g": 10.6,
"sugars_g": 10.6,
"fat_g": 0,
"saturated_fat_g": 0,
"fiber_g": 0,
"sodium_mg": 4,
"calcium_mg": 0,
"potassium_mg": 0
} Prefer to click around? Try the product explorer or the photo playground.
What you get back
Macros
Energy, protein, carbs, sugars, fat, saturated fat, fiber.
Minerals
Sodium, calcium, iron, potassium, magnesium, zinc, and more.
Vitamins
A, C, D, E, and the B-vitamins where reported.
Per 100g
Consistent basis so you can scale to any serving size.
40+ fields
One object with every nutrient the source data provides.
Available on the Pro plan and above. See plans →
Build with it
Calorie & macro trackers
Log accurate per-serving nutrition from a single lookup.
Meal planning & diets
Build plans that hit macro and micronutrient targets.
Health & clinical tools
Surface detailed nutrient profiles for dietary guidance.
Explore more endpoints
AI Food Analysis
One call turns a product's raw data into something you can show a user: a plain-language summary, factual health highlights and warnings, diet compatibility (vegan, vegetarian, gluten-free, lactose-free), and a NOVA-style processing level — in six languages, grounded strictly in the product's label data.
Learn more →Food Search
Full-text search across 6.1 million food products by name, brand, or category — relevance-ranked, paginated, and fast. Search in any language the label was printed in (Cyrillic included), and pass lang=en|fr|es|de|it|bg for localized names, categories and allergens. One GET request returns clean JSON your app can render immediately.
Learn more →Barcode Lookup
Scan or type a barcode, get the product. Resolve any EAN-13 or UPC code to a food record — brand, category, Nutri-Score, and a nutrition summary — in a single request. Built for scanner-based apps.
Learn more →Start building with the Nutrition data API
Free to start. No credit card required.
Get API key Go to Dashboard