Get Food Details
get-foodRetrieve a USDA FoodData Central record by its numeric ID, choosing abridged or full detail and filtering nutrients as needed.
Instructions
Look up a single FoodData Central (FDC) record by numeric ID. Supports abridged/full detail toggles and nutrient ID subsets to trim responses. Ideal once you already know the identifier.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fdcId | Yes | ||
| format | No | ||
| nutrients | No | List of nutrient IDs to include (per API documentation). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| food | Yes | ||
| macros | No | ||
| summary | Yes |