BETTERMENU
Studio

Get Per-Serving Nutrition Facts Analysis

Per-serving nutrition facts analysis with full FDA rounding audit trail.

Use this to answer: "show me the rounding details for protein", "what rounding rules were applied?", "FDA rounding audit"

Returns full ValueRoundingOutcome and DVRoundingOutcome for each nutrient. Supports filtering by nutrient_set and/or comma-separated BMIDs. Returns 404 if per-serving nutrition facts have not been computed.

Related endpoints:

  • getRecipePerServingNutritionFacts — label-ready summary (amounts + %DV)
GET
/studio/recipes/{recipe_id}/servings/{serving_id}/nutrition-facts/per-serving/analysis

Authorization

BearerAuth
AuthorizationBearer <token>

JWT Bearer token authentication

In: header

Path Parameters

recipe_id*string

Unique recipe identifier

serving_id*string

Serving identifier

Query Parameters

nutrient_set?|

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

bmids?|

Comma-separated BMIDs to filter

Response Body

application/json

application/json

curl -X GET "https://loading/studio/recipes/string/servings/string/nutrition-facts/per-serving/analysis"
{
  "data": {
    "serving_id": "string",
    "demographic": "string",
    "reference_weight_grams": "string",
    "nutrients": [
      {
        "bmid": "string",
        "name": "string",
        "amount": "string",
        "unit": "string",
        "value_rounding": {
          "rule_name": "string",
          "original_value": "string",
          "rounded_value": "string",
          "display_text": "string"
        },
        "dv_rounding": {
          "rule_name": "string",
          "original_percent": "string",
          "rounded_percent": "string"
        },
        "percent_daily_value": "string",
        "daily_value_reference": "string"
      }
    ]
  },
  "meta": {
    "version": "string",
    "request_id": "string",
    "timestamp": "string"
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}