5

I'm making a recipe app. It will let users create their own recipes, and to save them the hassle of writing ingredient names their selves it would be nice to do a search in a database instead. Do anyone know if there exists a dataset with this data anywhere?

example data: Lettuce, Salmon, Strawberries, Minced meat, Salt, Cinnamon

4

I think USDA.gov's NDB (full name: USDA National Nutrient Database for Standard Reference) would get you what you need.

Download links and data metadata is available on the "About the Database" file at http://www.ars.usda.gov/Services/docs.htm?docid=8964. If you're looking solely for a list of food items, the latest Food Descriptions file is at http://www.ars.usda.gov/SP2UserFiles/Place/80400525/Data/SR27/asc/FOOD_DES.txt

There are many sites such as nutritionix.com, etc. which have APIs and have added additional commercial off the shelf ingredients like packaged goods, etc. too though so you might look into a more refined/complete collection as well. See http://www.nutritionix.com/api for information about their API.

1

Open Food Facts is producing a crowdsourced ingredient lists. It's OdBL. Read the licence, but basically: Attribution and you need to share back your additions under OdBL. http://world.openfoodfacts.org/ingredients.json

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.