{"uid":"cap_MHVitSdTX632agiU435P9","slug":"fitness-and-body-calculators-macro-split-3b31d67b","name":"Fitness and Body Calculators – Macro Split","description":"Protein, carbohydrate and fat grams for a calorie target from a preset or your own percentage split.","url":"https://fitness-calc.x402tookit.com/macro-split?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["calories"],"properties":{"fatPct":{"type":"number","description":"Custom fat percent"},"preset":{"type":"string","description":"balanced (30/40/30 protein/carb/fat, default), high-protein, low-carb or low-fat"},"carbPct":{"type":"number","description":"Custom carbohydrate percent"},"calories":{"type":"number","description":"Daily calories, 500 to 10000"},"proteinPct":{"type":"number","description":"Custom protein percent (with carbPct and fatPct summing to 100)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"grams":{"type":["null","object"],"properties":{"fat":{"type":["null","number"]},"carbs":{"type":["null","number"]},"protein":{"type":["null","number"]}}},"preset":{"type":["null","string"]},"source":{"type":["null","string"]},"percent":{"type":["null","object"],"properties":{"fat":{"type":["null","number"]},"carbs":{"type":["null","number"]},"protein":{"type":["null","number"]}}},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"calories":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"kcalFrom":{"type":["null","object"],"properties":{"fat":{"type":["null","number"]},"carbs":{"type":["null","number"]},"protein":{"type":["null","number"]}}},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hqhUhc5sid-fhFhAfr3CN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates protein, carbohydrate, and fat grams from a daily calorie target using a preset ratio or custom percentage split.","exampleAgentPrompt":"What are my macro grams for a 2000-calorie day using the high-protein preset — can you break it down into protein, carbs, and fat in grams?","exampleUseCases":[{"title":"Meal plan macro breakdown for fat loss","prompt":"I'm on a 1600-calorie cut — use a high-protein macro split and tell me exactly how many grams of protein, carbs, and fat I should be eating each day."},{"title":"Custom macro split for athlete bulking","prompt":"I want to bulk at 3200 calories with a custom split of 30% protein, 50% carbs, and 20% fat — how many grams does that work out to for each macro?"},{"title":"Balanced macros for general health maintenance","prompt":"Can you give me a balanced macro breakdown for 2200 calories a day? Use the default balanced split and show me the grams for protein, carbs, and fat."}],"resultDescription":"Returns a structured response with the daily calorie target, the macro split as percentages (protein/carbs/fat), grams for each macro, and calories contributed by each macro. Also includes the preset name used (or indicates custom), a human-readable summary, and an optional disclaimer. May include validation reasons or flags if inputs were adjusted or degraded.","failureModes":["Calories outside the 500–10000 range return a validation error","Custom percentages that do not sum to 100 return an error","Missing required 'calories' parameter returns a bad request error","Partial custom percentages (e.g. only proteinPct provided without carbPct and fatPct) may trigger fallback or error","Payment not fulfilled results in HTTP 402 before calculation is attempted"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic macro breakdown in grams from a calorie target — especially when you want to use standard presets (balanced, high-protein, low-carb, low-fat) or supply your own exact percentage split. Ideal for diet planning, meal prep apps, and nutrition coaching agents where the user has a calorie goal and needs actionable gram targets per macronutrient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:30:43.825Z","isFirstParty":false,"canonicalSlug":"fitness-and-body-calculators-macro-split-3b31d67b"}