GET food/ingredients/{id}/amount

spoonacular.com

Summary: Compute Ingredient Amount
Operation ID: computeIngredientAmount
Auth: unknown
Description

Compute the amount you need of a certain ingredient for a certain nutritional goal. For example, how much pineapple do you have to eat to get 10 grams of protein?

Parameters (4)

id (number, path, required)

The id of the ingredient you want the amount for.

nutrient (string, query, required)

The target nutrient. See a list of supported nutrients.

target (number, query, required)

The target number of the given nutrient.

unit (string, query, optional)

The target unit.

No probe data for this endpoint yet.