Get Multiple Foods
get-foodsBatch lookup USDA food nutrition data by FDC IDs. Submit up to 50 IDs in one request to minimize API calls, with abridged/full detail and nutrient filter options.
Instructions
Batch lookup for multiple FDC IDs via the USDA bulk endpoint. Provide up to 50 IDs to reduce repeated network calls. Supports abridged/full detail and nutrient filters per the API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fdcIds | Yes | ||
| format | No | ||
| nutrients | No | List of nutrient IDs to include (per API documentation). | |
| includeRaw | No | ||
| sampleSize | No | ||
| previewOnly | No | ||
| estimateOnly | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| foods | No | ||
| summary | Yes | ||
| previews | Yes |