Get USDA Food
usda_get_foodGet the full nutrient profile for one food by FDC ID. Returns all available nutrients (or a filtered subset via the nutrients[] param) with optional per-portion scaling. Use usda_search_foods to discover FDC IDs. Provide quantity + unit to scale all nutrient values from per-100g to the specified portion (e.g. quantity=200, unit="g" → per-200g values). Use unit="serving" to scale to the food's first defined portion weight. Narrow nutrients[] to specific IDs to reduce response size for focused queries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Unit for quantity. "serving" uses the food's first defined portion weight. Required when quantity is provided. | |
| fdcId | Yes | FDC ID of the food. Use usda_search_foods to discover IDs. | |
| quantity | No | Amount of food to scale nutrient values to. Must be positive. When provided, unit is required. Omit for per-100g values (FDC database native basis). | |
| nutrients | No | Filter to specific nutrient IDs (e.g. [1003, 1004, 1005, 1008] for protein, fat, carbs, energy). Use usda_list_nutrients to look up IDs. Omit to return all available nutrients. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| fdcId | No | FDC ID of the food. | |
| dataType | No | FDC data source: SR Legacy, Foundation, Survey (FNDDS), or Branded. | |
| scaledTo | No | Scaling basis when quantity+unit were provided. Absent when returning per-100g values. | |
| brandName | No | Brand name. Branded items only. | |
| nutrients | No | Nutrient values for this food, per 100g or scaled to the requested quantity. | |
| brandOwner | No | Brand owner. Branded items only. | |
| allPortions | No | All named portions for this food. | |
| description | No | Full USDA food name (e.g. "Chicken, broilers or fryers, breast, meat only, raw"). | |
| ingredients | No | Ingredient list from label. Branded items only. | |
| servingInfo | No | First available portion definition, if present. | |
| foodCategory | No | USDA food category (e.g. "Poultry Products"). Absent for some branded items. | |
| publicationDate | No | Date this food entry was published in FDC. |