Skip to content
DDataNest

Sports · 4 min read

How to use the Exercise Database API in Python & JavaScript

Sports apps live or die on fresh data. This guide gets exercise database into your product fast.

By DataNest · Published May 2026

What the Exercise Database API does

1,300+ exercises with animated GIFs, target muscles, equipment, and step-by-step instructions — a complete fitness content library as an API. Responses are JSON, the API runs behind the RapidAPI gateway for auth and rate limiting, and there's a free tier for prototyping.

When to use it

fitness apps
workout generators
personal trainer tools

The example request

GET https://exercise-database-by-datanest.p.rapidapi.com/exercises/bodyPart/chest?part=chest

Example JSON response

An illustrative response body — run the live demo for the real thing.

{
  "count": 1,
  "exercises": [
    {
      "name": "barbell bench press",
      "bodyPart": "chest",
      "target": "pectorals",
      "equipment": "barbell",
      "gifUrl": "https://cdn.example.com/ex/0025.gif",
      "instructions": [
        "Lie flat on the bench.",
        "Lower the bar to mid-chest.",
        "Press up to full extension."
      ]
    }
  ]
}

Common parameters

Every request also needs your RapidAPI auth headers.

ParameterInRequiredExample
limitqueryNo10
offsetqueryNo0
x-rapidapi-keyheaderYesYOUR_RAPIDAPI_KEY
x-rapidapi-hostheaderYesexercise-database-by-datanest.p.rapidapi.com

Step by step

1. Subscribe and get your key

Open the Exercise Database API on RapidAPI, subscribe to the free BASIC plan, and copy your X-RapidAPI-Key.

2. Call the endpoint

The example call for this API is shown above. The quick-start snippets below send exactly that request in cURL, Python and Node so you get a real response on the first try.

3. Try it without code first

The Exercise Database page has a live "Try it" panel — change the input, run it, and inspect the real JSON before you integrate.

4. Integrate and cache

Call it from your backend and cache responses where it makes sense. Most responses change slowly, so even a daily cache keeps you well within the free tier.

Quick-start code

curl --request GET \
  --url 'https://exercise-database-by-datanest.p.rapidapi.com/exercises?limit=10&offset=0' \
  --header 'x-rapidapi-host: exercise-database-by-datanest.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'

What you can build

Workout generator

Build a routine from a chosen body part and available equipment.

Trainer app library

Give coaches 1,300+ ready exercises with form GIFs to assign.

Rehab suggestions

Surface low-impact moves for a targeted muscle group.

Wrapping up

If your project needs fitness apps, the Exercise Database API removes the part nobody enjoys building. It's one of 23 in the DataNest collection — grab a free key and make your first call.

Exercise Database updates

New Exercise Database guides and endpoint updates, occasionally.