Recipe - Food - Nutrition

GRATIS CON POSSIBILITÀ DI UPGRADE
Da David | Aggiornamento 24 дня назад | Food
Popolarità

9.9 / 10

Latenza

1,410ms

Livello di servizio

100%

Health Check

N/A

Torna a tutte le discussioni

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?

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti