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.
Path Parameters
serving_id*Serving Id
Serving identifier
recipe_id*Recipe Id
Query Parameters
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://api.bettermenu.live/studio/recipes/string/servings/string/nutrition-facts/per-container"{
"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"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}