Is there a workout API, or do I build workouts from exercise data?
With exerciseapi.dev, you build the workout. Pick one exercise per slot, then add sets, reps and rest in your app.
Fill the first slot
We return exercise records. There's no endpoint for plans, sets, reps or schedules. For a beginner strength workout, we chose five slots: quadriceps, chest, back, shoulders and core. Here's the request for the first one.
GET https://api.exerciseapi.dev/v1/exercises?category=strength&level=beginner&mechanic=compound&muscle=quadriceps&random=true&limit=1
The filters narrow the list to beginner compound strength exercises with quadriceps among their primary muscles. Then random=true shuffles the matches and limit=1 returns one. Read the pick from data. Show the match count only when total is a number. It can be null. Change muscle to fill the other four slots. For shoulders only, use limit=2.
What five requests gave us
We ran all five requests on December 3, 2026. We got Cable_Deadlifts for quadriceps (39 matches), Incline_Dumbbell_Flyes for chest (48) and Smith_Machine_Inverted_Row for back (45). Dumbbell_Raise filled the shoulders slot (34), and Elbow_to_Knee filled core (30).
Cable_Deadlifts might surprise you if you expected a squat. It's a hinge movement, and its primary muscles include both quadriceps and glutes. The muscle filter checks primary muscles only.
There is no legs group, so muscle=legs comes back empty. Choose a group such as quadriceps or hamstrings. We also got an empty list for abs and abdominals. Use core for that slot. The muscle group filter guide lists the options.
Match the workout to the equipment
Our five picks called for a cable machine, dumbbells, an incline bench and a Smith machine. Only the core exercise needed no equipment. If the person training has dumbbells and a bench, add equipment=dumbbell to each request. The equipment field names the main piece. All 10 dumbbell chest matches need a bench. Read the instructions because some need an incline or decline bench.
With dumbbells, we had 11 quadriceps choices, 10 chest, 8 back, 6 shoulders and 3 core. Without a bench, use equipment=body%20only for chest. Pushups is one of 11 matches. If you want more variety, drop mechanic=compound. For dumbbells, that took shoulders from 6 to 26 and chest from 10 to 13. With equipment=body%20only and the compound filter, shoulders had just one match.
Check for a repeat
Save each exercise's id as you fill the workout. For shoulders, take the first exercise in data whose id you haven't used. Standing_Dumbbell_Upright_Row was the only exercise our five lists shared, and it matched back and shoulders. At most one of the two shoulder picks can repeat your back pick, so five requests give you five different exercises.
With other filters, the lists can overlap differently. Check ids there too. If every result is already used or data is empty, ask the person to loosen a filter.
A browser or phone can reuse a reply for the same URL for up to an hour. The random exercise guide shows how to get a fresh pick.
Want a model to choose the workout?
Give the model a shortlist with each exercise's id, name, muscles and instructions. Ask it to return only the ids it picks. Check each id against the list in your app. Your app or a second model step adds the order, sets, reps, rest and weights. The AI workout generator guide shows the request and prompt.
Try it on the free plan
The free plan gives your account 100 requests a day. At five requests each, that's 20 workouts if you make no other requests.
To use fewer requests, set limit=20 for each slot. Five calls fill five lists your device can pick from. Save each list with a timestamp and fetch a new page when it's 24 hours old. Have your app delete any saved list when it reaches 30 days, even if nobody picks that slot again. Each page is one shuffled sample of the 30 to 48 original matches.
Get a free key and run the quadriceps request above. There's no credit card required. Send the key in the X-API-Key header. For a web app, keep it on your server.