📌 Bodypart
Retrieve a list of exercises based on the body part.
Request
Method: GET
URL: https://exercisedb.p.rapidapi.com/exercises/bodyPart/{bodyPart}
🔐 Authentication
- Query parameter:
?rapidapi-key=YOUR_API_KEY
- OR request header:
X-RapidAPI-Key: YOUR_API_KEY
🔸 Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
bodyPart | path | string | true | Body part to filter exercises by |
offset | query | number | false | Offset for pagination (default: 0) |
limit | query | number | false | Limit number of results (default: 10) |
sortMethod | query | string | false | Sort by: id , name , bodyPart , etc. (default: id) |
sortOrder | query | string | false | Sort order: ascending or descending (default: ascending) |
💻 Example Request
fetch(
"https://exercisedb.p.rapidapi.com/exercises/bodyPart/{bodyPart}?rapidapi-key=YOUR_API_KEY"
)
.then((res) => res.json())
.then((data) => console.log(data))
.catch((err) => console.error(err));
Response
200
[
{
"id": "string",
"name": "string",
"bodyPart": "string",
"target": "string",
"equipment": "string",
"secondaryMuscles": ["string"],
"instructions": ["string"],
"description": "string",
"difficulty": "beginner | intermediate | advanced",
"category": "strength | cardio | mobility | balance | stretching | plyometrics | rehabilitation"
}
]
📝 Notes
- Setting the
limit
parameter to 0 will return the entire filtered list - To retrieve a
limit
greater than 10 you must be subscribed to the PRO, ULTRA, or MEGA plan