Skip to Content
API ReferenceContentWorkoutsGETGet workouts metadata

Get workouts metadata

GET/api/v1/content/workouts/metadata

Retrieves available workout filter facets (categories, difficulty levels, body focuses, duration brackets, equipment, training goals, and tags) with matching counts.

Query parameters

None.

Returns

HTTP Status Codes

200 OKWorkoutMetadataoptional

Workout facet options and matching counts across the workout catalogue.

401 UnauthorizedErroroptional

The integration key is missing, invalid, or revoked.

Response attributes

total_countintegeroptional

Total number of workout bundles.

categoriesobject[]optional

Workout discipline categories with name and count.

levelsobject[]optional

Difficulty levels with name and count.

body_focusesobject[]optional

Target body areas with name and count.

lengthsobject[]optional

Duration brackets with name and count.

equipmentobject[]optional

Normalised required equipment options with name and count.

goalsobject[]optional

Training goal facets with name and count.

tagsstring[]optional

Unique taxonomy tags across workouts.

curl -X GET "https://api.bellacoach.ai/api/v1/content/workouts/metadata" \ -H "Authorization: Bearer $BELLA_API_KEY" \ -H "Accept: application/json"

Response (200 OK)

{ "total_count": 810, "categories": [ { "name": "Strength Training", "count": 210 }, { "name": "Yoga", "count": 145 } ], "levels": [ { "name": "Beginner", "count": 290 }, { "name": "Intermediate", "count": 320 } ], "body_focuses": [ { "name": "Full Body", "count": 380 } ], "lengths": [ { "name": "16-20 minutes", "count": 240 } ], "equipment": [ { "name": "Yoga Mat", "count": 550 } ], "goals": [ { "name": "Build Strength", "count": 410 } ], "tags": ["core", "mobility", "strength"] }

Next steps

Last updated on