OwnGym Library Get the app
Home Exercises Collections Figures Developers OwnGym app ↗ Get OwnGym free

For developers · CC BY 4.0

Use it in your project.

One JSON catalogue, one base URL, no key. Fetch an exercise, load its media, cache by content hash. The same files power the OwnGym Android app.

Quick start

Three steps. No key.

Everything is static and cached on Cloudflare. Start with the catalogue, pick an exercise, then request only the media you need.

01

Fetch the catalogue

One request gives you all 464 exercises with steps, muscles and media paths.

GET /exercises.json
02

Pick an exercise

Match by name or aliases. Keep the id; every media file uses it.

id: "SpYC0Kp"
03

Load its media

Use the GIF in the app, the animated WebP on the web, and the pictures as a fallback.

gifs/female/<id>.gif

Code

Pick your language.

The catalogue is plain JSON. These examples find the Bodyweight Squat and print its steps and first media paths.

const BASE = 'https://owngym-assets.pages.dev/';
const { exercises } = await (await fetch(BASE + 'exercises.json')).json();

const squat = exercises.find((e) => e.name === 'Bodyweight Squat');
console.log(squat.steps);                          // how to do it
console.log(BASE + squat.media.gifs.female);       // animated guide
console.log(BASE + squat.media.pictures[0]);       // start / finish picture

Catalogue

What is inside.

Every exercise has the same shape. Media paths are relative to the base URL and only exist when the file exists.

Exercise fields

FieldWhat it is
idStable id used by every media file.
nameDisplay name; match this first.
groupOne of 14 muscle groups used for filtering.
primaryMain muscles trained, finest regions.
secondaryHelper muscles.
equipmentbarbell, dumbbell, cable, machine, band, bodyweight…
levelbeginner, intermediate or advanced.
kindstrength, calisthenics, cardio or stretch.
stepsOrdered instructions written for a first-timer.
aliasesOther names the move is logged under.
mediaGIFs by body and pictures in display order.

Media paths

Use the path from media, or build it from the id. Never build a URL for a file that is not listed.

gifs/<female|male>/<id>.gif
exercises/<id>.webp
exercises/<id>@2.webp
web/anim/<female|male>/<id>.webp
web/poster/<female|male>/<id>.webp
models/<name>.bin
models/<name>.webp

Caching

Hash it. Keep it.

Media files are immutable for a year. index.json lists a short content hash for every file; request ?v=<hash> and keep the file until the hash changes.

index.json

A small index of every picture, GIF and figure. Cache it for five minutes.

{
  "gifs": { "female": { "<id>": "<hash>" }, "male": { "<id>": "<hash>" } },
  "exercises": { "<id>": "<hash>" },
  "figures": [{ "id": "aria", "hash": "<hash>" }]
}

Download on demand

The full GIF library is about 175 MB. Do not download it all: request the guide when someone opens that exercise, and keep the last few in a small cache.

Cache by hash

Replace the file only when the hash changes.

No tracking

No key, no account, no identifier. Only the file name is requested.

Media

Pick the right format.

Use the GIF in an Android app, the animated WebP on the web, and the pictures when you need a still or an offline fallback.

Animated GIF

360 px, 200–700 KB. The original guide, best for native apps.

gifs/female/<id>.gif

Web preview

Animated WebP plus a still poster, about 9× smaller. Best for websites.

web/anim/… · web/poster/…

Catalogue + pictures

Start and finish WebP pictures, steps, muscles and aliases in one JSON.

exercises/<id>.webp · exercises.json

For AI assistants

Fetch exercises.json, match the name first and then the aliases, and answer with the exercise’s steps and primary muscles. Link only paths that are in media.

1. GET /exercises.json
2. match name / alias
3. answer with steps + primary muscles
4. link media.gifs.female

Readable fallback

If you can only read text, EXERCISES.md has the same catalogue as one page, grouped by muscle and with every step.

Free to use.
Credit the library.

The catalogue and media are licensed under CC BY 4.0. Use, share and adapt them, including commercially, with credit to “OwnGym exercise library” and a link to the repository.

OwnGymFree on Google PlayInstall