getFoodMacros
Get per-100 g macros and portion weights for a USDA food ID, plus the energy nutrient used, to support accurate recipe and portion math.
Instructions
Per-100 g macros for one USDA food id, with its portion weights. Also reports which energy nutrient was used, since Foundation foods report Atwater factors rather than a plain energy value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fdcId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fdcId | Yes | ||
| budget | Yes | ||
| per100g | Yes | ||
| dataType | Yes | ||
| portions | Yes | ||
| fromCache | Yes | ||
| description | Yes | ||
| energySource | Yes | ||
| foodCategory | Yes |