Recipe macronutrients analysis

Calculate the 5 key macronutrients for any recipe: calories, protein, carbohydrates, fats, and fiber. Results are returned both per 100g of final recipe and per portion (derived from input servings). Ingredient-level values use the same dual basis. The recipe-level response also includes the energy distribution of fat, carbohydrates, and protein, calculated with Atwater factors (fat x 9, carbohydrates x 4, protein x 4). Proprietary deterministic algorithm. Same recipe = same result, always. Backtestable, auditable, and validated against the IEO (European Institute of Oncology) database. Use Cases: RECIPE PLATFORMS — AUTOMATIC NUTRITION TABLE • Display nutritional values per serving under every recipe. Enables nutritional rich snippets for SEO. FITNESS & NUTRITION TRACKING APPS • The user enters a homemade recipe and gets precise values, not generic database estimates. RESTAURANTS — MENU WITH NUTRITIONAL VALUES • Automatic macronutrient calculation for every menu dish, meeting growing demand for nutritional transparency. PHARMA — MEAL PLAN VERIFICATION • Automatic validation of nutritional values for recipes in therapeutic dietary plans.

POST
/recipes-macronutrients
RecipesMacronutrients
Cost: 50 credits

Request

application/json
object

Request containing the recipe ingredients to analyze

RecipesMacronutrientsRequest

Request for macronutrient analysis of a recipe's ingredients

object

servings

Number of servings in the full recipe. Used to compute per-portion values.

integer<int32>

ingredients

object[]

RecipesMacronutrientsIngredientInput

A single recipe ingredient

object

name

Ingredient name in the language specified by Accept-Language header

string

quantity

Quantity of the ingredient

number<double>

measureUnitId

Measure unit identifier; resolvable via GET /definitions/measure-units

integer<int32>

Demo