NUTRITION_UNIT_G | NUTRITION_UNIT_MG | NUTRITION_UNIT_MKG | NUTRITION_UNIT_KCAL
Macronutrients and Fiber are returned in grams
Micronutrients are returned either in milligrams of micrograms
Energy is returned in Kilocalories
measures_with_nutrition.nutrition.nutrition.code
no
enum
See below
Nutrition codes
Whisk is always trying to provide full up to date nutritional data, although all nutrition codes for food are not always available. Nutrition codes for missing data are not returned.
NUTRITION_CODE_ENERC_KCAL: Energy
NUTRITION_CODE_FAT: Total Fat
NUTRITION_CODE_FASAT: Saturated Fat
NUTRITION_CODE_CHOCDF: Carbohydrate Total
NUTRITION_CODE_SUGAR: Sugars
NUTRITION_CODE_PROCNT: Protein
NUTRITION_CODE_NA: Sodium
NUTRITION_CODE_FIBTG: Fiber
NUTRITION_CODE_FATRN: Trans Fat
NUTRITION_CODE_FAMS: Monounsaturated Fat
NUTRITION_CODE_FAPU: Polyunsaturated Fat
NUTRITION_CODE_FAT_UNSAT: Unsaturated Fat
NUTRITION_CODE_CHOLE: Cholesterol
NUTRITION_CODE_CA: Calcium
NUTRITION_CODE_MG: Magnesium
NUTRITION_CODE_K: Potassium
NUTRITION_CODE_FE: Iron
NUTRITION_CODE_ZN: Zinc
NUTRITION_CODE_P: Phosphorus
NUTRITION_CODE_VITA_RAE: Vitamin A
NUTRITION_CODE_VITC: Vitamin C
NUTRITION_CODE_THIA: Thiamin B1
NUTRITION_CODE_RIBF: Riboflavin B2
NUTRITION_CODE_NIA: Niacin B3
NUTRITION_CODE_VITB6A: Vitamin B6
NUTRITION_CODE_FOL: Folic Acid B9
NUTRITION_CODE_VITB12: Vitamin B12
NUTRITION_CODE_VITD: Vitamin D
NUTRITION_CODE_TOCPHA: Vitamin E
NUTRITION_CODE_VITK1: Vitamin K
Imperial measures
When country is specified in the request and is one of USA, UK, Canada, then Whisk API will return measures in both Metric and Imperial systems.
Measures and nutrition explained
To support volume based measures we've introduced a nutrition_coefficient attribute. Let's see it on the following example
Whisk API returns nutrition per 100g in metric units. It's a standard adopted all over the world including USDA and KFDA.
The response above means:
There's 60 kCal and 3.2g of Fat in 100g of Milk.
The cup of milk has volume of 240 ml or 8.11 fl oz. The cup of milk weights 2.448 times more than 100g of milk.
So the cup of milk has 60 * 2.448 = 146.88 kCal and 3.2 * 2.448 = 7.8g of Fat.
Sometimes one product may come with different attributes e.g. cooked or fried. Since nutrition of cooked product is different, it will come as a separate item within measures_with_nutrition array.