# Fitness and Body Calculators – Macro Split

> Fitness and Body Calculators – Macro Split is a paid API for AI agents from fitness-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Calculates protein, carbohydrate, and fat grams from a daily calorie target using a preset ratio or custom percentage split.

## Facts

- Endpoint: GET https://fitness-calc.x402tookit.com/macro-split?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fitness-and-body-calculators-macro-split-3b31d67b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MHVitSdTX632agiU435P9

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fitness-and-body-calculators-macro-split-3b31d67b
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Protein, carbohydrate and fat grams for a calorie target from a preset or your own percentage split.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
       ],
       "it
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fitness-and-body-calculators-macro-split-3b31d67b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fitness-calc.x402tookit.com](https://www.zero.xyz/host/fitness-calc.x402tookit.com/llms.txt)
