Macronutrient split (protein / carbs / fat)
Split a calorie budget into protein, carbohydrate and fat grams across three common presets (balanced, higher-protein, lower-carb). Pass a calorie total directly, or a full profile to derive TDEE first. With a profile: Adult equations: ages 18 to 120. A younger age returns 400; for a child or teenager use myplate-plan or dri, whose energy equations have child forms.
Cites its source in every response: source (the formula + published reference) and canonical_url (https://myplate.food/macro-calculator), plus a disclaimer.
Request
- Base URL: https://myplate.food/api/v1
- URL: https://myplate.food/api/v1/calculate/macros
- Auth: none declared
Query parameters
Daily calorie budget to split. Omit to derive TDEE from a profile.
Age in years (18 to 120). These are adult equations.
Biological sex — drives the equation.
Physical activity level. Defaults to sedentary.
Height in centimeters (metric). Provide height_cm OR height_ft (+ optional height_in).
Height, feet component (imperial).
Height, inches component (imperial).
Weight in kilograms (metric). Provide weight_kg OR weight_lb.
Weight in pounds (imperial).
Response
Calculation result with citation envelope.
Changes
No recorded changes to this operation across all 1 revision of this API.