Compute detailed nutritional information for a given recipe (list of ingredients). The API will return the nutritional information for each ingredient, as well as the total nutritional content for the entire recipe. Aside from macro and micro nutrients, the API also returns flavanoid information and food properties such as glycemic index, glycemic load, and inflammation score.
This API wraps the compute nutrition endpoint by spoonacular's Nutrition API. Check out the tutorial about writing a diet and nutrition app or how to write a meal planning app using this API.
{
"nutrients": [
{
"name": "Calories",
"amount": 366.98,
"unit": "kcal",
"percent_of_daily_needs": 18.35
},
{
"name": "Fat",
"amount": 31.32,
"unit": "g",
"percent_of_daily_needs": 48.18
},
{
"name": "Saturated Fat",
"amount": 19.61,
"unit": "g",
"percent_of_daily_needs": 122.54
},
{
"name": "Carbohydrates",
"amount": 21.24,
"unit": "g",
"percent_of_daily_needs": 7.08
},
{
"name": "Net Carbohydrates",
"amount": 18.24,
"unit": "g",
"percent_of_daily_needs": 6.63
},
{
"name": "Sugar",
"amount": 17.11,
"unit": "g",
"percent_of_daily_needs": 19.01
},
{
"name": "Cholesterol",
"amount": 85.46,
"unit": "mg",
"percent_of_daily_needs": 28.49
},
{
"name": "Sodium",
"amount": 258.62,
"unit": "mg",
"percent_of_daily_needs": 11.24
},
{
"name": "Protein",
"amount": 3.41,
"unit": "g",
"percent_of_daily_needs": 6.82
},
{
"name": "Vitamin A",
"amount": 1079.93,
"unit": "IU",
"percent_of_daily_needs": 21.6
},
{
"name": "Calcium",
"amount": 120.51,
"unit": "mg",
"percent_of_daily_needs": 12.05
},
{
"name": "Fiber",
"amount": 3,
"unit": "g",
"percent_of_daily_needs": 12
},
{
"name": "Phosphorus",
"amount": 108.05,
"unit": "mg",
"percent_of_daily_needs": 10.8
},
{
"name": "Vitamin B2",
"amount": 0.16,
"unit": "mg",
"percent_of_daily_needs": 9.52
},
{
"name": "Vitamin B12",
"amount": 0.52,
"unit": "µg",
"percent_of_daily_needs": 8.65
},
{
"name": "Potassium",
"amount": 269.72,
"unit": "mg",
"percent_of_daily_needs": 7.71
},
{
"name": "Vitamin E",
"amount": 1.08,
"unit": "mg",
"percent_of_daily_needs": 7.2
},
{
"name": "Vitamin C",
"amount": 5.75,
"unit": "mg",
"percent_of_daily_needs": 6.97
},
{
"name": "Vitamin D",
"amount": 0.94,
"unit": "µg",
"percent_of_daily_needs": 6.24
},
{
"name": "Vitamin B6",
"amount": 0.1,
"unit": "mg",
"percent_of_daily_needs": 5.21
},
{
"name": "Vitamin K",
"amount": 5.46,
"unit": "µg",
"percent_of_daily_needs": 5.2
},
{
"name": "Vitamin B1",
"amount": 0.07,
"unit": "mg",
"percent_of_daily_needs": 4.71
},
{
"name": "Vitamin B5",
"amount": 0.43,
"unit": "mg",
"percent_of_daily_needs": 4.32
},
{
"name": "Magnesium",
"amount": 17.16,
"unit": "mg",
"percent_of_daily_needs": 4.29
},
{
"name": "Zinc",
"amount": 0.43,
"unit": "mg",
"percent_of_daily_needs": 2.87
},
{
"name": "Selenium",
"amount": 1.97,
"unit": "µg",
"percent_of_daily_needs": 2.81
},
{
"name": "Manganese",
"amount": 0.05,
"unit": "mg",
"percent_of_daily_needs": 2.36
},
{
"name": "Copper",
"amount": 0.03,
"unit": "mg",
"percent_of_daily_needs": 1.73
},
{
"name": "Folate",
"amount": 4.8,
"unit": "µg",
"percent_of_daily_needs": 1.2
},
{
"name": "Vitamin B3",
"amount": 0.22,
"unit": "mg",
"percent_of_daily_needs": 1.09
}
],
"properties": [
{
"name": "Glycemic Index",
"amount": 120,
"unit": ""
},
{
"name": "Glycemic Load",
"amount": 6.08,
"unit": ""
},
{
"name": "Inflammation Score",
"amount": 0,
"unit": ""
},
{
"name": "Nutrition Score",
"amount": 6.060869565217391,
"unit": "%"
}
],
"flavonoids": [
{
"name": "Cyanidin",
"amount": 1.96,
"unit": "mg"
},
{
"name": "Petunidin",
"amount": 0,
"unit": "mg"
},
{
"name": "Delphinidin",
"amount": 0,
"unit": "mg"
},
{
"name": "Malvidin",
"amount": 0,
"unit": "mg"
},
{
"name": "Pelargonidin",
"amount": 0,
"unit": "mg"
},
{
"name": "Peonidin",
"amount": 0.03,
"unit": "mg"
},
{
"name": "Catechin",
"amount": 1.63,
"unit": "mg"
},
{
"name": "Epigallocatechin",
"amount": 0.33,
"unit": "mg"
},
{
"name": "Epicatechin",
"amount": 9.41,
"unit": "mg"
},
{
"name": "Epicatechin 3-gallate",
"amount": 0.01,
"unit": "mg"
},
{
"name": "Epigallocatechin 3-gallate",
"amount": 0.24,
"unit": "mg"
},
{
"name": "Theaflavin",
"amount": 0,
"unit": ""
},
{
"name": "Thearubigins",
"amount": 0,
"unit": ""
},
{
"name": "Eriodictyol",
"amount": 0,
"unit": ""
},
{
"name": "Hesperetin",
"amount": 0,
"unit": "mg"
},
{
"name": "Naringenin",
"amount": 0,
"unit": "mg"
},
{
"name": "Apigenin",
"amount": 0,
"unit": "mg"
},
{
"name": "Luteolin",
"amount": 0.15,
"unit": "mg"
},
{
"name": "Isorhamnetin",
"amount": 0,
"unit": ""
},
{
"name": "Kaempferol",
"amount": 0.18,
"unit": "mg"
},
{
"name": "Myricetin",
"amount": 0,
"unit": "mg"
},
{
"name": "Quercetin",
"amount": 5.01,
"unit": "mg"
},
{
"name": "Theaflavin-3,3'-digallate",
"amount": 0,
"unit": ""
},
{
"name": "Theaflavin-3'-gallate",
"amount": 0,
"unit": ""
},
{
"name": "Theaflavin-3-gallate",
"amount": 0,
"unit": ""
},
{
"name": "Gallocatechin",
"amount": 0,
"unit": "mg"
}
],
"ingredient_breakdown": [
{
"id": 9003,
"name": "apples",
"amount": 1,
"unit": "cup",
"nutrients": [
{
"name": "Folic Acid",
"amount": 0,
"unit": "µg",
"percent_of_daily_needs": 0
},
{
"name": "Cholesterol",
"amount": 0,
"unit": "mg",
"percent_of_daily_needs": 28.49
},
{
"name": "Zinc",
"amount": 0.05,
"unit": "mg",
"percent_of_daily_needs": 2.87
},
{
"name": "Fluoride",
"amount": 4.13,
"unit": "mg",
"percent_of_daily_needs": 0
},
{
"name": "Vitamin E",
"amount": 0.22,
"unit": "mg",
"percent_of_daily_needs": 7.2
},
{
"name": "Vitamin B6",
"amount": 0.05,
"unit": "mg",
"percent_of_daily_needs": 5.21
},
{
"name": "Vitamin B2",
"amount": 0.03,
"unit": "mg",
"percent_of_daily_needs": 9.52
},
{
"name": "Caffeine",
"amount": 0,
"unit": "mg",
"percent_of_daily_needs": 0
},
{
"name": "Potassium",
"amount": 133.75,
"unit": "mg",
"percent_of_daily_needs": 7.71
},
{
"name": "Vitamin B12",
"amount": 0,
"unit": "µg",
"percent_of_daily_needs": 8.65
},
{
"name": "Folate",
"amount": 3.75,
"unit": "µg",
"percent_of_daily_needs": 1.2
},
{
"name": "Saturated Fat",
"amount": 0.04,
"unit": "g",
"percent_of_daily_needs": 122.54
},
{
"name": "Net Carbohydrates",
"amount": 14.25,
"unit": "g",
"percent_of_daily_needs": 6.63
},
{
"name": "Phosphorus",
"amount": 13.75,
"unit": "mg",
"percent_of_daily_needs": 10.8
},
{
"name": "Manganese",
"amount": 0.04,
"unit": "mg",
"percent_of_daily_needs": 2.36
},
{
"name": "Vitamin D",
"amount": 0,
"unit": "µg",
"percent_of_daily_needs": 6.24
},
{
"name": "Fat",
"amount": 0.21,
"unit": "g",
"percent_of_daily_needs": 48.18
},
{
"name": "Alcohol",
"amount": 0,
"unit": "g",
"percent_of_daily_needs": 0
},
{
"name": "Vitamin B5",
"amount": 0.08,
"unit": "mg",
"percent_of_daily_needs": 4.32
},
{
"name": "Lycopene",
"amount": 0,
"unit": "µg",
"percent_of_daily_needs": 0
},
{
"name": "Vitamin K",
"amount": 2.75,
"unit": "µg",
"percent_of_daily_needs": 5.2
},
{
"name": "Protein",
"amount": 0.32,
"unit": "g",
"percent_of_daily_needs": 6.82
},
{
"name": "Vitamin B1",
"amount": 0.02,
"unit": "mg",
"percent_of_daily_needs": 4.71
},
{
"name": "Copper",
"amount": 0.03,
"unit": "mg",
"percent_of_daily_needs": 1.73
},
{
"name": "Carbohydrates",
"amount": 17.25,
"unit": "g",
"percent_of_daily_needs": 7.08
},
{
"name": "Sodium",
"amount": 1.25,
"unit": "mg",
"percent_of_daily_needs": 11.24
},
{
"name": "Poly Unsaturated Fat",
"amount": 0.06,
"unit": "g",
"percent_of_daily_needs": 0
},
{
"name": "Vitamin C",
"amount": 5.75,
"unit": "mg",
"percent_of_daily_needs": 6.97
},
{
"name": "Calories",
"amount": 65,
"unit": "kcal",
"percent_of_daily_needs": 18.35
},
{
"name": "Mono Unsaturated Fat",
"amount": 0.01,
"unit": "g",
"percent_of_daily_needs": 0
},
{
"name": "Choline",
"amount": 4.25,
"unit": "mg",
"percent_of_daily_needs": 0
},
{
"name": "Vitamin B3",
"amount": 0.11,
"unit": "mg",
"percent_of_daily_needs": 1.09
},
{
"name": "Iron",
"amount": 0.15,
"unit": "mg",
"percent_of_daily_needs": 0.87
},
{
"name": "Magnesium",
"amount": 6.25,
"unit": "mg",
"percent_of_daily_needs": 4.29
},
{
"name": "Selenium",
"amount": 0,
"unit": "µg",
"percent_of_daily_needs": 2.81
},
{
"name": "Calcium",
"amount": 7.5,
"unit": "mg",
"percent_of_daily_needs": 12.05
},
{
"name": "Vitamin A",
"amount": 67.5,
"unit": "IU",
"percent_of_daily_needs": 21.6
},
{
"name": "Sugar",
"amount": 13,
"unit": "g",
"percent_of_daily_needs": 19.01
},
{
"name": "Fiber",
"amount": 3,
"unit": "g",
"percent_of_daily_needs": 12
}
]
},
{
"id": 1077,
"name": "milk",
"amount": 3,
"unit": "oz",
"nutrients": [
{
"name": "Folic Acid",
"amount": 0,
"unit": "µg",
"percent_of_daily_needs": 0
},
{
"name": "Cholesterol",
"amount": 10.21,
"unit": "mg",
"percent_of_daily_needs": 28.49
},
{
"name": "Zinc",
"amount": 0.35,
"unit": "mg",
"percent_of_daily_needs": 2.87
},
{
"name": "Vitamin E",
"amount": 0.04,
"unit": "mg",
"percent_of_daily_needs": 7.2
},
{
"name": "Vitamin B6",
"amount": 0.05,
"unit": "mg",
"percent_of_daily_needs": 5.21
},
{
"name": "Vitamin B2",
"amount": 0.12,
"unit": "mg",
"percent_of_daily_needs": 9.52
},
{
"name": "Caffeine",
"amount": 0,
"unit": "mg",
"percent_of_daily_needs": 0
},
{
"name": "Potassium",
"amount": 127.57,
"unit": "mg",
"percent_of_daily_needs": 7.71
},
{
"name": "Vitamin B12",
"amount": 0.46,
"unit": "µg",
"percent_of_daily_needs": 8.65
},
{
"name": "Folate",
"amount": 0,
"unit": "µg",
"percent_of_daily_needs": 1.2
},
{
"name": "Saturated Fat",
"amount": 1.58,
"unit": "g",
"percent_of_daily_needs": 122.54
},
{
"name": "Net Carbohydrates",
"amount": 3.97,
"unit": "g",
"percent_of_daily_needs": 6.63
},
{
"name": "Phosphorus",
"amount": 85.9,
"unit": "mg",
"percent_of_daily_needs": 10.8
},
{
"name": "Manganese",
"amount": 0,
"unit": "mg",
"percent_of_daily_needs": 2.36
},
{
"name": "Vitamin D",
"amount": 0.94,
"unit": "µg",
"percent_of_daily_needs": 6.24
},
{
"name": "Fat",
"amount": 2.72,
"unit": "g",
"percent_of_daily_needs": 48.18
},
{
"name": "Alcohol",
"amount": 0,
"unit": "g",
"percent_of_daily_needs": 0
},
{
"name": "Vitamin B5",
"amount": 0.32,
"unit": "mg",
"percent_of_daily_needs": 4.32
},
{
"name": "Lycopene",
"amount": 0,
"unit": "µg",
"percent_of_daily_needs": 0
},
{
"name": "Vitamin K",
"amount": 0.26,
"unit": "µg",
"percent_of_daily_needs": 5.2
},
{
"name": "Protein",
"amount": 2.79,
"unit": "g",
"percent_of_daily_needs": 6.82
},
{
"name": "Vitamin B1",
"amount": 0.05,
"unit": "mg",
"percent_of_daily_needs": 4.71
},
{
"name": "Copper",
"amount": 0,
"unit": "mg",
"percent_of_daily_needs": 1.73
},
{
"name": "Carbohydrates",
"amount": 3.97,
"unit": "g",
"percent_of_daily_needs": 7.08
},
{
"name": "Sodium",
"amount": 32.32,
"unit": "mg",
"percent_of_daily_needs": 11.24
},
{
"name": "Poly Unsaturated Fat",
"amount": 0.09,
"unit": "g",
"percent_of_daily_needs": 0
},
{
"name": "Vitamin C",
"amount": 0,
"unit": "mg",
"percent_of_daily_needs": 6.97
},
{
"name": "Calories",
"amount": 51.03,
"unit": "kcal",
"percent_of_daily_needs": 18.35
},
{
"name": "Mono Unsaturated Fat",
"amount": 0.59,
"unit": "g",
"percent_of_daily_needs": 0
},
{
"name": "Choline",
"amount": 15.14,
"unit": "mg",
"percent_of_daily_needs": 0
},
{
"name": "Vitamin B3",
"amount": 0.09,
"unit": "mg",
"percent_of_daily_needs": 1.09
},
{
"name": "Iron",
"amount": 0,
"unit": "mg",
"percent_of_daily_needs": 0.87
},
{
"name": "Magnesium",
"amount": 10.21,
"unit": "mg",
"percent_of_daily_needs": 4.29
},
{
"name": "Selenium",
"amount": 1.62,
"unit": "µg",
"percent_of_daily_needs": 2.81
},
{
"name": "Calcium",
"amount": 104.61,
"unit": "mg",
"percent_of_daily_needs": 12.05
},
{
"name": "Vitamin A",
"amount": 137.78,
"unit": "IU",
"percent_of_daily_needs": 21.6
},
{
"name": "Sugar",
"amount": 4.09,
"unit": "g",
"percent_of_daily_needs": 19.01
},
{
"name": "Fiber",
"amount": 0,
"unit": "g",
"percent_of_daily_needs": 12
}
]
},
{
"id": 1001,
"name": "butter",
"amount": 35,
"unit": "g",
"nutrients": [
{
"name": "Folic Acid",
"amount": 0,
"unit": "µg",
"percent_of_daily_needs": 0
},
{
"name": "Cholesterol",
"amount": 75.25,
"unit": "mg",
"percent_of_daily_needs": 28.49
},
{
"name": "Zinc",
"amount": 0.03,
"unit": "mg",
"percent_of_daily_needs": 2.87
},
{
"name": "Fluoride",
"amount": 0.98,
"unit": "mg",
"percent_of_daily_needs": 0
},
{
"name": "Vitamin E",
"amount": 0.81,
"unit": "mg",
"percent_of_daily_needs": 7.2
},
{
"name": "Vitamin B6",
"amount": 0,
"unit": "mg",
"percent_of_daily_needs": 5.21
},
{
"name": "Vitamin B2",
"amount": 0.01,
"unit": "mg",
"percent_of_daily_needs": 9.52
},
{
"name": "Caffeine",
"amount": 0,
"unit": "mg",
"percent_of_daily_needs": 0
},
{
"name": "Potassium",
"amount": 8.4,
"unit": "mg",
"percent_of_daily_needs": 7.71
},
{
"name": "Vitamin B12",
"amount": 0.06,
"unit": "µg",
"percent_of_daily_needs": 8.65
},
{
"name": "Folate",
"amount": 1.05,
"unit": "µg",
"percent_of_daily_needs": 1.2
},
{
"name": "Saturated Fat",
"amount": 17.99,
"unit": "g",
"percent_of_daily_needs": 122.54
},
{
"name": "Net Carbohydrates",
"amount": 0.02,
"unit": "g",
"percent_of_daily_needs": 6.63
},
{
"name": "Phosphorus",
"amount": 8.4,
"unit": "mg",
"percent_of_daily_needs": 10.8
},
{
"name": "Manganese",
"amount": 0,
"unit": "mg",
"percent_of_daily_needs": 2.36
},
{
"name": "Vitamin D",
"amount": 0,
"unit": "µg",
"percent_of_daily_needs": 6.24
},
{
"name": "Fat",
"amount": 28.39,
"unit": "g",
"percent_of_daily_needs": 48.18
},
{
"name": "Alcohol",
"amount": 0,
"unit": "g",
"percent_of_daily_needs": 0
},
{
"name": "Vitamin B5",
"amount": 0.04,
"unit": "mg",
"percent_of_daily_needs": 4.32
},
{
"name": "Lycopene",
"amount": 0,
"unit": "µg",
"percent_of_daily_needs": 0
},
{
"name": "Vitamin K",
"amount": 2.45,
"unit": "µg",
"percent_of_daily_needs": 5.2
},
{
"name": "Protein",
"amount": 0.3,
"unit": "g",
"percent_of_daily_needs": 6.82
},
{
"name": "Vitamin B1",
"amount": 0,
"unit": "mg",
"percent_of_daily_needs": 4.71
},
{
"name": "Copper",
"amount": 0,
"unit": "mg",
"percent_of_daily_needs": 1.73
},
{
"name": "Carbohydrates",
"amount": 0.02,
"unit": "g",
"percent_of_daily_needs": 7.08
},
{
"name": "Poly Unsaturated Fat",
"amount": 1.06,
"unit": "g",
"percent_of_daily_needs": 0
},
{
"name": "Sodium",
"amount": 225.05,
"unit": "mg",
"percent_of_daily_needs": 11.24
},
{
"name": "Trans Fat",
"amount": 1.15,
"unit": "g",
"percent_of_daily_needs": 11473
},
{
"name": "Vitamin C",
"amount": 0,
"unit": "mg",
"percent_of_daily_needs": 6.97
},
{
"name": "Calories",
"amount": 250.95,
"unit": "kcal",
"percent_of_daily_needs": 18.35
},
{
"name": "Mono Unsaturated Fat",
"amount": 7.35,
"unit": "g",
"percent_of_daily_needs": 0
},
{
"name": "Choline",
"amount": 6.58,
"unit": "mg",
"percent_of_daily_needs": 0
},
{
"name": "Vitamin B3",
"amount": 0.01,
"unit": "mg",
"percent_of_daily_needs": 1.09
},
{
"name": "Iron",
"amount": 0.01,
"unit": "mg",
"percent_of_daily_needs": 0.87
},
{
"name": "Magnesium",
"amount": 0.7,
"unit": "mg",
"percent_of_daily_needs": 4.29
},
{
"name": "Selenium",
"amount": 0.35,
"unit": "µg",
"percent_of_daily_needs": 2.81
},
{
"name": "Calcium",
"amount": 8.4,
"unit": "mg",
"percent_of_daily_needs": 12.05
},
{
"name": "Vitamin A",
"amount": 874.65,
"unit": "IU",
"percent_of_daily_needs": 21.6
},
{
"name": "Sugar",
"amount": 0.02,
"unit": "g",
"percent_of_daily_needs": 19.01
},
{
"name": "Fiber",
"amount": 0,
"unit": "g",
"percent_of_daily_needs": 12
}
]
}
],
"caloric_breakdown": {
"percent_carbs": 22.33,
"percent_protein": 3.59,
"percent_fat": 74.08
},
"weight_per_serving": {
"amount": 245,
"unit": "g"
}
}
{{ codeCopyText }}
{{ codeCopyText }}
{{ codeCopyText }}
{{ codeCopyText }}
{{ codeCopyText }}
{{ codeCopyText }}