Get food macronutrients and portion
Retrieve macronutrients per 100 g and the portion of a single food, addressed by the (source, id) pair returned by the search endpoint. Use it to redisplay a food already stored in a diary without searching for it again. Italian only: answers 406 for any other Accept-Language.
Response
FoodMacronutrientsResult
Macronutrients and portion of a single food
object
FoodMacronutrientsResult
Macronutrients and portion of a single food
id
Identifier within its own catalog
source
Which catalog a food comes from. 'generic' is a food from the Tuduu food database: no brand, no pack, nutrients per 100 g, and it is what a diary entry usually refers to. 'packaged' is a product from the Tuduu master catalog, with brand, pack format and the nutrients declared on the label. The two catalogs have independent identifier spaces, so a food is addressed by the pair (source, id) and never by the id alone
portion?
object
portion?
All of
Variant 1
One portion of the food. Null when neither a weight nor a label description is known
object
Variant 1
One portion of the food. Null when neither a weight nor a label description is known
grams?
Portion weight in grams. Null when it is not known, or when the label describes the portion without a weight ('1 jar'). Never inferred from the pack size
label?
Portion exactly as printed on the label ('30 g', '1 jar'). Null for generic foods, which have no label
isDeclared
True when Grams comes from a numeric field, false when it was extracted from the free-text label. Read it before using Grams in a calculation: a false here means the number is our reading of the label, not a value declared as a number
macronutrients
Macronutrients per 100 g of food
object
macronutrients
Macronutrients per 100 g of food
kcal?
Kilocalories
fat?
Total fat (g)
saturatedFat?
Saturated fat (g)
carbohydrates?
Carbohydrates (g)
sugars?
Sugars (g)
protein?
Protein (g)
salt?
Salt (g)
fiber?
Dietary fibre (g)
Unauthorized
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Forbidden
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Not Found
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Not Acceptable
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Unprocessable Entity
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Too Many Requests (APIM)
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Internal Server Error
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Bad Gateway (APIM)
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Gateway Timeout (APIM)
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?