📌 Exercise
Get a single exercise by it's ID.
Request
Method: GET
URL: https://exercisedb.p.rapidapi.com/exercises/exercise/{id}
🔐 Authentication
- Query parameter:
?rapidapi-key=YOUR_API_KEY
- OR request header:
X-RapidAPI-Key: YOUR_API_KEY
🔸 Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | number | true | ID for the exercise |
💻 Example Request
fetch(
"https://exercisedb.p.rapidapi.com/exercises/exercise/{id}?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"
}