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

Relative Calories

Relative caloric value of each macronutrient as a percentage of total calories per serving.

List of Fields

Please note that fields not documented here may be out of date or deprecated.

Nutrient

Unit

carbs

%

fat

%

dha

%

dpa

%

epa

%

ala

%

saturatedFat

%

monounsaturatedFat

%

polyunsaturatedFat

%

transFat

%

omega3

%

Example

Obtaining the caloric value of each macronutrient as a percentage of total calories per serving.

{
  recipe(id: "UmVjaXBlOjFkMWIzYzU4LTk3Y2MtNDJlMi05NGEyLTA0OTdjMjVjNjhjYQ==") {
    name
    caloriesPerServing {
      protein
      carbs
      fat
    }
    relativeCalories {
      carbs
      fat
      protein
      saturatedFat
      omega3
      transFat
    }
  }
}
{
  "data": {
    "recipe": {
      "name": "Three Bean Salad With Corn & Peppers",
      "caloriesPerServing": {
        "protein": 62.48838057617347,
        "carbs": 220.73646040095224,
        "fat": 51.05270997574553
      },
      "relativeCalories": {
        "carbs": 0.3182,
        "fat": 0.5673,
        "protein": 0.1145,
        "saturatedFat": 0.2605,
        "omega3": 0.0091,
        "transFat": 0.0088
      }
    }
  }
}

Last updated