GetAnalysisByFoodId 1.X-2.X

Summary


Available in Version 1.3.x - Retrieves an analysis for the entire food identified by the specified userCode value if it is published. 

Note: If you are upgrading to Gen API 3.1 (or later) you will want to reference this page.

Soap Action
http://ns.esha.com/2013/genesisapi/GetAnalysisByFoodId
Request

Request Type: AnalysisByFoodIdRequest

ElementContent TypeDescription
 FoodId xs:guid The value of the FoodId field on the food.
Response

 Response Type: FoodAnalysisResponse Element

ElementTypeDescription
 Foodexlx:FoodDtoThe metadata and list of items in the food matching the FoodId value.
 FoodRawAnalysisexlx:AnalysisDto
 ItemsRawAnalysisapi:ArrayOfAnalysisDto
 LabelNutrientsexlx:ArrayOfLabelNutrientDto
 IngredientStatementexlx:IngredientStatementInfoDto
 AllergenStatementexlx:AllergenStatementDto

Examples

Query food analysis for user code