Macros for Portion
macros_for_portionRetrieve calorie, protein, fat, and carbohydrate values for a specified portion size of a USDA FoodData Central food item.
Instructions
Return calories, protein, fat, and carbohydrates for a specific USDA-defined portion of a FoodData Central entry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fdcId | Yes | ||
| portionId | No | ||
| portionIndex | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | ||
| nutrients | Yes |