SearchByGroup - Resource

Summary


 Searches published foods returning those which belong to a group with the supplied name.

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

Resource


POST /rest/FoodQueryService.svc/SearchByGroup

Request
ParameterTypeDescription
 requestPublishedFoodsByGroupRequestA JSON serialized PublishedFoodsByGroupRequest object.

Examples


Example Request
 request={"GroupName":"ETHNIC"}
Example Response
 {
  "Foods": [
    {
      "HaccpData": [],
      "CookMethod": "",
      "CookTemperature": "",
      "CookTime": "",
      "Instructions": "",
      "HaccpHeadingLevel": null,
      "PanSize": "",
      "PreparationTime": "",
      "ContentClaimReferenceId": null,
      "DefinedServingWeightConversion": null,
      "UseStaticAdditionalAllergenStatement": false,
      "UseStaticAllergenStatement": false,
      "UseStaticIngredientStatement": false,
      "NutrientContentClaimsText": {
        "en-US": ""
      },
      "FoodType": 82,
      "Name": {
        "en-US": "Dish, beef teriyaki, Japanese"
      },
      "CommonName": {
        "en-US": "Dish, beef teriyaki, Japanese"
      },
      "Description": {
        "en-US": ""
      },
      "Notes": "PREP TIME: 15 Min\r\nCOOK TIME: 30 Min\r\nYIELDS: 6 Servings\r\n\r\nMETHOD:\r\n\r\nSTEP 1: In a saucepan bring 1 2/3 cups water to a boil. Add rice and stir. Reduce heat, cover and simmer for 20 minutes.\r\n\r\nSTEP 2: Meanwhile, slice beef into very thin strips.\r\n\r\nSTEP 3: In a mixing bowl, combine the cornstarch, broth, soy sauce, sugar and garlic powder. Mix thoroughly.\r\n\r\nSTEP 4: In a large skillet, over medium/high heat, saute the beef strips until browned and juices evaporate.\r\n\r\nSTEP 5: Stir broccoli and cornstarch mixture into meat. Cook until mixture boil and thickens, stirring frequently. Serve over the cooked rice.\r\n\r\nCopyrighrt @ 2005\r\nwww.allrecipes.com\r\n\r\nRecipe submitted by: Corwynn Darkholme\r\n\r\n",
      "DefiningAmount": {
        "Quantity": {
          "Value": "0",
          "Type": "Double"
        },
        "UnitId": "00000000-0000-0000-0000-000000000000"
      },
      "AmountCost": {
        "Amount": {
          "Quantity": {
            "Value": "0",
            "Type": "Double"
          },
          "UnitId": "00000000-0000-0000-0000-000000000000"
        },
        "Cost": 0
      },
      "DefaultWeightUnitId": null,
      "ConversionMapId": null,
      "Conversions": [
        {
          "From": {
            "Quantity": {
              "Value": "6",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-001f-0000-7484-751e8eaf05c6"
          },
          "ConversionFactor": {
            "Value": "1",
            "Type": "Double"
          },
          "To": {
            "Quantity": {
              "Value": "1501.66737508475",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0008-0000-7484-751e8eaf05c6"
          }
        }
      ],
      "Items": [
        {
          "FoodId": "d6e1c25c-94c3-0000-575f-443582096cec",
          "Amount": {
            "Quantity": {
              "Value": "1.5",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0003-0000-7484-751e8eaf05c6"
          },
          "Note": "\r\n\r\n"
        },
        {
          "FoodId": "d6e1c25c-2ac3-0000-575f-443582096cec",
          "Amount": {
            "Quantity": {
              "Value": "1",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0007-0000-7484-751e8eaf05c6"
          },
          "Note": "\r\n\r\n"
        },
        {
          "FoodId": "d6e1c25c-7530-0000-575f-443582096cec",
          "Amount": {
            "Quantity": {
              "Value": "2",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0002-0000-7484-751e8eaf05c6"
          },
          "Note": "\r\n\r\n"
        },
        {
          "FoodId": "d6e1c25c-c352-0000-575f-443582096cec",
          "Amount": {
            "Quantity": {
              "Value": "14",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-000a-0000-7484-751e8eaf05c6"
          },
          "Note": "\r\n\r\n"
        },
        {
          "FoodId": "d6e1c25c-cf47-0000-575f-443582096cec",
          "Amount": {
            "Quantity": {
              "Value": "2",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0002-0000-7484-751e8eaf05c6"
          },
          "Note": "\r\n\r\n"
        },
        {
          "FoodId": "d6e1c25c-61ad-0000-575f-443582096cec",
          "Amount": {
            "Quantity": {
              "Value": "1",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0002-0000-7484-751e8eaf05c6"
          },
          "Note": "\r\n\r\n"
        },
        {
          "FoodId": "d6e1c25c-6597-0000-575f-443582096cec",
          "Amount": {
            "Quantity": {
              "Value": "0.25",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0001-0000-7484-751e8eaf05c6"
          },
          "Note": "\r\n\r\n"
        },
        {
          "FoodId": "d6e1c25c-15b4-0000-575f-443582096cec",
          "Amount": {
            "Quantity": {
              "Value": "4",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0003-0000-7484-751e8eaf05c6"
          },
          "Note": "\r\n\r\n"
        }
      ],
      "GlycemicIndex": {
        "Value": "0",
        "Type": "Double"
      },
      "Created": {
        "DateTime": "2005-07-13T07:00:00",
        "Offset": "00:00:00"
      },
      "Modified": {
        "DateTime": "2016-09-15T17:55:00",
        "Offset": "00:00:00"
      },
      "LegacyKey": 2639824,
      "LegacyNutrientRefNum": null,
      "LegacyYieldKey": null,
      "UserCode": "LoveLoveTeriyaki",
      "UsdaCode": null,
      "EshaCode": null,
      "OwnerName": "",
      "AlternateNames": [],
      "AllergenStatements": [
        {
          "AllergenStatementText": {
            "en-US": "",
            "es-MX": "",
            "fr-CA": ""
          },
          "Authority": {
            "Name": {
              "en-US": "United States"
            },
            "Iso3166Alpha2": "US",
            "Iso3166Alpha3": "USA",
            "Iso3166Numeric": 840,
            "Id": "bbf4846d-8400-43bb-944d-6021fda98225"
          },
          "AllergenGroups": [],
          "IsUserGenerated": false,
          "Id": null
        }
      ],
      "IngredientStatements": [
        {
          "AlternateName": "Dish, beef teriyaki, Japanese",
          "AlternateText": "INGREDIENTS: Cooked White Glutinous Rice, bouillon, beef, canned, 14.5 oz, Beef, Broccoli, soy sauce, tamari, Cornstarch, Brown Sugar, Garlic Powder.",
          "Language": "en-US",
          "LanguageCode": 1,
          "Id": null
        },
        {
          "AlternateName": "Dish, beef teriyaki, Japanese",
          "AlternateText": "INGREDIENTES: Arroz blanco glutinoso cocido, bouillon, beef, canned, 14.5 oz, Carne vacuna, Brócoli, soy sauce, tamari, Maicena, Azúcar marrón, Ajo en polvo.",
          "Language": "es-MX",
          "LanguageCode": 2,
          "Id": null
        },
        {
          "AlternateName": "Dish, beef teriyaki, Japanese",
          "AlternateText": "INGRÉDIENTS: Riz blanc glutineux cuit, bouillon, beef, canned, 14.5 oz, Bœuf, Brocoli, soy sauce, tamari, Amidon de maïs, Sucre brun, Poudre d'ail.",
          "Language": "fr-CA",
          "LanguageCode": 3,
          "Id": null
        }
      ],
      "Brand": {
        "Supplier": "",
        "Product": "",
        "Id": null
      },
      "GroupsIds": [
        "021c021f-000a-0000-8d69-0b60293379ea",
        "021c021f-ef4a-4566-8d69-0b60293379ea"
      ],
      "NutrientTransformIds": [],
      "Images": [],
      "Id": "dbfac0f0-47d0-0028-27c3-41e8c688e289"
    },
    {
      "HaccpData": [],
      "CookMethod": "Deep Fry",
      "CookTemperature": "100",
      "CookTime": "2 Minutes",
      "Instructions": "Fry the peas...",
      "HaccpHeadingLevel": null,
      "PanSize": "Medium",
      "PreparationTime": "10 Minutes",
      "ContentClaimReferenceId": null,
      "DefinedServingWeightConversion": null,
      "UseStaticAdditionalAllergenStatement": false,
      "UseStaticAllergenStatement": false,
      "UseStaticIngredientStatement": false,
      "NutrientContentClaimsText": {
        "en-US": ""
      },
      "FoodType": 82,
      "Name": {
        "en-US": "SAMPLE, Peas, seasoned"
      },
      "CommonName": {
        "en-US": "SAMPLE, Peas, seasoned"
      },
      "Description": {
        "en-US": ""
      },
      "Notes": "\r\n\r\n",
      "DefiningAmount": {
        "Quantity": {
          "Value": "0",
          "Type": "Double"
        },
        "UnitId": "00000000-0000-0000-0000-000000000000"
      },
      "AmountCost": {
        "Amount": {
          "Quantity": {
            "Value": "0",
            "Type": "Double"
          },
          "UnitId": "00000000-0000-0000-0000-000000000000"
        },
        "Cost": 0
      },
      "DefaultWeightUnitId": null,
      "ConversionMapId": null,
      "Conversions": [
        {
          "From": {
            "Quantity": {
              "Value": "1",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-001f-0000-7484-751e8eaf05c6"
          },
          "ConversionFactor": {
            "Value": "1",
            "Type": "Double"
          },
          "To": {
            "Quantity": {
              "Value": "80",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0008-0000-7484-751e8eaf05c6"
          }
        }
      ],
      "Items": [
        {
          "FoodId": "d6e1c25c-afa6-0000-575f-443582096cec",
          "Amount": {
            "Quantity": {
              "Value": "0.08",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0006-0000-7484-751e8eaf05c6"
          },
          "Note": "\r\n\r\n"
        },
        {
          "FoodId": "d6e1c25c-659e-0000-575f-443582096cec",
          "Amount": {
            "Quantity": {
              "Value": "0.03",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0002-0000-7484-751e8eaf05c6"
          },
          "Note": "\r\n\r\n"
        },
        {
          "FoodId": "d6e1c25c-13fe-0000-575f-443582096cec",
          "Amount": {
            "Quantity": {
              "Value": "0.2",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0007-0000-7484-751e8eaf05c6"
          },
          "Note": "\r\n\r\n"
        }
      ],
      "GlycemicIndex": {
        "Value": "0",
        "Type": "Double"
      },
      "Created": {
        "DateTime": "2016-06-28T18:52:00",
        "Offset": "00:00:00"
      },
      "Modified": {
        "DateTime": "2016-08-03T19:06:00",
        "Offset": "00:00:00"
      },
      "LegacyKey": 192378071,
      "LegacyNutrientRefNum": null,
      "LegacyYieldKey": null,
      "UserCode": "SAMPLEPeas",
      "UsdaCode": null,
      "EshaCode": null,
      "OwnerName": "",
      "AlternateNames": [],
      "AllergenStatements": [
        {
          "AllergenStatementText": {
            "en-US": "",
            "es-MX": "",
            "fr-CA": ""
          },
          "Authority": {
            "Name": {
              "en-US": "United States"
            },
            "Iso3166Alpha2": "US",
            "Iso3166Alpha3": "USA",
            "Iso3166Numeric": 840,
            "Id": "bbf4846d-8400-43bb-944d-6021fda98225"
          },
          "AllergenGroups": [],
          "IsUserGenerated": false,
          "Id": null
        }
      ],
      "IngredientStatements": [
        {
          "AlternateName": "SAMPLE, Peas, seasoned",
          "AlternateText": "INGREDIENTS: GREEN PEAS, MARGARINE, SALT.",
          "Language": "en-US",
          "LanguageCode": 1,
          "Id": null
        },
        {
          "AlternateName": "SAMPLE, Peas, seasoned",
          "AlternateText": "INGREDIENTES: GUISANTES VERDES, MARGARINE, SAL.",
          "Language": "es-MX",
          "LanguageCode": 2,
          "Id": null
        },
        {
          "AlternateName": "SAMPLE, Peas, seasoned",
          "AlternateText": "INGRÉDIENTS: POIS VERTS, MARGARINE, SEL.",
          "Language": "fr-CA",
          "LanguageCode": 3,
          "Id": null
        }
      ],
      "Brand": {
        "Supplier": "",
        "Product": "",
        "Id": null
      },
      "GroupsIds": [
        "021c021f-000a-0000-8d69-0b60293379ea"
      ],
      "NutrientTransformIds": [],
      "Images": [],
      "Id": "dbfac0f0-74d7-0b77-27c3-41e8c688e289"
    },
    {
      "HaccpData": [],
      "CookMethod": "",
      "CookTemperature": "",
      "CookTime": "",
      "Instructions": "",
      "HaccpHeadingLevel": null,
      "PanSize": "",
      "PreparationTime": "",
      "ContentClaimReferenceId": null,
      "DefinedServingWeightConversion": null,
      "UseStaticAdditionalAllergenStatement": false,
      "UseStaticAllergenStatement": false,
      "UseStaticIngredientStatement": false,
      "NutrientContentClaimsText": {
        "en-US": ""
      },
      "FoodType": 82,
      "Name": {
        "en-US": "PROD Cauliflower Rice 646571, 652098, 665485, 665486"
      },
      "CommonName": {
        "en-US": "PROD Cauliflower Rice 646571, 652098, 665485, 665486"
      },
      "Description": {
        "en-US": ""
      },
      "Notes": "gem 6/30/16: Input new recipe per Help Desk.  Applied cook loss & adjusted Vit C.  Basting Oil not incl in pkg.\r\n\r\n",
      "DefiningAmount": {
        "Quantity": {
          "Value": "0",
          "Type": "Double"
        },
        "UnitId": "00000000-0000-0000-0000-000000000000"
      },
      "AmountCost": {
        "Amount": {
          "Quantity": {
            "Value": "0",
            "Type": "Double"
          },
          "UnitId": "00000000-0000-0000-0000-000000000000"
        },
        "Cost": 0
      },
      "DefaultWeightUnitId": null,
      "ConversionMapId": null,
      "Conversions": [
        {
          "From": {
            "Quantity": {
              "Value": "1",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-001f-0000-7484-751e8eaf05c6"
          },
          "ConversionFactor": {
            "Value": "1",
            "Type": "Double"
          },
          "To": {
            "Quantity": {
              "Value": "113",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0008-0000-7484-751e8eaf05c6"
          }
        }
      ],
      "Items": [
        {
          "FoodId": "d6e1c25c-13b9-0000-575f-443582096cec",
          "Amount": {
            "Quantity": {
              "Value": "1",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0007-0000-7484-751e8eaf05c6"
          },
          "Note": "\r\n\r\n"
        },
        {
          "FoodId": "d6e1c25c-61a5-5059-575f-443582096cec",
          "Amount": {
            "Quantity": {
              "Value": "2",
              "Type": "Double"
            },
            "UnitId": "a7df0af5-0002-0000-7484-751e8eaf05c6"
          },
          "Note": "Used in RTC Meat/Seafood   6/9/15   PR\r\nUsed in RTC Produce - Fresh Cut Veg 6/22/15 gem\r\n\r\n"
        }
      ],
      "GlycemicIndex": {
        "Value": "0",
        "Type": "Double"
      },
      "Created": {
        "DateTime": "2016-06-30T07:00:00",
        "Offset": "00:00:00"
      },
      "Modified": {
        "DateTime": "2016-08-03T01:22:00",
        "Offset": "00:00:00"
      },
      "LegacyKey": 1181943855,
      "LegacyNutrientRefNum": null,
      "LegacyYieldKey": null,
      "UserCode": "646571, 652098, 665485, 665486",
      "UsdaCode": null,
      "EshaCode": null,
      "OwnerName": "",
      "AlternateNames": [],
      "AllergenStatements": [
        {
          "AllergenStatementText": {
            "en-US": "ALLERGENS:  MAY CONTAIN Crustacean Shellfish, Egg, Fish, Milk, Peanuts, Soy, Tree Nuts and Wheat due to shared preparation area.|",
            "es-MX": "Contiene Huevo, Pescados, Leche, Cacahuete, Crustáceos, Soya, Tuercas del árbol, Trigo.|",
            "fr-CA": "Contient Oeuf, Poissons, Lait, Arachide, Mollusques et crustacés, Soja, Noix, Blé.|"
          },
          "Authority": {
            "Name": {
              "en-US": "United States"
            },
            "Iso3166Alpha2": "US",
            "Iso3166Alpha3": "USA",
            "Iso3166Numeric": 840,
            "Id": "bbf4846d-8400-43bb-944d-6021fda98225"
          },
          "AllergenGroups": [],
          "IsUserGenerated": false,
          "Id": null
        }
      ],
      "IngredientStatements": [
        {
          "AlternateName": "PROD Cauliflower Rice 646571, 652098, 665485, 665486",
          "AlternateText": "INGREDIENTS: Name 646571 & 665485: Cauliflower Rice, Great for 3-4 People \nName 652098 & 665486: Family Pack Cauliflower Rice, Great for 5-6 People \nKeep Refrigerated\nWashed & Ready to Use\n\nIngredients: Cauliflower.\n\nSaute: Heat 2 Tbsp basting oil in skillet on MED-HIGH, add cauliflower rice. Cook stirring often 5-7 min or until tender. Season with salt and pepper.\n\nSaute: Heat 3 Tbsp basting oil in skillet on MED-HIGH, add cauliflower rice. Cook, stirring often 5-7 min or until tender. Season with salt and pepper.",
          "Language": "en-US",
          "LanguageCode": 1,
          "Id": null
        },
        {
          "AlternateName": "PROD Cauliflower Rice 646571, 652098, 665485, 665486",
          "AlternateText": "INGREDIENTES: Coliflor, Weg FYFGA Basting Oil.",
          "Language": "es-MX",
          "LanguageCode": 2,
          "Id": null
        },
        {
          "AlternateName": "PROD Cauliflower Rice 646571, 652098, 665485, 665486",
          "AlternateText": "INGRÉDIENTS: Chou-fleur, Weg FYFGA Basting Oil.",
          "Language": "fr-CA",
          "LanguageCode": 3,
          "Id": null
        }
      ],
      "Brand": {
        "Supplier": "",
        "Product": "",
        "Id": null
      },
      "GroupsIds": [
        "021c021f-000a-0000-8d69-0b60293379ea",
        "021c021f-a897-066f-8d69-0b60293379ea"
      ],
      "NutrientTransformIds": [],
      "Images": [],
      "Id": "dbfac0f0-082f-4673-27c3-41e8c688e289"
    }
  ],
  "Status": 0
}