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
The example request
GET https://exercise-database-by-datanest.p.rapidapi.com/exercises/bodyPart/chest?part=chestExample 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.
| Parameter | In | Required | Example |
|---|---|---|---|
| limit | query | No | 10 |
| offset | query | No | 0 |
| x-rapidapi-key | header | Yes | YOUR_RAPIDAPI_KEY |
| x-rapidapi-host | header | Yes | exercise-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.
Share this guide
Related guides
How to use the Cricket Stats API in Python & JavaScript
Live cricket scores, player stats, fantasy points & match schedules for IPL, T20 & more.
How to use the Crypto Intelligence API in Python & JavaScript
Real-time crypto trading signals — BUY/SELL/HOLD based on RSI, MACD & trend analysis.
How to use the Stock Market API in Python & JavaScript
Real-time quotes, analyst ratings, earnings & market movers for 50,000+ tickers.
Exercise Database updates
New Exercise Database guides and endpoint updates, occasionally.