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

Parsed Ingredient Lines

The parsedIngredientLinesfield returns a structured version of the recipe's ingredient lines.

When possible, we suggest using the ingredientLines field.

Arguments

Argument

Type

Optional

Description

preferredUnitSystem

UnitSystem

True

The preferred unit system, options: METRIC, IMPERIAL

List of Fields

Field

Type

Description

ingredientLine

String

The ingredient Line Input

ingredient

String

Parsed ingredient

quantity

String

Quantity value

unit

String

Unit name

other

String

Other string found on the ingredient line

comment

String

Other comment found on the ingredient line

Example

{
  recipe(id: "UmVjaXBlOjhjMTFlZTdlLTNkZjMtNDc5Yy1hOTQzLTE2YWY1MmE0NmZkZQ==") {
    id
    name
    parsedIngredientLines(preferredUnitSystem: METRIC) {
      ingredientLine
      ingredient
      quantity
      unit
      other
      comment
    }
  }
}
{
  "data": {
    "recipe": {
      "id": "UmVjaXBlOjhjMTFlZTdlLTNkZjMtNDc5Yy1hOTQzLTE2YWY1MmE0NmZkZQ==",
      "name": "Roasted Pears And Quinces With Tangerine Zest",
      "parsedIngredientLines": [
        {
          "ingredientLine": "10 small pears, preferably forelle, peeled, halved, and seeded",
          "ingredient": "pears",
          "quantity": "10",
          "unit": null,
          "other": ",",
          "comment": "small"
        },
        {
          "ingredientLine": "5 quinces, peeled, halved, seeded, and cut into 8 to 10 wedges",
          "ingredient": "quinces",
          "quantity": "5",
          "unit": null,
          "other": ",",
          "comment": "peeled"
        },
        {
          "ingredientLine": "1 lemon, halved",
          "ingredient": "lemon",
          "quantity": "1",
          "unit": null,
          "other": ",",
          "comment": "halved"
        },
        {
          "ingredientLine": "2 ounces (4 tablespoons) unsalted butter",
          "ingredient": "butter",
          "quantity": "56.699",
          "unit": "ounces",
          "other": "(",
          "comment": "4 tablespoons"
        },
        {
          "ingredientLine": "1 cup sugar",
          "ingredient": "sugar",
          "quantity": "1",
          "unit": "cup",
          "other": null,
          "comment": null
        },
        {
          "ingredientLine": "6 tangerines, zest cut into strips, and juiced (about 1 cup)",
          "ingredient": "tangerines",
          "quantity": "6",
          "unit": null,
          "other": ",",
          "comment": "zest cut into slices"
        },
        {
          "ingredientLine": "2 vanilla beans, split and scraped, pods reserved",
          "ingredient": "vanilla beans",
          "quantity": "2",
          "unit": null,
          "other": ",",
          "comment": "split and scraped"
        },
        {
          "ingredientLine": "2 cups dry white wine",
          "ingredient": "white wine",
          "quantity": "2",
          "unit": "cups",
          "other": null,
          "comment": "dry"
        },
        {
          "ingredientLine": "Vanilla-Bean Creme Anglaise (optional)",
          "ingredient": "Vanilla-Bean Creme Anglaise",
          "quantity": null,
          "unit": null,
          "other": "(",
          "comment": "optional )"
        }
      ]
    }
  }
}

Last updated