ingredients
Compute Ingredient Amount
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?
get/food/ingredients/{id}/amount
Request
- Base URLhttps://api.spoonacular.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idnumber required
Example:9266
The id of the ingredient you want the amount for.
Query parameters
nutrientstring required
Example:protein
The target nutrient. See a list of supported nutrients.
targetnumber required
Example:2
The target number of the given nutrient.
unitstring
Example:oz
The target unit.
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.