← Back to API Ninjas
Get exercises
Returns up to 5 exercises that satisfy the given parameters.
API Ninjas·$0.001 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "api-ninjas",
path: "/v1/exercises"
});
console.log(output);Query parameters
name
string
Name of exercise. This value can be partial.
type
string
Exercise type. (Allowed: cardio, olympic_weightlifting, plyometrics, powerlifting, strength, stretching, strongman)
muscle
string
Muscle group targeted by the exercise. (Allowed: abdominals, abductors, adductors, biceps, calves, chest, forearms, glutes, hamstrings, lats, lower_back, middle_back, neck, quadriceps, traps, triceps)
difficulty
string
Difficulty level of the exercise. (Allowed: beginner, intermediate, expert)
equipments
string
Equipment required for the exercise. Multiple equipments can be specified using comma separation (e.g. dumbbell,flat bench). This value can be partial.
offset
number
Number of results to offset for pagination. Default is 0. (Default: 0)