Recipe - Food - Nutrition

免费增值
Verified
通过 David | 已更新 24 दिन पहले | Food
人气

9.9 / 10

延迟

1,410ms

服务等级

100%

Health Check

N/A

返回所有讨论

How to "get nutritional information for ingredients" and other ingredient data

Rapid account: Hawes Domingue
HawesDomingue
8 वर्ष पहले

It says on the front page of the API that you can “get nutritional information for ingredients”, and that there are 2000+ ingredients in the API’s database. So how do I access that through the API? I couldn’t find any documentation for it. It would be really awesome if I could search for an ingredient by name or lookup by ID and get nutritional information, price data, cooking tips, etc.

Rapid account: Spoonacular
spoonacular Commented 8 वर्ष पहले

I appreciate your feedback! Well another thing you can use is the quick answer endpoint https://market.mashape.com/spoonacular/recipe-food-nutrition#quick-answer … just try “calories in 100g apples” and you get exactly what you want. “vitamin c in 2 carrots” etc. works too…

Rapid account: Hawes Domingue
HawesDomingue Commented 8 वर्ष पहले

It helps somewhat. I was hoping more for a way to just look up a single ingredient and it would give me info on, for example, how many calories per 100g. Plus the price data and cooking tips that were mentioned on the API’s front page sounded cool. I may just end up using the USDA’s nutrient database for most of this (they also include scientific names for ingredients, another thing I’m after), but thank you for your reply.

Rapid account: Spoonacular
spoonacular Commented 8 वर्ष पहले

You cannot query ingredient nutrition individually but you get them when asking for information of a recipe (https://market.mashape.com/spoonacular/recipe-food-nutrition#recipe-information) with the nutrition parameter set to true. Here you will see how each ingredient contributes to the recipes total nutrition. Does that help you?

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论