BETTERMENU
Studio

Get Recipe Nutritional Analysis

Return per-nutrient ingredient breakdown for the recipe.

Shows which ingredients contribute the most to each nutrient (protein, fat, calories, vitamins, minerals, etc.) with percentage contributions. Use nutrient_set to filter to a predefined group and top_n to limit contributors per nutrient. Pass ?version_id= to read analysis at a historical snapshot. Returns 404 if nutrition has not been computed yet.

GET
/studio/recipes/{recipe_id}/nutrition/analysis

Path Parameters

recipe_id*Recipe Id

Query Parameters

nutrient_set?|

Predefined nutrient group (e.g., fda_mandatory, macronutrients, vitamins_minerals)

bmids?|

Comma-separated nutrient BMIDs (e.g., n_cf0wwfrw2sf4y,n_rqzvdbxyn4o7t)

top_n?|

Max contributors per nutrient, sorted by amount descending

version_id?|

Optional version ULID to pin the response to a historical snapshot. Omit to read the live HEAD on the main branch. 26-character Crockford Base32 (no I, L, O, U).

Response Body

application/json

application/json

curl -X GET "https://loading/studio/recipes/string/nutrition/analysis"
{
  "data": {
    "ingredients": [
      {
        "name": "string",
        "quantity_g": 0
      }
    ],
    "nutrients": [
      {
        "bmid": "string",
        "name": "string",
        "unit": "string",
        "total": 0,
        "contributions": [
          {
            "ingredient_index": 0,
            "amount": 0
          }
        ]
      }
    ]
  },
  "meta": {
    "version": "string",
    "request_id": "string",
    "timestamp": "string"
  },
  "version_id": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}