Filtering & Parameters
Filter content by category and body parts for targeted results.
Workout Categories: Fitness, Rehabilitation
Plan Categories: Rehabilitation, Weight Management, Cardio, Strength
Important (Flutter, Swift & Kotlin SDKs): When fetching plans, always provide the \
category\ parameter.Include KinesteX Library:
| Parameter | Type | Default | Description |
| include_kinestex | Bool | true | When set to \true\, results include workouts, plans, and exercises from the KinesteX workout library. Set to \false\ to exclude KinesteX library content and only return your own custom content. |
Filter by Translation Languages (REST API):
| Parameter | Type | Default | Description |
| translation_languages | String | — | Filter content by available translations. Pass a comma-separated list of language codes (e.g. \es,fr\) or repeat the parameter for each language (e.g. \translation_languages=es&translation_languages=fr\). Only content with translations in all specified languages is returned. Optional — omit to return all content regardless of translations. |
Body Parts (BodyPart enum):
| SDK Value (Swift) | SDK Value (Kotlin) | SDK Value (Flutter) | REST API Value |
| .abs | ABS | BodyPart.abs | Abs |
| .biceps | BICEPS | BodyPart.biceps | Biceps |
| .calves | CALVES | BodyPart.calves | Calves |
| .chest | CHEST | BodyPart.chest | Chest |
| .externalOblique | EXTERNAL_OBLIQUE | BodyPart.externalOblique | External Oblique |
| .forearms | FOREARMS | BodyPart.forearms | Forearms |
| .glutes | GLUTES | BodyPart.glutes | Glutes |
| .hamstrings | HAMSTRINGS | BodyPart.hamstrings | Hamstrings |
| .lats | LATS | BodyPart.lats | Lats |
| .lowerBack | LOWER_BACK | BodyPart.lowerBack | Lower Back |
| .neck | NECK | BodyPart.neck | Neck |
| .quads | QUADS | BodyPart.quads | Quads |
| .shoulders | SHOULDERS | BodyPart.shoulders | Shoulders |
| .traps | TRAPS | BodyPart.traps | Traps |
| .triceps | TRICEPS | BodyPart.triceps | Triceps |
| .fullBody | FULL_BODY | BodyPart.fullBody | Full Body |
Filter by Category and Body Parts
1// Combine category and body parts filters
2Task {
3 let result = await kinestex.fetchContent(
4 contentType: .workout,
5 category: "Fitness",
6 bodyParts: [.abs, .glutes, .quads],
7 limit: 10
8 )
9
10 switch result {
11 case .workouts(let response):
12 let workouts = response.workouts
13 print("Found \(workouts.count) workouts targeting abs, glutes, and quads")
14
15 case .error(let message):
16 print("Error: \(message)")
17
18 default:
19 break
20 }
21}Exclude KinesteX Library Content
1// Fetch only your custom workouts (exclude KinesteX library)
2Task {
3 let result = await kinestex.fetchWorkouts(
4 category: "Fitness",
5 includeKinestex: false, // Exclude KinesteX library content
6 limit: 10
7 )
8
9 switch result {
10 case .success(let response):
11 let workouts = response.workouts
12 print("Fetched \(workouts.count) custom workouts")
13
14 case .failure(let error):
15 print("Error: \(error.localizedDescription)")
16 }
17}