ESHA's Nutrition Database API provides an interface between your website or application to their cloud-hosted food & nutrition database.
When a user searches for a food item on your website or app, a list of selections meeting the search criteria is returned. The user selects the closest match, selects a quantity and measure, and adds the item to the list. From there, the user can view a nutrition breakdown of total Calories, Fat, Protein, and other nutrients. Results reflect varying available forms and products (fresh, frozen, packaged, etc.)
ESHA's database includes a wide range of ingredients with generic and brand name foods. ESHA's data is compiled from a variety of reputable sources including the latest USDA Standard Reference database, manufacturer's data, and data from restaurants. Information is based on frequently updated submissions from more than 200 suppliers. All data that ESHA collects is run through a quality-check process including verification of all data sources, electronic mathematical verifications, and review by our research team to ensure accuracy and integrity. Sources are contacted to reconcile any questionable data. Data that cannot be reconciled is not added to the database.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.
ESHA Nutrition Node.js code sample available in the official site. This demo application with code shows how to use ESHA Web Services in the application. Some of the features that illustrate this sample are lists, nutrients, and food units. Results can be also seen in JSON protocol.