Classify a daily macronutrient pattern
POST /weight-management/diet-pattern · API key required
From daily grams: energy, comparison with the AMDR (the chapter's own ranges for children), pattern tags (very low fat, low fat below AMDR, ketogenic under 50 g carbohydrate, low carbohydrate, high-protein low-carbohydrate), nutrients at risk and metabolic effects from Table 21.6, alcohol share of energy and protein g/kg (1.2 g/kg during energy restriction, 0.8-1.5 for a VLCD).
Request body
Content type: application/json
Responses
200- Result with steps, warnings and sources400- Invalid input, or a request the chapter does not support (below 800 kcal, age 65+ deficit, BMI under 25 for loss, 25 or more for gain, pregnancy)401- Missing or invalid API key429- Rate limited