USDA FoodData Central API guide
fdc.nal.usda.gov
Search USDA FoodData Central by food name or dataset, then use an FDC ID to retrieve the nutrient amounts in a food record.
Actions and inputs
foods get-searchFind food records by keyword and optionally narrow results by dataset.
Inputs query, optional data type and page size
foodLook up one food record and its nutrient amounts.
Inputs FDC ID, optional format and nutrient IDs
foods getRetrieve up to 20 food records by FDC ID in one request.
Inputs FDC IDs, optional format and nutrient IDs
foods get-listBrowse food records one page at a time.
Inputs page number
Saved USDA FoodData Central search in Smith
- Create
Save a USDA food search in Smith with an optional dataset filter.
Inputs search name, food keywords, optional data type
- Read
Run the saved USDA food search to see matching records and FDC IDs.
Inputs saved search ID
- Update
Change the food keywords or dataset filter for the saved USDA search.
Inputs saved search ID, new keywords or data type
- Delete
Delete the saved USDA food search from Smith.
Inputs saved search ID