Disclosure: I work on ExerciseGIF, one of the five APIs below. Three of the five are free, and for a prototype one of those is the right choice.
Writing the exercise list is easy. Getting 200 animations that look like they belong together is the hard part.
Most Gifs are not great, they dont mimmick the movement well enough. Which is fine for well known exercises like a bench press, but already for deadlifts and squats I find it tricky.
So most developers look for an exercise API that returns a GIF. There are fewer of those than you would think. Many exercise APIs return text only, or a still image. Here are five that return an animation, and what you get from each.
What to check before you pick one
- How big is the animation? A 180 pixel GIF looks fine in a list and blurry on a detail screen.
- Does it show which muscles work? Users ask "where should I feel this?" more than anything else.
- Can you use it in an app you charge for? Many free sources do not say.
- Do you get other formats? A GIF is easy, but MP4 and WebP are much smaller for the same clip.
1. ExerciseDB V1 (open source)
The one most tutorials use. About 1,500 exercises, each with a small animated GIF of 180 pixels. The hosted version needs no API key and allows 1,000 requests per hour.
Good for: prototypes, hackathons and learning projects. You have a working exercise list in ten minutes.
The catch: the GIFs are tiny and look pixelated on a modern phone. The docs do not say whether commercial use is allowed.
2. ExerciseDB V2 (AscendAPI)
The newer, hosted version. It claims 11,000+ exercises with animated GIFs that are also available as MP4. The free tier gives 2,000 requests a month and access to 200 exercises. Paid access runs through RapidAPI.
Good for: trying a bigger catalogue before you decide.
The catch: 200 exercises is a sample. Commercial terms are not stated in the docs.
3. buzops9/exercisedb (self-hosted)
A small open-source set that you host yourself: 317 exercises and 593 clips, in a GIF-like animation style delivered as 1080p MP4.
Good for: a small app that needs sharp clips for the common exercises and has no budget.
The catch: the code has an MIT licence, but the licence for the media is not stated. And 317 exercises runs out quickly.
4. WorkoutX
1,900+ exercises with 2,700+ clips of 3D animation as 720p MP4, from $19 a month. There is a free allowance of 500 requests in total. Commercial use is covered on paid plans.
Good for: apps that want one consistent 3D look and a large catalogue.
The catch: the clips come as MP4, so for email, PDF plans or chat you have to convert them to GIF yourself.
5. ExerciseGIF
This is ours. 265 exercises so far, each as a looping animation with the working muscles highlighted on the figure. Every exercise comes as GIF (480 and 720 pixels), animated WebP and MP4, plus the steps, form tips and the muscle list with plain and Latin names.
This is what a squat looks like (the previews on the site carry a watermark, the API files do not):
And a hip thrust and a push-up, same figure, same angle, same background:
There is one plan: $29 a month for everything, with no request counting. Commercial use in your own app or site is included while you subscribe.
Good for: apps where the user should see which muscles an exercise works, and anything that needs a real GIF: email, PDF programs, chat.
The catch: the catalogue is the smallest of the paid options. It covers the most searched exercises first and is still growing. If you need 1,500 exercises today, pick one of the others.
Side by side
| API | What users watch | Catalogue | Price | Commercial use |
|---|---|---|---|---|
| ExerciseDB V1 | GIF, 180 px | about 1,500 | Free | Not stated |
| ExerciseDB V2 | GIF, also MP4 | 11,000+ (claimed) | Free tier: 200 exercises | Not stated |
| buzops9/exercisedb | Animation, 1080p MP4 | 317 | Free, self-hosted | Media licence not stated |
| WorkoutX | 3D animation, 720p MP4 | 1,900+ | from $19/mo | Paid plans |
| ExerciseGIF | GIF, WebP and MP4 with muscles highlighted, 480 and 720 px | 265 | $29/mo, one plan | Included |
What the code looks like
Most of these APIs work the same way: ask for an exercise, get JSON back with a link to the animation. Here it is with ours.
curl https://exercisegif.com/v1/exercises/squat \
-H "Authorization: Bearer $EXERCISEGIF_KEY"
The answer, shortened:
{
"id": "squat",
"name": "Squat",
"equipment": "Barbell",
"muscles": [
{ "id": "quadriceps", "name": "Quadriceps", "latin": "Musculus quadriceps femoris" },
{ "id": "glutes", "name": "Glutes", "latin": "Musculus gluteus maximus" }
],
"steps": ["Set the barbell at chest height in the squat rack", "..."],
"tips": ["..."],
"loopSeconds": 3.6,
"media": {
"male": {
"gif": "https://exercisegif.com/v1/media/squat?sex=male&format=gif&size=480",
"webp": "https://exercisegif.com/v1/media/squat?sex=male&format=webp&size=480",
"mp4": "https://exercisegif.com/v1/media/squat?sex=male&format=mp4&size=720"
}
}
}
Search works with plain query parameters:
curl "https://exercisegif.com/v1/exercises?muscle=glutes&equipment=dumbbells" \
-H "Authorization: Bearer $EXERCISEGIF_KEY"
One tip that works for every API on this list
Do not load the animation from the API on every screen view. Fetch each exercise once on your server, save the file to your own storage or CDN, and serve it from there. Your app gets faster, your key never ends up in the app bundle, and you stay far away from any rate limit.
A small Node script is enough:
import fs from "node:fs/promises";
const headers = { Authorization: `Bearer ${process.env.EXERCISEGIF_KEY}` };
const api = "https://exercisegif.com/v1";
// the whole library in one call
const { items } = await (await fetch(`${api}/exercises?limit=500`, { headers })).json();
for (const exercise of items) {
const res = await fetch(exercise.media.male.webp, { headers });
await fs.writeFile(`public/exercises/${exercise.id}.webp`, Buffer.from(await res.arrayBuffer()));
}
await fs.writeFile("exercises.json", JSON.stringify(items));
Then your app reads exercises.json and shows /exercises/squat.webp like any other image:
export function ExerciseCard({ exercise }) {
return (
<figure>
<img src={`/exercises/${exercise.id}.webp`} alt={`${exercise.name} animation`} width={480} height={480} loading="lazy" />
<figcaption>
<strong>{exercise.name}</strong>
<span>{exercise.muscles.map((m) => m.name).join(", ")}</span>
</figcaption>
</figure>
);
}
Use WebP or MP4 in the app, because they are two to ten times smaller than the GIF. Keep the GIF for the places where nothing else plays: email, PDF and chat.
Which one should you pick?
- Learning or building a prototype: ExerciseDB V1. No key, and it works in ten minutes.
- A small free app that you host yourself: buzops9/exercisedb.
- A large catalogue in one 3D style: WorkoutX.
- Animations that show the worked muscles, as real GIFs: ExerciseGIF.
Whatever you choose, keep the exercise source behind one function in your code. Then moving from a free API to a paid one later is a change in one file.
You can browse all 265 animations at exercisegif.com, and the API docs are at exercisegif.com/docs.



Top comments (0)