Body Scan API for fitness apps
Send one photo with height, weight, age and sex. Get estimated body fat, lean mass, body type, and waist and hip size back as JSON. There is no scanner to buy.
5 free scans once per account. They don't renew. For wellness and fitness tracking; results are estimates, not medical measurements.
From photo to JSON in one call
A body scan API turns a phone photo into body composition estimates your app can store and chart. WorkoutX finds body landmarks, then combines the waist and hip estimates with height, weight, age and sex in published equations, including U.S. Navy and Relative Fat Mass.
-
Capture
Your app takes one full-body photo.
-
Send
POST /v1/analyzeX-BodyScan-Key: bsk_•••••• front_photo scan.jpgheight_cm 178weight_kg 80age 30gender maleYou post it with four body values.
-
Analyze
- Pose landmarks
- Waist and hip
- Body fat equations
- AI notes
The engine measures and calculates.
-
Receive
{ "body_composition": { "body_fat_percentage": 20.4, "body_fat_range": { "low": 14.4, "high": 26.4 }, "lean_mass_kg": 63.7 }, "estimated_measurements": { "waist_circumference_cm": 84, "hip_circumference_cm": 96 }}Your app gets JSON it can chart.
Simplified response. See every field in the docs.
One request. No SDK needed.
curl -X POST "https://amused-mercy-production-aeaa.up.railway.app/v1/analyze" \
-H "X-BodyScan-Key: $BODYSCAN_KEY" \
-F front_photo=@scan.jpg \
-F height_cm=178 \
-F weight_kg=80 \
-F age=30 \
-F gender=male
const form = new FormData();
form.append("front_photo", file);
form.append("height_cm", "178");
form.append("weight_kg", "80");
form.append("age", "30");
form.append("gender", "male");
const res = await fetch("https://amused-mercy-production-aeaa.up.railway.app/v1/analyze", {
method: "POST",
headers: { "X-BodyScan-Key": process.env.BODYSCAN_KEY },
body: form,
});
const scan = await res.json();
import os, requests
res = requests.post(
"https://amused-mercy-production-aeaa.up.railway.app/v1/analyze",
headers={"X-BodyScan-Key": os.environ["BODYSCAN_KEY"]},
files={"front_photo": open("scan.jpg", "rb")},
data={"height_cm": 178, "weight_kg": 80,
"age": 30, "gender": "male"},
)
scan = res.json()
- Failed scans cost nothing
- A bad photo returns
422and the credit comes back. - Repeatable numbers
- AI writes the notes. Equations set the body fat number.
- Versioned results
- Every scan stores its
formula_version. - Progress built in
/v1/progresscompares two scans for you.- Your user IDs
- Tag scans with
external_user_idand delete them by user. - Works with coding agents
- Claude and Cursor can wire it up through MCP.
- No monthly minimum
- Pay for scans, not seats.
Or let your coding agent build it
Connect the WorkoutX MCP server once. Claude, Cursor and other agents get the fields, working code and test data they need.
> Add Body Scan to my Next.js progress screen
tool get_body_scan_integration
language: "nextjs"
tool get_body_scan_sample_response
scenario: "unreliable_photo"
created app/api/scan/route.ts
created components/ProgressCard.tsx
updated .env.example
Done. The key stays on your server, and the card
shows the range and photo tips. No credits used.
get_body_scan_integration- Working code for Next.js, React Native, Swift, Flutter and more.
get_body_scan_sample_response- Every response and error, so you can build the UI for free.
estimate_body_fat- Tape-based estimates from published equations. No photo needed.
claude mcp add --transport http workoutx https://api.workoutxapp.com/mcp --header "X-WorkoutX-Key: wx_your_key"
Photos never pass through MCP. Your app sends them straight to the Body Scan API.
A phone instead of a device
| Feature | WorkoutX Body Scan | 3D body scanner | DXA scan |
|---|---|---|---|
| Hardware | None | Scanner purchase | Booked at a facility |
| Where | Anywhere | Next to the scanner | Imaging centre |
| Result | Photo-based estimate | Measured 3D shape | Reference measurement |
Body Scan is for fitness and wellness tracking. It has not been validated against DXA.
Pay once, with no monthly fee
Start with 5 free scans, once per account. Purchased credits never expire. Every pack has every feature. Prices include tax.
- $0Start free
Free trial
5 scans, once per account, no renewal
- $39
Starter
20 scans at $1.95 each
- $149
Builder
100 scans at $1.49 each
- $599
Growth
500 scans at $1.20 each
- $999
Scale
1,000 scans at $1.00 each
What happens to a photo
- Not storedAnalyzed, then discarded
- 90 daysResults delete automatically
- 18+Adults only
Anthropic processes the front photo for the AI notes. Read the privacy policy.
Questions
How accurate is the Body Scan API?
It gives an estimate and has not been validated against DXA or another reference method. Each response includes a wide indicative range. Use it to follow trends between scans.
How is body fat calculated?
Waist and hip estimates from the photo are combined with height, weight, age and sex in published equations: U.S. Navy, Relative Fat Mass, Deurenberg and a Gallagher-type BMI equation. AI writes notes on body type and posture. It does not set the number.
Is this a medical device?
No. Do not use it to diagnose, treat or monitor a medical condition.
Can it replace a DXA scan?
No. DXA is a measurement. Body Scan is a photo-based estimate for regular check-ins.
What kind of photo works best?
A full-body front photo in fitted clothing, with even light and a plain background. A side photo improves the waist and hip estimates.
Can I send tape measurements?
Yes. Send tape_waist_cm, tape_hip_cm or tape_neck_cm with the scan. They replace the photo estimates in the equations.
Does Body Scan work with MCP?
Yes. The WorkoutX MCP server gives coding agents integration code, sample responses and tape-based estimates. Photos never pass through MCP.
Does the API return a 3D model?
No. It returns numbers as JSON.
How much does a scan cost?
Every WorkoutX account gets 5 free scans once, and they don't renew. After that, scans cost $1.00 to $1.95 depending on the credit pack. Purchased credits never expire and there is no monthly fee.