GetAnalysisByUserCode - Resource

Summary


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.

Resource


POST /rest/FoodQueryService.svc/GetAnalysisByUserCode

Request
ParameterTypeDescription
requestFoodAnalysisRequestA JSON serialized FoodAnalysisRequest object.

Examples

Example Request
request={"UserCode":"15", "UnitId":"a7df0af5-001f-0000-7484-751e8eaf05c6", "Quantity":{"Value":1}}
Example Response
 {
	"Food": {
		…
	},
	"FoodRawAnalysis": {
		"FoodId": "dbfac0f0-b138-08c8-27c3-41e8c688e289",
		"Amount": {
			"Quantity": {
				"Value": 1
			},
			"UnitId": "e18c6bbd-0063-0000-b47b-3e1e9fe8d6f3"
		},
		"NutrientIdVector": {
			"d50e91b9-0000-0000-76f8-aaed21c5cc84": {
				"Value": 2628.5056312431434
			},
			"d50e91b9-0001-0000-76f8-aaed21c5cc84": {
				"Value": 170.43693073478033
			},
			"d50e91b9-0002-0000-76f8-aaed21c5cc84": {
				"Value": 40.370537615461764
			},
			"d50e91b9-0003-0000-76f8-aaed21c5cc84": {
				"Value": 9.9158761470288
			},
			"d50e91b9-0004-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0005-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0006-0000-76f8-aaed21c5cc84": {
				"Value": 13.946200000337281
			},
			"d50e91b9-0007-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0008-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0009-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-000a-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-000b-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-000c-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-000d-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-000e-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0010-0000-76f8-aaed21c5cc84": {
				"Value": 16.50846146809568
			},
			"d50e91b9-0011-0000-76f8-aaed21c5cc84": {
				"Value": 172.36265565543613
			},
			"d50e91b9-0012-0000-76f8-aaed21c5cc84": {
				"Value": 80.18510574731329
			},
			"d50e91b9-0013-0000-76f8-aaed21c5cc84": {
				"Value": 42.55912742496968
			},
			"d50e91b9-0014-0000-76f8-aaed21c5cc84": {
				"Value": 3.618498561894448
			},
			"d50e91b9-0015-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0016-0000-76f8-aaed21c5cc84": {
				"Value": 621.0175908
			},
			"d50e91b9-0017-0000-76f8-aaed21c5cc84": {
				"Value": 593.0367070264876
			},
			"d50e91b9-0018-0000-76f8-aaed21c5cc84": {
				"Value": 5.90557307316336
			},
			"d50e91b9-0019-0000-76f8-aaed21c5cc84": {
				"Value": 32832.67794004792
			},
			"d50e91b9-001a-0000-76f8-aaed21c5cc84": {
				"Value": 3523.2677620180953
			},
			"d50e91b9-001b-0000-76f8-aaed21c5cc84": {
				"Value": 3043.2677620180953
			},
			"d50e91b9-001c-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-001d-0000-76f8-aaed21c5cc84": {
				"Value": 15113.7144499068
			},
			"d50e91b9-001e-0000-76f8-aaed21c5cc84": {
				"Value": 0.8613383989382121
			},
			"d50e91b9-001f-0000-76f8-aaed21c5cc84": {
				"Value": 1.010821433376649
			},
			"d50e91b9-0020-0000-76f8-aaed21c5cc84": {
				"Value": 27.754340090974594
			},
			"d50e91b9-0021-0000-76f8-aaed21c5cc84": {
				"Value": 29.044754494671395
			},
			"d50e91b9-0022-0000-76f8-aaed21c5cc84": {
				"Value": 2.251411075561776
			},
			"d50e91b9-0023-0000-76f8-aaed21c5cc84": {
				"Value": 12.020197805
			},
			"d50e91b9-0024-0000-76f8-aaed21c5cc84": {
				"Value": -1
			},
			"d50e91b9-0025-0000-76f8-aaed21c5cc84": {
				"Value": 25.909224771268804
			},
			"d50e91b9-0026-0000-76f8-aaed21c5cc84": {
				"Value": 87.5511496
			},
			"d50e91b9-0027-0000-76f8-aaed21c5cc84": {
				"Value": 0.9071847399999999
			},
			"d50e91b9-0028-0000-76f8-aaed21c5cc84": {
				"Value": 0.61944
			},
			"d50e91b9-0029-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-002a-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-002b-0000-76f8-aaed21c5cc84": {
				"Value": 178.419810546048
			},
			"d50e91b9-002c-0000-76f8-aaed21c5cc84": {
				"Value": 70.5676153371424
			},
			"d50e91b9-002d-0000-76f8-aaed21c5cc84": {
				"Value": 2.993461581650224
			},
			"d50e91b9-002e-0000-76f8-aaed21c5cc84": {
				"Value": -1
			},
			"d50e91b9-002f-0000-76f8-aaed21c5cc84": {
				"Value": 1723.464564371504
			},
			"d50e91b9-0030-0000-76f8-aaed21c5cc84": {
				"Value": -1
			},
			"d50e91b9-0031-0000-76f8-aaed21c5cc84": {
				"Value": 10.659420695
			},
			"d50e91b9-0032-0000-76f8-aaed21c5cc84": {
				"Value": 0.6034850236832723
			},
			"d50e91b9-0033-0000-76f8-aaed21c5cc84": {
				"Value": -1
			},
			"d50e91b9-0034-0000-76f8-aaed21c5cc84": {
				"Value": -1
			},
			"d50e91b9-0035-0000-76f8-aaed21c5cc84": {
				"Value": 13.994804895051944
			},
			"d50e91b9-0036-0000-76f8-aaed21c5cc84": {
				"Value": 137.361265897568
			},
			"d50e91b9-0037-0000-76f8-aaed21c5cc84": {
				"Value": 0.745921605819296
			},
			"d50e91b9-0038-0000-76f8-aaed21c5cc84": {
				"Value": 15.42214058
			},
			"d50e91b9-0039-0000-76f8-aaed21c5cc84": {
				"Value": 951.5455401649641
			},
			"d50e91b9-003a-0000-76f8-aaed21c5cc84": {
				"Value": 1889.9585449954664
			},
			"d50e91b9-003b-0000-76f8-aaed21c5cc84": {
				"Value": 101.0408962473328
			},
			"d50e91b9-003c-0000-76f8-aaed21c5cc84": {
				"Value": 2087.887666159146
			},
			"d50e91b9-003d-0000-76f8-aaed21c5cc84": {
				"Value": 23.3932720841816
			},
			"d50e91b9-003e-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-003f-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0040-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0041-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0042-0000-76f8-aaed21c5cc84": {
				"Value": 0.003198669724848
			},
			"d50e91b9-0043-0000-76f8-aaed21c5cc84": {
				"Value": 3.129787353
			},
			"d50e91b9-0044-0000-76f8-aaed21c5cc84": {
				"Value": 0.5034875307000001
			},
			"d50e91b9-0045-0000-76f8-aaed21c5cc84": {
				"Value": 22.620436695589664
			},
			"d50e91b9-0046-0000-76f8-aaed21c5cc84": {
				"Value": 1.1838760857
			},
			"d50e91b9-0047-0000-76f8-aaed21c5cc84": {
				"Value": 12.641330421473935
			},
			"d50e91b9-0048-0000-76f8-aaed21c5cc84": {
				"Value": 0.0997903214
			},
			"d50e91b9-0049-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-004a-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-004b-0000-76f8-aaed21c5cc84": {
				"Value": 0.8119303423
			},
			"d50e91b9-004c-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-004d-0000-76f8-aaed21c5cc84": {
				"Value": 3.123818215233103
			},
			"d50e91b9-004e-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-004f-0000-76f8-aaed21c5cc84": {
				"Value": 38.44647784313658
			},
			"d50e91b9-0050-0000-76f8-aaed21c5cc84": {
				"Value": 0.1769010243
			},
			"d50e91b9-0051-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0052-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0053-0000-76f8-aaed21c5cc84": {
				"Value": 3.2098486652750724
			},
			"d50e91b9-0054-0000-76f8-aaed21c5cc84": {
				"Value": 0.314732752894528
			},
			"d50e91b9-0055-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0056-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0057-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0058-0000-76f8-aaed21c5cc84": {
				"Value": 0.013607771099999999
			},
			"d50e91b9-0059-0000-76f8-aaed21c5cc84": {
				"Value": 0.0725747792
			},
			"d50e91b9-005a-0000-76f8-aaed21c5cc84": {
				"Value": 0.0045359237
			},
			"d50e91b9-005b-0000-76f8-aaed21c5cc84": {
				"Value": 0.405451226894528
			},
			"d50e91b9-005c-0000-76f8-aaed21c5cc84": {
				"Value": 3.2098486652750724
			},
			"d50e91b9-005d-0000-76f8-aaed21c5cc84": {
				"Value": 0.47660178900235206
			},
			"d50e91b9-005e-0000-76f8-aaed21c5cc84": {
				"Value": 0.7420913761647361
			},
			"d50e91b9-005f-0000-76f8-aaed21c5cc84": {
				"Value": 0.9436075688301602
			},
			"d50e91b9-0060-0000-76f8-aaed21c5cc84": {
				"Value": 0.131145458718768
			},
			"d50e91b9-0061-0000-76f8-aaed21c5cc84": {
				"Value": 1.4937787615040161
			},
			"d50e91b9-0062-0000-76f8-aaed21c5cc84": {
				"Value": 0.326264311934496
			},
			"d50e91b9-0063-0000-76f8-aaed21c5cc84": {
				"Value": 0.201516192665424
			},
			"d50e91b9-0064-0000-76f8-aaed21c5cc84": {
				"Value": 0.37104568808236804
			},
			"d50e91b9-0065-0000-76f8-aaed21c5cc84": {
				"Value": 0.5917538990968801
			},
			"d50e91b9-0066-0000-76f8-aaed21c5cc84": {
				"Value": 0.5821578899223361
			},
			"d50e91b9-0067-0000-76f8-aaed21c5cc84": {
				"Value": 0.14394013761816002
			},
			"d50e91b9-0068-0000-76f8-aaed21c5cc84": {
				"Value": 0.36464834863267204
			},
			"d50e91b9-0069-0000-76f8-aaed21c5cc84": {
				"Value": 0.316668302759952
			},
			"d50e91b9-006a-0000-76f8-aaed21c5cc84": {
				"Value": 0.329462981659344
			},
			"d50e91b9-006b-0000-76f8-aaed21c5cc84": {
				"Value": 0.498992477076288
			},
			"d50e91b9-006c-0000-76f8-aaed21c5cc84": {
				"Value": 0.067172064221808
			},
			"d50e91b9-006d-0000-76f8-aaed21c5cc84": {
				"Value": 0.214310871564816
			},
			"d50e91b9-006e-0000-76f8-aaed21c5cc84": {
				"Value": 0.425423073404784
			},
			"d50e91b9-006f-0000-76f8-aaed21c5cc84": {
				"Value": 37.140798980712894
			},
			"d50e91b9-0070-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0071-0000-76f8-aaed21c5cc84": {
				"Value": -1
			},
			"d50e91b9-0072-0000-76f8-aaed21c5cc84": {
				"Value": -1
			},
			"d50e91b9-0073-0000-76f8-aaed21c5cc84": {
				"Value": -1
			},
			"d50e91b9-0074-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0075-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0076-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0077-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0078-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0079-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-007a-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-007b-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-007c-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-007d-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-007e-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-007f-0000-76f8-aaed21c5cc84": {
				"Value": 396.2758300397488
			},
			"d50e91b9-0080-0000-76f8-aaed21c5cc84": {
				"Value": -1
			},
			"d50e91b9-0081-0000-76f8-aaed21c5cc84": {
				"Value": 10997.667561121312
			},
			"d50e91b9-0082-0000-76f8-aaed21c5cc84": {
				"Value": 5975.115046016064
			},
			"d50e91b9-0083-0000-76f8-aaed21c5cc84": {
				"Value": 316.66830275995204
			},
			"d50e91b9-0084-0000-76f8-aaed21c5cc84": {
				"Value": 18259.60612429481
			},
			"d50e91b9-0085-0000-76f8-aaed21c5cc84": {
				"Value": 4919.554036816224
			},
			"d50e91b9-0086-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0087-0000-76f8-aaed21c5cc84": {
				"Value": 1.66330825692096
			},
			"d50e91b9-00b4-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-00b5-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-00b6-0000-76f8-aaed21c5cc84": {
				"Value": 178.419810546048
			},
			"d50e91b9-00b7-0000-76f8-aaed21c5cc84": {
				"Value": 178.419810546048
			},
			"d50e91b9-00c6-0000-76f8-aaed21c5cc84": {
				"Value": 1521.633865015699
			},
			"d50e91b9-01fe-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0209-0000-76f8-aaed21c5cc84": {
				"Value": 5.6
			},
			"d50e91b9-020c-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-020d-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-020e-0000-76f8-aaed21c5cc84": {
				"Value": 16.011810661
			},
			"d50e91b9-0226-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-022a-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-022b-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-022c-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-022d-0000-76f8-aaed21c5cc84": {
				"Value": 13.6077711
			},
			"d50e91b9-0232-0000-76f8-aaed21c5cc84": {
				"Value": 2.5575999298095704
			},
			"d50e91b9-0233-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-0235-0000-76f8-aaed21c5cc84": {
				"Value": 14.96854821
			},
			"d50e91b9-03e8-0000-76f8-aaed21c5cc84": {
				"Value": -1
			},
			"d50e91b9-03e9-0000-76f8-aaed21c5cc84": {
				"Value": 1108.6593394330423
			},
			"d50e91b9-03ec-0000-76f8-aaed21c5cc84": {
				"Value": 1551.2639008989254
			},
			"d50e91b9-03ed-0000-76f8-aaed21c5cc84": {
				"Value": 721.6659517258197
			},
			"d50e91b9-03f4-0000-76f8-aaed21c5cc84": {
				"Value": -1
			},
			"d50e91b9-03f6-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-03f7-0000-76f8-aaed21c5cc84": {
				"Value": 0
			},
			"d50e91b9-03f8-0000-76f8-aaed21c5cc84": {
				"Value": 30.454661468432963
			}
		},
		"Id": null
	},
	"ItemsRawAnalysis": null,
	"LabelNutrients": […],
	"IngredientStatement": {
		…
	},
	"AllergenStatement": {
		…
	},
	"Status": 0
}