Mobile / Web/fitness/nutrition/wellness

Build a fitness tracker — BMI, macro targets, and workout plans via API

Fitness trackers need a lot of formula-based calculation — BMI, TDEE, macro splits, one-rep max, heart rate zones. Building these from scratch is error-prone. APlicious covers every major fitness calculation with validated formulas.

Get free API key Full docs
01

TDEE and macro targets

Calculate a user's total daily energy expenditure and macro split in one call:

const res = await fetch(
  'https://aplicious.com/api/v1/fitness/macro-split' +
  '?weight_kg=75&height_cm=175&age=28&sex=male&goal=lose&activity=moderate',
  { headers: { 'X-API-Key': process.env.LAPI_KEY } }
);
// { tdee: 2620, target_calories: 2120,
//   protein_g: 150, carbs_g: 212, fat_g: 56 }
02

BMI and body composition

Give users their BMI, ideal weight range, and Navy Method body fat estimate:

const res = await fetch(
  'https://aplicious.com/api/v1/fitness/bmi' +
  '?weight_kg=75&height_cm=175&age=28&sex=male',
  { headers: { 'X-API-Key': process.env.LAPI_KEY } }
);
// { bmi: 24.5, category: "Normal", ideal_weight_kg: { min: 66, max: 80 },
//   body_fat_pct: 18.2 }
03

Workout recommendations

Fetch exercises by muscle group and equipment:

const res = await fetch(
  'https://aplicious.com/api/v1/fitness/exercises' +
  '?muscle=chest&equipment=barbell&difficulty=intermediate&limit=5',
  { headers: { 'X-API-Key': process.env.LAPI_KEY } }
);
// [{ name, sets, reps, rest_sec, form_cues }]
04

Heart rate training zones

Calculate 5-zone training heart rates for cardio planning:

const res = await fetch(
  'https://aplicious.com/api/v1/fitness/heart-rate-zones?age=28&resting_hr=62',
  { headers: { 'X-API-Key': process.env.LAPI_KEY } }
);
// { zones: [{ name, min_bpm, max_bpm, description }] }
05

Add nutrition lookup

Use /nutrition to look up macros for any food — pair with the macro targets from step 1 for a complete food logging feature.

Why APlicious?

The /fitness, /nutrition, and /wellness namespaces share your plan quota. You can build a full-stack fitness app — workout planning, nutrition logging, wellness tracking — without touching a second API key.

Ready to build?

Free tier · 500 calls/month · No credit card · All 34 APIs included

Get your free API key

More guides

Build a Wellness App — Fasting, Meditation & Health Tracking API

Read guide

Build a Finance Dashboard with Stocks, SIP & Forex APIs

Read guide

Build a Weather Widget with the APlicious Weather API

Read guide