Integrating Exercise and Body Scan APIs in Digital Health
Digital health and wellness products increasingly need exercise content and simple fitness tracking. This guide shows where the Exercise API and the Body Scan API fit, and where the Body Scan API must stop.
verified Published by the WorkoutX team — builders of the exercise API used by fitness app developers. Learn more
Use the Exercise API for exercise content and home programs. Use the Body Scan API only for general wellness and fitness progress estimates: it is not a medical device and is not for diagnosis, treatment or medical monitoring.
Where Fitness Tech Meets Digital Wellness
For years, exercise databases were viewed primarily as tools for bodybuilders and recreational athletes. Today, digital wellness apps, coaching platforms and physical therapy portals all want good exercise content inside their own products.
An exercise database API gives these products clear movement demonstrations. A photo-based body scan API can add general fitness progress estimates to a wellness feature, without any scanning hardware.
Scope: WorkoutX Body Scan is a general wellness and fitness tracking tool. Its results are estimates, not measurements. It is not a medical device, it has not been validated against DXA or any other reference method, and it must not be used for diagnosis, treatment or medical monitoring.
Why Choose API-Driven Solutions?
Platforms seeking to offer exercise content and fitness tracking have traditionally faced a few bottlenecks:
- Data fragmentation: Clinical software systems often lack standardized access to high-quality visual instructions, forcing therapists to link patients to generic external video platforms.
- Development cost: Building your own image-processing pipeline for a fitness feature takes machine learning engineers and months of work.
API-driven solutions help here. A wellness app can send a user's photograph to the Body Scan API and receive a structured JSON payload with a body fat estimate, lean mass derived from weight, a body type, scores and short notes. Similarly, apps can query a database of 1,900+ exercises with 720p MP4 video demonstrations. For the scan output in detail, see what a body composition API returns, and for the build steps, the fitness app integration tutorial.
Top 5 Use Cases for Health and Fitness APIs
1. Weight-Management Goals in Wellness Apps
People working toward a fitness or weight-management goal often want more than a scale reading. A wellness app can use the Body Scan API to show a body fat estimate and a lean mass estimate alongside their weight, and follow the general trend.
The app can then offer strength workouts from the Exercise API as part of a general fitness plan. Keep this to fitness and lifestyle goals: Body Scan must not be used to monitor a medication, a medical condition or any treatment.
2. Physical Therapy & Home Exercise Programs (HEP)
Patient compliance in physical therapy is notoriously low, often because patients struggle to remember how to execute movements correctly at home.
Tele-rehabilitation portals use the Exercise API to build custom Home Exercise Programs (HEP). Because the API provides 720p MP4 video demonstrations (typically 100–300 KB per clip, with male and female models), patients receive instant visual guidance directly inside their patient portal — reducing the risk of improper form and secondary injury.
3. Mobility & Posture Awareness in Fitness Apps
Many desk workers want to move more and stand taller. The Body Scan API returns a short AI-generated posture note with each scan. It is a general observation from one photo, not a postural assessment or a screening tool.
A fitness app can show that note and offer general stretching and mobility exercises from the Exercise API, for anyone who wants them.
4. Training Balance & Symmetry Score
The Body Scan API returns a symmetry score based on how level the shoulders and hips appear in the photo, plus waist, hip and shoulder estimates. Coaches and users can look at these as general fitness information. They must not be used to assess an injury or recovery from surgery.
5. Waist and Hip Trends for Fitness Goals
Some users like to follow waist and hip estimates along with their workouts. A fitness app can chart these estimates over time and pair them with cardio and conditioning routines pulled from the Exercise API. Don't attach health risk labels or thresholds to them: they are estimates for tracking fitness goals, not screening results.
Code Example: Suggesting Mobility Work After a Scan
Here is a simple workflow showing how to combine the Body Scan API and the Exercise API in Node.js: show the user their posture note and offer some general upper-back exercises in a fitness app.
async function suggestMobilityWork(userData) {
// Step 1: Run a scan with the Body Scan API
const scanResponse = await fetch('https://amused-mercy-production-aeaa.up.railway.app/v1/analyze', {
method: 'POST',
headers: { 'X-BodyScan-Key': process.env.BODYSCAN_API_KEY },
body: buildScanForm(userData) // front_photo + height_cm, weight_kg, gender, age
});
const scanData = await scanResponse.json();
const postureNote = scanData.ai_insights.posture_notes;
// Step 2: Fetch general bodyweight exercises for the upper back from the Exercise API (v2)
const exerciseResponse = await fetch('https://api.workoutxapp.com/v2/exercises?target=Upper%20Back&equipment=Body%20Weight&limit=3', {
headers: { 'X-WorkoutX-Key': process.env.WORKOUTX_API_KEY }
});
const exercises = await exerciseResponse.json();
// Show the note as a general observation, next to optional exercises with video demos (media.mp4).
// Store the exercise ids: media links expire after 24-25 hours.
return {
postureNote,
suggestedExercises: exercises.results.slice(0, 3)
};
}
Security & Privacy
When you use a third-party API in a health or wellness product, be clear with users about what happens to their data. For Body Scan:
- Photos: Photos are processed only during analysis and not stored by us. A large upload may briefly sit in a temporary file while it is processed. Photos are sent to Anthropic for analysis.
- What we keep: The height, weight, age and gender sent with a scan and the numeric results. These are deleted automatically 90 days after the scan.
- Identifiers: You don't need to send names or emails. If you use
external_user_id, use a random id. - Encrypted transport: All API communication takes place over HTTPS with TLS encryption, protecting data in transit between your servers and ours.
Using Body Scan does not by itself make your product compliant with any privacy or health law. You are responsible for telling people how their photos are used and for having a legal basis. See our Privacy Policy.
Looking Forward
Flexible REST APIs let teams add exercise content and fitness features faster and at lower cost than building everything in-house.
By combining general body composition estimates with a deep library of animated movements, developers have the building blocks for useful wellness and fitness experiences, as long as those stay clearly separate from medical care.
Begin integrating: Ready to add exercise content and fitness tracking to your platform? Register on the developer portal to grab your API keys and try the Body Scan & Exercise APIs today.