For the complete documentation index, see llms.txt. This page is also available as Markdown.

Recipe Search by Name or Ingredients

Search for recipes by their name or by ingredients

Use searchRecipeByNameOrIngredient to find recipes that contain the query string in the name or in the ingredient list. This search is a variation of the recipe search query. This returns back 2 lists of compliant and non-compliant foods.

This query returns two lists of results:

onPlan and otherResults each with a list of the recipe objects.

  • onPlan list which represents recipes that comply with the user's program and food preferences/restrictions.

  • otherResults list represents other recipes that match the query but don't comply with the user's program or the user's food preferences.

The main difference between this search and recipeSearch is that this search returns two sets of results, as explained above.

Arguments

Argument Name

Required

Type

Description

searchRecipeByNameOrIngredient

True

query

Search's query string. The query is case insensitive. For example, salmon or Salmon should retrieve the same information.

Examples

Search by name

In the following example, all the recipes that contain "salmon" or "salad" are searched. Within the query, use as many names or ingredients as required.

{
  searchRecipeByNameOrIngredient(query: "salmon salad") {
    onPlan {
      id
      name
      servingWeight
      author
    }
    otherResults {
      id
      name
      servingWeight
      author
    }
  }
}
{
  "data": {
    "searchRecipeByNameOrIngredient": {
      "onPlan": [
        {
          "id": "UmVjaXBlOjNmMTVmNzkzLTc1ZmQtNGE3YS04MDBkLTIwNGUwZDczYzFkMw==",
          "name": "Salmon Salad Power Bowl",
          "servingWeight": 232.548569375,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjEzYTFjMjE1LTJmN2EtNGU1Yi05YzczLWQwZTFmNGNkM2EyYQ==",
          "name": "Salmon Salad Power Bowl",
          "servingWeight": 407.747615625,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOmU0MjBkOTcwLTc4OGItNGEwNS05ZDVhLWQzMGU4YjEyZjYxOQ==",
          "name": "Salmon Pasta",
          "servingWeight": 208.58928229166668,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjdkOTRlNWFjLTJhYWItNDUwNS1iNTdiLTFkOTg3MWQ3MDAxNQ==",
          "name": "Salmon Quinoa Bowl",
          "servingWeight": 308.548569375,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjk3Yzk1M2JhLWE2MWQtNGRlYy1hMGYwLTgwMTI1YWM3MWQwYg==",
          "name": "Spicy Cauliflower Salmon Medley",
          "servingWeight": 632.435115625,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOmMyY2E4ZDIzLTMzY2UtNDM1MC1hY2Y0LTE3Yjc5ODJhMDU0ZQ==",
          "name": "Salmon With Fingerling Potatoes",
          "servingWeight": 463.4513054166666,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjlmMGU1NmViLWRlYjUtNGI0NC05Nzc5LTU0OWI5ZGJhYjFkZQ==",
          "name": "Salmon Bagel",
          "servingWeight": 259.8980925,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjc3NmZjNDYwLWIxMGMtNGI4ZS04ZWQ1LWRiODdhNWFmYjQ1Mg==",
          "name": "Pistachio-Topped Salmon ",
          "servingWeight": 219.59713875,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOmZkOGE2YWFjLWNlYWMtNDdkMC04YTM2LWRhYzBkYWYzYTYxMw==",
          "name": "Salmon With Dill",
          "servingWeight": 260.09713875,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjA5MGU4NDkzLTNiZGEtNDA3OC1iNmUyLTBlZmIxMTZhY2Q5Ng==",
          "name": "Salmon Lettuce Wrap",
          "servingWeight": 354.8147591666667,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOmU4Y2VjZDVjLWMwNWUtNGM2MS04OGIzLWQ1ZTEyZmQwOTU5NQ==",
          "name": "Salmon Lettuce Wraps",
          "servingWeight": 297.5138054166666,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjRmNTcyYmY4LWE2NDctNGJjMS1hMWIyLTEwMzkwN2E1MWE5MQ==",
          "name": "Salmon With Basil Tomato Sauce",
          "servingWeight": 260.83333333333337,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjhhYmY5ZWIwLTgwZDMtNGE1NS1hYTk5LWJlOTU3NmYwNjA1Yg==",
          "name": "Salmon With Roasted Carrots And Olives",
          "servingWeight": 976.79713875,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjRjN2JmMGFlLTk2OGMtNDVhNC1iMWU3LTRkZGEwN2M1YzEwOA==",
          "name": "Salmon On A Bed Of Fresh Greens",
          "servingWeight": 272.59713875,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjI4YmExMzBjLTQ2ZmQtNDQ1Zi1hMmE2LTFkN2I2NTkyMGU0Nw==",
          "name": "Salmon And Baby Spinach",
          "servingWeight": 251.34713875,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjJiYmRmMmJkLTJiNmMtNGM2MC04OWIyLWFjNWE5ODJiNDM5Ng==",
          "name": "Salmon Gluten-Free Wrap",
          "servingWeight": 559.3388054166667,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOmZmYjUxNTMzLWU0ZWQtNDFmYy04MDJjLTU1YzI4MWIzNjI5NA==",
          "name": "Broiled Salmon With Asparagus",
          "servingWeight": 1680.0304720833333,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOmE3OWJiNGI0LWIzODEtNGI3My04OGE1LTBiMDZmZTVmMjI5MA==",
          "name": "Salmon With Bell Peppers",
          "servingWeight": 505.5638054166667,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjJmZDM3MTE1LTg3ODgtNDk4Ny05M2RkLWQxNDgzOGUzOGRiMg==",
          "name": "Grilled Salmon And Peaches",
          "servingWeight": 690.446661875,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjFkMzQ5ODc0LWEzNDItNDNkYy1iMjgxLTgxOGYxMjI3M2FlYQ==",
          "name": "Salmon And Baby Kale",
          "servingWeight": 272.59713875,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjQ0ZWVkYWMxLTZkMGEtNDVjNi1hZGFkLWMyYTcyM2UzOWY4Yg==",
          "name": "Broiled Salmon With Vegetables",
          "servingWeight": 416.946661875,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjNjMTJjYzMxLWQyZDctNDlmMy05ZDdhLWJlMWEyYzA1ZjgzMg==",
          "name": "Baked Salmon And Asparagus",
          "servingWeight": 465.09713875,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjE3MDkzOWRhLWQ1NjgtNGFkOC04OWFhLWY4YTgzYjE2ZDYzYg==",
          "name": "Spicy Cauliflower Salmon Medley",
          "servingWeight": 606.247615625,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjc5NDFjOWVkLWI4MDAtNGJiOS1iMDgzLTIwZDlhOTAzYWE5Zg==",
          "name": "Apple Salad",
          "servingWeight": 286.9125,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOmU0ZDQwNTdkLTAyMTQtNDVmOS1hNTZmLTI2NjMyY2U4YmZlNQ==",
          "name": "Shrimp Salad",
          "servingWeight": 555.5,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjU1M2E0ZmZjLTVkNjctNDlhOS05Mzg3LTVlNWJlNDE0MjcwZQ==",
          "name": "Salmon With Coconut Creamed Spinach",
          "servingWeight": 477.40699053045944,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjUyMDIwOTY4LWY4YmItNDZhMS1hODdmLTY3Njc4ZTE3ZTY1NQ==",
          "name": "Salmon On Toast With Apple",
          "servingWeight": 347.048569375,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjQ5YTZhY2U5LWM3OTQtNDBhNC1hMzUyLWJmMjY4ZjBmNDJjNw==",
          "name": "Salmon With Toasted Sesame Seeds",
          "servingWeight": 266.09713875,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOmNkOTE5N2UxLTk2YzctNDZjZS1hZmU5LTBhMjA1Yzg2NmYyNQ==",
          "name": "Smoked Salmon And Avocado Toast",
          "servingWeight": 335.3980925,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjFlN2U3MjQ4LWY5ZDAtNGQyYy1iYzA3LWQ3ZmY5N2E4YzVlMg==",
          "name": "Chicken Keto Salad",
          "servingWeight": 1827.0971387499999,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjg0ZTQ0NDk5LWYxZjgtNGNlNS1iMjE1LWZjZGNmMDk5YmZjOQ==",
          "name": "Salmon And Spinach With Coconut Cream",
          "servingWeight": 503.747615625,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjRhNTI5ZTViLWViMTEtNDU5Zi1hYWEyLWIxNDUzMzEzNjViMQ==",
          "name": "Salmon With Toasted Almonds And Quinoa",
          "servingWeight": 312.09713875,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOmVjNWQ5M2M1LWRmYzctNGNlYi04ZmFlLTk5OWFiZjRmNTEwOA==",
          "name": "Baked Salmon With Veggies And Olives",
          "servingWeight": 922.8980925,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjA0MGNmMjI2LTkyZWYtNGY4OS1iNzYyLWZjMWI3MmViYjYxMQ==",
          "name": "Salmon With Berries And Coconut Dressing",
          "servingWeight": 1753.0971387499999,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjlmZDM2ZTcwLWZlMGEtNDc0Yi1iYzkzLTQ5ZDM0NTQ3ZmNhYw==",
          "name": "Pan-Seared Salmon And Roasted Vegetables",
          "servingWeight": 744.44904625,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjJkNWFjOWUwLWM2MTQtNDk0MC1hZmNiLTM3NTViNGUzZWRjMw==",
          "name": "Spinach And Strawberry Chopped Salad",
          "servingWeight": 584.349523125,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOmU4NjY1ZjgyLTg5OTAtNDQyNi04YzVhLTY0ZDRlZWRmOWE4Mg==",
          "name": "Apple, Hazelnut And Spinach Salad",
          "servingWeight": 342,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOmVlZDI0MzRmLTU4MDktNGI3Ny05MGU3LTIwZmIwOWM1Zjc2Yw==",
          "name": "Grilled Eggplant With Caponata Salad",
          "servingWeight": 578.825,
          "author": "Suggestic"
        },
        {
          "id": "UmVjaXBlOjE0OTgwNmQ3LTlkZTktNDk5YS1iY2UxLTJmYzBlZGIyMzFiMw==",
          "name": "Green Salad With Chicken",
          "servingWeight": 443.64713874999995,
          "author": "Suggestic"
        }
      ],
      "otherResults": [
        {
          "id": "UmVjaXBlOjdhNzE1MjM2LTI4ZDMtNGI4Ny1iNDIwLWRlMTU3MzllNTgyYQ==",
          "name": "Spinach Quinoa Salad",
          "servingWeight": 397.1480925,
          "author": "Suggestic"
        }
      ]
    }
  }
}

Search by ingredients

In the following example, all the recipes that contain the ingredient "avocado" in their ingredient list are searched.

Last updated

Was this helpful?