# AI Workout Plan Generator & Exercise Database (`helenisapi/ai-workout-plan-generator`) Actor

Generate week-by-week workout plans from 870+ real exercises (sets, reps, rest, swaps) for any goal, level and equipment, or export the exercise database. 🏋️

- **URL**: https://apify.com/helenisapi/ai-workout-plan-generator.md
- **Developed by:** [Helenis API](https://apify.com/helenisapi) (community)
- **Categories:** AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 workout plan

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🏋️ AI Workout Plan Generator & Exercise Database

**Generate complete workout programs in seconds, built only from real exercises.** Pick a goal, a level, the equipment at hand, the days per week and the session length: get the weekly sessions with **sets, reps, rest and coaching cues**, a **week-by-week progression** with lighter weeks, **two swap options** per exercise and **safety notes** for the areas to protect. Or export the **exercise database** itself: 870+ exercises with muscles, equipment, level, step-by-step instructions and photos.

No API key: fill the form and hit **Run**.

***

### ⚡ Why this actor?

- ✅ **No invented exercises:** the AI picks from the database, and every pick is checked before you get the plan.
- 🗓️ **Week by week:** 1 to 12 weeks, sets and reps progressing, deloads included, every week written out in the full plan.
- 🎯 **7 goals:** muscle gain, strength, fat loss, general fitness, endurance, mobility, athletic.
- 🧰 **Any setup:** bodyweight only, dumbbells and bands at home, kettlebells, or a full gym.
- 🩹 **Areas to protect:** knees, lower back, shoulders, wrists, elbows, neck, hips, ankles: risky exercises are left out.
- 🌍 **Any language** for the plan's texts.
- 👥 **Bulk:** one plan per profile for a list of clients or app personas.
- 📚 **Exercise export:** filter by muscle, equipment, level, category or keyword.

***

### 📊 What data do you get?

**Plan view:** one row per exercise of the weekly template.

| Field | Description | Example |
|---|---|---|
| `planTitle` | Plan | `Glute-Focused Hypertrophy Program` |
| `day` / `session` / `order` | Where it sits | `1` / `Full Body A` / `1` |
| `exercise` / `exerciseId` | Database exercise | `Single Leg Glute Bridge` |
| `sets` / `reps` / `restSeconds` | Week 1 prescription | `4` / `12-15 per side` / `90` |
| `note` | Coaching cue | `Squeeze glutes at the top.` |
| `swaps` | Two alternatives with your equipment | `["Leg Lift", "Butt Lift (Bridge)"]` |
| `equipment` / `primaryMuscles` / `image` | Exercise details | `body only` / `["glutes"]` |

The **full plan** (summary, progression, every week with its sets and reps, guidelines, safety notes) is saved as JSON in the key-value store (`OUTPUT`, and `PLAN-1`, `PLAN-2`... in bulk).

**Exercises view:** one row per exported exercise: id, name, category, level, equipment, primary and secondary muscles, force, mechanic, instructions and photos.

***

### 🚀 How to use it

1. Choose the **goal**, **level** and **equipment**, then the **days per week**, **minutes per session** and **weeks**.
2. Optionally add **priority muscles**, **areas to protect**, **preferences** and a **language**.
3. Click **Run**, then open the plan table or download the full plan.

#### Input example

```json
{
  "goal": "muscle_gain",
  "level": "intermediate",
  "equipment": ["dumbbell", "bands"],
  "daysPerWeek": 3,
  "minutesPerSession": 45,
  "weeks": 4,
  "focus": ["glutes"],
  "limitations": ["knees"]
}
```

#### Output example

```json
{
  "type": "plan-exercise",
  "plan": 1,
  "planTitle": "Glute-Focused Hypertrophy Program",
  "day": 1,
  "session": "Full Body A",
  "order": 2,
  "exerciseId": "Stiff-Legged_Dumbbell_Deadlift",
  "exercise": "Stiff-Legged Dumbbell Deadlift",
  "sets": 3,
  "reps": "8-12",
  "restSeconds": 120,
  "note": "Keep back flat and hinge at hips.",
  "swaps": ["Band Good Morning", "Band Good Morning (Pull Through)"],
  "equipment": "dumbbell",
  "primaryMuscles": ["hamstrings"],
  "image": "https://cdn.jsdelivr.net/gh/yuhonas/free-exercise-db@f00c92c7dcf1216a928a52c3706c7ce8e2f71ed5/exercises/Stiff-Legged_Dumbbell_Deadlift/0.jpg"
}
```

Available as **JSON**, **CSV**, **Excel**, or via the **Apify API** and **dataset exports**.

***

### 💰 Pricing

| Event | When |
|---|---|
| 🏋️ Workout plan | Each plan, per 25 exercises a week (a 3-day, 45-minute, 4-week plan is 1; 7 days of 90 minutes over 12 weeks is 4) |
| 📚 Exercise | Each exercise exported |

> 🆓 On the Apify **free plan**, each run makes 1 plan and exports up to 50 exercises.

Failed plans are not charged. The run stops cleanly when your spending limit is reached.

***

### 💡 Use cases

- 📱 **Fitness apps:** pre-generate plan templates for every goal and equipment setup.
- 🧑‍🏫 **Personal trainers:** a first draft of each client's program, ready to edit.
- 🏢 **Corporate wellness:** short home programs that protect the areas people ask about.
- 📚 **Content and SEO sites:** an exercise library with muscles, steps and photos.

***

### ❓ FAQ

**Where do the exercises come from?**
From the open free-exercise-db dataset (public domain dedication): 876 exercises with instructions and two photos each.

**Is this medical advice?**
No. Plans are general fitness guidance for healthy adults. Areas to protect remove the obvious risky exercises and add safety notes, but they do not replace a doctor or a physiotherapist.

**Can I change the plan's language?**
Yes, any language for the texts; exercise names stay in English.

***

### 🤖 Use it from an AI agent

Add this actor to **Claude, ChatGPT, Cursor, VS Code** or any MCP client with one URL (sign in with your Apify account):

```
https://mcp.apify.com?tools=helenisapi/ai-workout-plan-generator
```

Your agent then calls it as a tool, with the input described above, and pays per event like a normal run. In code: `ApifyActorsTool("helenisapi/ai-workout-plan-generator")` in LangChain or CrewAI; in **n8n**, **Make** or **Zapier**, use the Apify app and pick this actor.

***

### 🌐 Also available as an API

The same engine is sold as a REST API on RapidAPI as **Exercise Database & AI Workout Planner - Fitness** by **Helenis API**, with exercise search, lookups and alternatives per call.

***

### 🔒 Privacy

Profiles hold no personal data (goal, equipment, schedule). Helenis does not store them; the AI provider keeps requests temporarily for abuse monitoring.

# Actor input Schema

## `generatePlan` (type: `boolean`):

When true (default), builds a week-by-week workout plan from the profile fields (goal, level, equipment, daysPerWeek, minutesPerSession, weeks...), or one plan per item of `profiles`. Every exercise comes from the exercise database. Set false to only export exercises (with `exportExercises` true).

## `goal` (type: `string`):

What the plan trains for: "muscle_gain" (default), "strength", "fat_loss", "general_fitness", "endurance", "mobility" or "athletic" (power and speed). Used when `generatePlan` is true and `profiles` is empty.

## `level` (type: `string`):

Training level, which sets the exercises allowed and the volume: "beginner", "intermediate" (default) or "expert" (advanced). Used when `generatePlan` is true and `profiles` is empty.

## `equipment` (type: `array`):

Equipment the person has, as a list, e.g. \["dumbbell", "bands"]. "full gym" allows everything; "other" covers a bench, a pull-up bar or a box. Bodyweight exercises are always allowed; an empty list means bodyweight only. Default \["dumbbell"].

## `daysPerWeek` (type: `integer`):

Training days per week, 1-7, e.g. 4. Default 3. Each training day gets its own session in the weekly template.

## `minutesPerSession` (type: `integer`):

Length of each session in minutes, warm-up included, 15-120, e.g. 60. Default 45. The number of exercises fits this time.

## `weeks` (type: `integer`):

Program length in weeks, 1-12. Default 4. Every week is written out with its sets and reps in the key-value store record OUTPUT (PLAN-1, PLAN-2... in bulk); dataset rows show the weekly template.

## `focus` (type: `array`):

Muscles or groups to give priority to, e.g. \["chest", "glutes"]: chest, back, legs, arms, core, glutes, shoulders, quadriceps, hamstrings... Leave empty for a balanced plan.

## `limitations` (type: `array`):

Body areas to protect: knees, lower_back, shoulders, wrists, elbows, neck, hips, ankles. The plan avoids loading them and leaves out jumps and Olympic lifts. Leave empty for none. General fitness guidance, not medical advice.

## `preferences` (type: `string`):

Free-text training preferences, up to 200 characters, e.g. "short rests, likes supersets, no running". Leave empty for none.

## `language` (type: `string`):

Language of the plan's texts, e.g. "English", "French" or "Spanish". Default "English". Exercise names stay in English.

## `profiles` (type: `array`):

One plan per profile, as JSON objects with the API's snake_case fields (goal, level, equipment, days_per_week, minutes_per_session, weeks, focus, limitations, preferences, language), e.g. \[{"goal": "strength", "level": "beginner", "equipment": \["barbell"], "days_per_week": 3}]. When set, replaces the single profile fields. Up to 50 profiles (Apify free plan: 1). Leave empty for one plan.

## `exportExercises` (type: `boolean`):

When true, adds the exercises of the 870+ exercise database that match the exercise filters (exerciseKeyword, exerciseMuscle, exerciseEquipment, exerciseLevel, exerciseCategory) as rows of type "exercise": muscles, equipment, level, step-by-step instructions and photos; one exercise event each. Default false.

## `exerciseKeyword` (type: `string`):

Words of the exercise name to search for, e.g. "squat" or "bench press". Leave empty for every exercise. Used only when `exportExercises` is true.

## `exerciseMuscle` (type: `string`):

Muscles or groups to filter on, comma-separated, e.g. "chest, lats" or "legs" (also quadriceps, back, arms, core...). Leave empty for every muscle. Used only when `exportExercises` is true.

## `exerciseEquipment` (type: `string`):

Equipment to filter on, comma-separated, e.g. "dumbbell, kettlebells" (also body only, barbell, cable, machine, bands...). Leave empty for any equipment. Used only when `exportExercises` is true.

## `exerciseLevel` (type: `string`):

Exercise level to filter on: beginner, intermediate or expert, e.g. "beginner". Leave empty for every level. Used only when `exportExercises` is true.

## `exerciseCategory` (type: `string`):

Exercise category to filter on, e.g. "stretching": strength, stretching, plyometrics, powerlifting, olympic weightlifting, strongman or cardio. Leave empty for every category. Used only when `exportExercises` is true.

## `maxExercises` (type: `integer`):

Most exercises to export, 1-1000, e.g. 200. Default 100 (the database holds 870+; Apify free plan: 50 per run). Used only when `exportExercises` is true.

## Actor input object example

```json
{
  "generatePlan": true,
  "goal": "muscle_gain",
  "level": "intermediate",
  "equipment": [
    "dumbbell",
    "bands"
  ],
  "daysPerWeek": 3,
  "minutesPerSession": 45,
  "weeks": 4,
  "focus": [],
  "limitations": [],
  "language": "English",
  "profiles": [],
  "exportExercises": false,
  "maxExercises": 100
}
```

# Actor output Schema

## `plan` (type: `string`):

No description

## `exercises` (type: `string`):

No description

## `fullPlan` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "equipment": [
        "dumbbell",
        "bands"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("helenisapi/ai-workout-plan-generator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "equipment": [
        "dumbbell",
        "bands",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("helenisapi/ai-workout-plan-generator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "equipment": [
    "dumbbell",
    "bands"
  ]
}' |
apify call helenisapi/ai-workout-plan-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,helenisapi/ai-workout-plan-generator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/bJmHqtNM4mLaNuyrT/builds/oybYDfHHiBwFsFWTK/openapi.json
