exerciseapi.dev

What is a fitness API, and which kind does my app need?

An activity API reads what a person's device recorded. An exercise content API like exerciseapi.dev shows someone how to do a movement.

Activity data and exercise content

Two common uses of the term "fitness API" are reading activity data and getting exercise content. An activity API lets you read what someone's device recorded. An exercise content API tells you which muscles a movement works and how to do it.

Picture the screen you're building. If it shows how many steps someone took today, you need an activity API. If they can search for a squat and learn how to do it, you need an exercise catalog.

We provide the catalog. We don't read wearables, count steps or store workout logs. If your app has both screens, you can use a different provider for each.

Build the exercise picker

Start with the search box. When someone types curl, send GET /v1/exercises?q=curl. The matches include Drag Curl and Spider Curl. Each match is a full record, so you already have the instructions when they tap a result.

For someone who'd rather browse by muscle, GET /v1/muscles gives you the groups to show. Pass the selected displayGroup as muscle on the exercise search. For an equipment picker, GET /v1/equipment gives you the names to pass as equipment. If a choice comes back empty, show a message so they can pick again.

If your library has a tab for each discipline, use GET /v1/categories. It gives you the name and exercise count for each tab.

For a catalog summary, GET /v1/stats gives you the total number of exercises and the count in each category.

Open an exercise from a workout log

When someone logs a set, save the exercise id alongside their reps in your own database. Later, when they tap that entry, GET /v1/exercises/:id brings back the movement. Show its name and instructions so they can do it again.

A video is available for 333 of the 2,200 exercises. If the videos list is empty, go straight to the written steps.

Try the curl search

The free plan gives your account 100 requests a day. There's no credit card required.

Get a free key and try the curl search at https://api.exerciseapi.dev/v1/exercises?q=curl. Send the key in the X-API-Key header. For a web app, make the request from your server so the key stays there.