2026-11-22 · Guide
Generate workouts and weekly training plans with an API (ExerciseDB alternative)
Most exercise APIs give you a list of exercises and leave the hard part — building a sensible workout — to you. The Exercise & Workout API also generates complete workouts and weekly plans.
Find exercises
import requests
HOST = "exercise-workout-api-870-exercises-plans.p.rapidapi.com"
H = {"x-rapidapi-host": HOST, "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"}
get = lambda path, **p: requests.get(f"https://{HOST}{path}", headers=H, params=p).json()
chest = get("/exercises", muscle="chest", equipment="dumbbell", limit=5)
for e in chest["exercises"]:
print(e["name"], e["level"], e["images"][0])
Filter by 17 muscles, body part, equipment, level, force, mechanic and category — or use /search?q=incline press.
No barbell? Get alternatives
alt = get("/similar", id="Barbell_Bench_Press_-_Medium_Grip", equipment="dumbbell", limit=3)
print([a["name"] for a in alt["alternatives"]])
Generate a workout
w = get("/workout", focus="push", goal="hypertrophy", level="intermediate", equipment="dumbbell,body only", minutes=45)
for e in w["exercises"]:
print(e["order"], e["name"], f'{e["sets"]} x {e["reps"]}', f'rest {e["rest_seconds"]}s')
print(w["estimated_minutes"], "min,", w["estimated_calories_70kg"], "kcal")
Goals: strength, hypertrophy, endurance, fat_loss, power, mobility. Splits: push, pull, legs, upper, lower, full, core, arms, chest, back, shoulders — or a single muscle. Every workout has a warm-up and cool-down, and compound lifts come first.
A whole week
plan = get("/plan", days=4, goal="strength", level="beginner", equipment="barbell,dumbbell,body only")
for day in plan["schedule"]:
print(day["weekday"], day["focus"], [e["name"] for e in day["exercises"]])
Pass seed=anything to get the same plan again. Data is from the public-domain free-exercise-db project; images load fast from a CDN.
Try it free. Exercise & Workout API - 870+ Exercises, Plans has a free plan on RapidAPI — every endpoint included.
Get your free key