Skip to content
Skip to Content
Docs
Studio

Get Per-Container Nutrition Facts

Get per-container nutrition facts, optionally pinned to a historical version.

Returns compliant-rounded nutrient values for the full container. Accepts ?version_id= to read facts at a specific version snapshot.

Available only on API versions declaring the recipe_versioning capability. Requests without this capability receive a 404.

GET
/studio/recipes/{recipe_id}/servings/{serving_id}/nutrition-facts/per-container

Path Parameters

serving_id*Serving Id

Serving identifier

recipe_id*Recipe Id

Query Parameters

version_id?|

Leave out for the current recipe. To read an earlier version, pass a version_id from the recipe's version list.

Response Body

Successful Response

application/json
  1. response

Response for nutrition facts endpoints (per-serving + per-container).

data*

Per-serving or per-container nutrition facts (compliant label panel).

meta*

Response metadata.

version_id?|

Version committed for this mutation; pass on the next request as If-Match for optimistic concurrency. Present only on versions declaring the recipe_versioning capability.

Example Request
curl -X GET 'https://api.bettermenu.live/studio/recipes/string/servings/string/nutrition-facts/per-container'
Example Response
{  "data": {    "calculated_at": "string",    "serving_id": "string",    "demographic": "string",    "reference_weight_grams": 0,    "nutrients": [      {        "bmid": "string",        "name": "string",        "amount": 0,        "unit": "string",        "display_text": "string",        "percent_daily_value": 0      }    ]  },  "meta": {    "version": "string",    "request_id": "string",    "timestamp": "string"  },  "version_id": "string"}

Recipe in, FDA-format Nutrition Facts out, with every version kept.

Start freeNo card needed.