---
title: "Calc Macros"
method: GET
path: "/api/v1/calc/macros"
tags: ["calc"]
---

# Calc Macros

`GET /api/v1/calc/macros`

## Request

- Base URL: `https://calorieapiadmin.com`
- URL: `https://calorieapiadmin.com/api/v1/calc/macros`
- Auth: none declared

Calculate BMR, TDEE, and daily macro targets using the Mifflin-St Jeor formula.

## Query parameters

- `age` integer, required: Age in years
- `gender` 'male' | 'female', required
- `weight_kg` number, required: Body weight in kilograms
- `height_cm` number, required: Height in centimetres
- `activity` 'sedentary' | 'lightly_active' | 'moderately_active' | 'very_active' | 'extra_active', required
- `goal` 'lose' | 'maintain' | 'gain', required

## Headers

- `X-API-Key` string, nullable
- `authorization` string, nullable

## Response `200`

Successful Response

- MacroCalcResponse
  - `bmr` integer, required: Basal Metabolic Rate (Mifflin-St Jeor)
  - `tdee` integer, required: Total Daily Energy Expenditure
  - `activity_multiplier` number, required
  - `daily_targets` MacroTargets, required
    - `calories` integer, required
    - `protein_g` number, required
    - `carbohydrates_g` number, required
    - `fat_g` number, required
  - `formula` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/calorieapi/apis/calorie-api.md) · [All operations](https://skmtc.dev/calorieapi/apis/calorie-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calorieapi/apis/calorie-api/revisions/f851bb41617a?raw)
