Your Move Workouts API

Generate structured workouts

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /workouts/generate Generate a structured workout #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ymove-app:ymove-app-workouts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ymove-app-workouts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: YMove Fitness Workouts API
  version: 2.5.0
  description: Access 2005+ professional exercise videos, a comprehensive food & nutrition database, recipe search, and AI-powered meal plan generation. Features include rate limiting, monthly exercise caps, and video access protection. Video URLs are pre-signed and expire after 48 hours. Always fetch fresh exercise data before displaying videos. Sign up at https://ymove.app/exercise-api/signup for a free trial.
  contact:
    email: contact@ymove.app
    url: https://ymove.app/exercise-api
servers:
- url: https://exercise-api.ymove.app/api/v2
  description: Production
security:
- ApiKeyHeader: []
- ApiKeyQuery: []
tags:
- name: Workouts
  description: Generate structured workouts
paths:
  /workouts/generate:
    get:
      summary: Generate a structured workout
      operationId: generateWorkout
      tags:
      - Workouts
      parameters:
      - name: muscleGroup
        in: query
        required: true
        style: form
        explode: false
        schema:
          type: array
          items:
            type: string
            enum:
            - chest
            - back
            - shoulders
            - biceps
            - triceps
            - forearms
            - quads
            - hamstrings
            - glutes
            - calves
            - legs
            - core
            - neck
            - full_body
            - cardio
            - upper_body
            - lower_body
        description: 'Target muscle group(s). Accepts a single value, a comma-separated list (e.g. "chest,back"), or repeated query keys. Aliases: "full_body" (all groups), "upper_body" (chest, back, shoulders, biceps, triceps, forearms, core), "lower_body" (quads, hamstrings, glutes, calves, legs). Aliases can be combined with specific groups. Synonyms and finer-grained muscles also roll up to their group.'
      - name: equipment
        in: query
        style: form
        explode: false
        schema:
          type: array
          items:
            type: string
            enum:
            - bodyweight
            - dumbbell
            - cable
            - mat
            - machine
            - barbell
            - kettlebell
            - band
            - plate
            - chair
            - wall
            - treadmill
            - smith-machine
            - box
            - bosu
            - foam-roller
            - rings
            - bench
            - stationary-bike
            - stability-ball
            - landmine
            - medicine-ball
            - pull-up-bar
            - dip-bar
            - rowing-machine
            - suspension-trainer
            - weighted-vest
            - mini-band
            - push-up-handles
            - battle-rope
            - air-bike
            - trap-bar
            - ab-wheel
            - block
            - cone
            - towel
            - step
            - smith machine
            - foam roller
            - stationary bike
            - stability ball
            - medicine ball
            - pull up bar
            - dip bar
            - rowing machine
            - suspension trainer
            - weighted vest
            - mini band
            - push-up handles
            - battle rope
            - air bike
            - trap bar
            - ab wheel
            - free weights
            - ez bar
            - swiss ball
            - exercise ball
            - gym ball
            - resistance band
            - resistance bands
            - bosu ball
            - balance trainer
            - pullup bar
            - chin up bar
            - chinup bar
            - parallel bars
            - gymnastic rings
            - yoga mat
            - med ball
            - slam ball
            - weight plate
            - bumper plate
            - hex bar
            - aerobic step
            - step platform
            - plyo box
            - plyometric box
            - jump box
            - yoga block
            - yoga blocks
            - running machine
            - row machine
            - rowing ergometer
            - concept 2
            - exercise bike
            - home bike
            - spin bike
            - spinning bike
            - indoor bike
            - indoor cycle
            - upright bike
            - recumbent bike
            - cycle ergometer
            - assault bike
            - fan bike
            - echo bike
            - no equipment
        description: Limit to specific equipment. Accepts a single value, comma-separated list, or repeated keys. Hyphens, underscores and spaces are interchangeable.
      - name: exerciseType
        in: query
        style: form
        explode: false
        schema:
          type: array
          items:
            type: string
            enum:
            - strength
            - yoga
            - stretching
            - cardio
            - plyometric
            - calisthenics
            - warmup
            - cooldown
            - balance
            - mobility
            - isometric
            - rehabilitation
            - functional
            - core
            - hiit
        description: Filter main exercises by type. Accepts a single value, comma-separated list, or repeated keys.
      - name: difficulty
        in: query
        schema:
          type: string
          enum:
          - beginner
          - intermediate
          - advanced
          default: intermediate
        description: 'Difficulty level. Filters which exercises are selected: beginner returns beginner-level moves, intermediate returns beginner+intermediate, advanced prefers advanced moves (falling back to intermediate where advanced options are limited). Also sets the default set/rep/rest scheme.'
      - name: exerciseCount
        in: query
        schema:
          type: integer
          default: 6
          minimum: 3
          maximum: 12
        description: Number of main exercises (warmup and cooldown are returned separately and counted in addition to this).
      - name: structure
        in: query
        schema:
          type: string
          enum:
          - straight
          - superset
          - circuit
          - auto
          default: straight
        description: 'Workout structure. auto lets the generator pick: straight for advanced (heavy work needs full rest) or single-muscle requests, circuit for bodyweight-only sessions of 5+ exercises, supersets when multiple muscle groups allow antagonist pairing; the response then carries structureReason. Keys created after 2026-08-19 default to auto; older keys default to straight. straight (default): classic straight sets, unchanged output. superset: exercises are paired into blocks (group "A", "B", ... with groupType and groupPosition on each exercise), short rest inside the pair (supersetRestSeconds), full rest after it; pairs mix muscle groups where possible. circuit: all main exercises form one circuit performed for `rounds` rounds - each exercise carries sets=rounds, restSeconds is the hop between stations (stationRestSeconds), and roundRestSeconds separates rounds.'
      - name: rounds
        in: query
        schema:
          type: integer
          minimum: 2
          maximum: 6
          default: 3
        description: Circuit rounds (structure=circuit only).
      - name: includeWarmup
        in: query
        schema:
          type: boolean
          default: true
        description: Prepends a warmup block of bodyweight stretches, mobility work, and light cardio. Default true; set to false to omit. Warmup exercises count toward your monthly exercise cap.
      - name: warmupCount
        in: query
        schema:
          type: integer
          default: 3
          minimum: 2
          maximum: 5
        description: Number of warmup exercises. Only applied when includeWarmup is not false.
      - name: includeCooldown
        in: query
        schema:
          type: boolean
          default: true
        description: Appends a cooldown block of bodyweight stretches and mobility work at the end of the session. Default true; set to false to omit. Cooldown exercises count toward your monthly exercise cap.
      - name: cooldownCount
        in: query
        schema:
          type: integer
          default: 3
          minimum: 2
          maximum: 5
        description: Number of cooldown exercises. Only applied when includeCooldown is not false.
      - name: includeVideos
        in: query
        schema:
          type: boolean
        description: 'Whether to include video URLs. When omitted, the default depends on your API key: keys created before 2026-07-07 default to true, newer keys default to false (browse mode). Pass includeVideos=true when you want playable videos - the returned exercises then count toward your monthly cap. Thumbnails are returned either way on this endpoint, on every plan.'
      - name: preferGender
        in: query
        schema:
          type: string
          enum:
          - male
          - female
        description: Preferred model gender for the videos. Wherever an exercise has a clip with this model it comes first in the videos array; otherwise the other model is used. Read the gender field on each video to see which one you got.
      responses:
        '200':
          description: Generated workout. When the monthly exercise cap is exceeded, exercises not previously accessed will have video properties removed entirely. A `_warning` object is included with details.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Workout'
                  _warning:
                    $ref: '#/components/schemas/MonthlyCapWarning'
        '400':
          description: Missing required parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitError'
components:
  schemas:
    WorkoutExercise:
      type: object
      properties:
        exercise:
          $ref: '#/components/schemas/Exercise'
        sets:
          type: integer
        reps:
          type: string
        restSeconds:
          type: integer
        group:
          type: string
          description: Block label when structure=superset ("A","B",...) or circuit ("circuit"). Absent on straight sets and unpaired exercises.
        groupType:
          type: string
          enum:
          - superset
          - circuit
          description: Block type; absent on straight sets.
        groupPosition:
          type: integer
          description: 1-based position inside the block.
        order:
          type: integer
    RateLimitError:
      type: object
      required:
      - error
      - retryAfterMs
      properties:
        error:
          type: string
        retryAfterMs:
          type: integer
          description: Milliseconds until the rate limit resets
        upgradeUrl:
          type: string
          description: URL to upgrade your plan
        availablePlans:
          type: array
          items:
            type: string
    Exercise:
      type: object
      required:
      - id
      - title
      - slug
      - muscleGroup
      - equipment
      - hasVideo
      - hasVideoWhite
      - hasVideoGym
      - videos
      properties:
        id:
          type: string
          format: uuid
        title:
          type: string
        slug:
          type: string
        description:
          type:
          - string
          - 'null'
        instructions:
          type:
          - array
          - 'null'
          items:
            type: string
        importantPoints:
          type:
          - array
          - 'null'
          items:
            type: string
        muscleGroup:
          type: string
        secondaryMuscles:
          type:
          - array
          - 'null'
          items:
            type: string
        muscleGroups:
          type:
          - array
          - 'null'
          items:
            type: string
          description: Every muscle this exercise works, primary and supporting, at anatomical detail (e.g. ["back","lats","rhomboids","traps","erector_spinae"]). muscleGroup is the single coarse value the filters use; this is the detail behind it, for body maps and analysis. Populated for the whole catalogue.
        equipment:
          type: string
        category:
          type:
          - string
          - 'null'
        difficulty:
          type:
          - string
          - 'null'
        videoUrl:
          type:
          - string
          - 'null'
          format: uri
          description: Pre-signed CDN URL for primary video. Expires after 48 hours.
        videoHlsUrl:
          type:
          - string
          - 'null'
          format: uri
          description: Pre-signed CDN URL for HLS playlist. Expires after 48 hours.
        thumbnailUrl:
          type:
          - string
          - 'null'
          format: uri
          description: Default thumbnail (up to 600x800, 3:4) for the primary video, served from ymove.app. Static and cacheable - it does not expire. Same as thumbnails.default. Returned in browse mode too, where the video URLs are not.
        thumbnails:
          $ref: '#/components/schemas/Thumbnails'
        videoDurationSecs:
          type:
          - integer
          - 'null'
        exerciseType:
          type:
          - array
          - 'null'
          items:
            type: string
        hasVideo:
          type: boolean
        hasVideoWhite:
          type: boolean
        hasVideoGym:
          type: boolean
        videos:
          type: array
          items:
            $ref: '#/components/schemas/Video'
      example:
        id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        title: Barbell Bench Press
        slug: barbell-bench-press
        description: A compound chest exercise performed lying on a flat bench.
        instructions:
        - Lie on a flat bench with feet flat on the floor
        - Grip the barbell slightly wider than shoulder width
        - Lower the bar to mid-chest
        - Press the bar back up to full arm extension
        importantPoints:
        - Keep your back flat on the bench
        - Do not bounce the bar off your chest
        muscleGroup: chest
        secondaryMuscles:
        - triceps
        - shoulders
        muscleGroups:
        - chest
        - middle_chest
        - pectoralis_major
        - front_deltoids
        - triceps
        - core
        equipment: barbell
        category: compound
        difficulty: intermediate
        videoUrl: https://vz-xxx.b-cdn.net/video-id/play_720p.mp4?token=...
        videoHlsUrl: https://vz-xxx.b-cdn.net/video-id/playlist.m3u8?token=...
        thumbnailUrl: https://exercise-api.ymove.app/api/v2/thumbnail/video-id?crop=default
        thumbnails:
          default: https://exercise-api.ymove.app/api/v2/thumbnail/video-id?crop=default
          square: https://exercise-api.ymove.app/api/v2/thumbnail/video-id?crop=square
          portrait: https://exercise-api.ymove.app/api/v2/thumbnail/video-id?crop=portrait
          landscape: https://exercise-api.ymove.app/api/v2/thumbnail/video-id?crop=landscape
          original: https://exercise-api.ymove.app/api/v2/thumbnail/video-id
        videoDurationSecs: 12
        exerciseType:
        - strength
        hasVideo: true
        hasVideoWhite: true
        hasVideoGym: false
        videos:
        - id: 3f6c2a9e-8b1d-4c7a-9e2f-5d0b7a1c4e88
          videoUrl: https://vz-xxx.b-cdn.net/video-id/play_720p.mp4?token=...
          videoHlsUrl: https://vz-xxx.b-cdn.net/video-id/playlist.m3u8?token=...
          thumbnailUrl: https://exercise-api.ymove.app/api/v2/thumbnail/video-id?crop=default
          thumbnails:
            default: https://exercise-api.ymove.app/api/v2/thumbnail/video-id?crop=default
            square: https://exercise-api.ymove.app/api/v2/thumbnail/video-id?crop=square
            portrait: https://exercise-api.ymove.app/api/v2/thumbnail/video-id?crop=portrait
            landscape: https://exercise-api.ymove.app/api/v2/thumbnail/video-id?crop=landscape
            original: https://exercise-api.ymove.app/api/v2/thumbnail/video-id
          tag: white-background
          orientation: landscape
          isPrimary: true
    Workout:
      type: object
      properties:
        name:
          type: string
        muscleGroups:
          type: array
          items:
            type: string
          description: Muscle groups targeted (expanded from any aliases in the request).
        muscleGroupsRequested:
          type: array
          items:
            type: string
          description: The original muscleGroup values from the request, including any aliases (full_body, upper_body, lower_body).
        difficulty:
          type: string
        estimatedMinutes:
          type: integer
          description: Estimated total workout duration, including warmup and cooldown when present.
        exerciseCount:
          type: integer
        exercises:
          type: array
          items:
            $ref: '#/components/schemas/WorkoutExercise'
        structure:
          type: string
          enum:
          - straight
          - superset
          - circuit
          description: Structure actually used (auto resolves to one of these).
        structureReason:
          type: string
          description: Why auto picked this structure. Only present when structure=auto was requested or defaulted.
        warmup:
          type: array
          items:
            $ref: '#/components/schemas/WorkoutExercise'
          description: Warmup exercises (bodyweight stretches, mobility, and light cardio) placed at the start of the session. Present unless includeWarmup=false.
        cooldown:
          type: array
          items:
            $ref: '#/components/schemas/WorkoutExercise'
          description: Cooldown exercises (bodyweight stretches and mobility) placed at the end of the session. Present unless includeCooldown=false.
    Video:
      type: object
      required:
      - id
      - tag
      - isPrimary
      description: Video URLs are pre-signed and expire after 48 hours. Do not cache these URLs. Always fetch fresh exercise data before displaying videos.
      properties:
        id:
          type: string
          format: uuid
          description: Stable unique ID of this video. Use it to tell apart the videos of one exercise, or to store a reference to one specific clip. It does not change when the signed URLs do.
        videoUrl:
          type: string
          format: uri
          description: Pre-signed CDN URL for MP4 video. Expires after 48 hours.
        videoHlsUrl:
          type: string
          format: uri
          description: Pre-signed CDN URL for HLS playlist. Expires after 48 hours.
        thumbnailUrl:
          type: string
          format: uri
          description: The default thumbnail (up to 600x800, 3:4), served from ymove.app. Static and cacheable - it does not expire. Same as thumbnails.default; the other framings are on the thumbnails object.
        thumbnails:
          $ref: '#/components/schemas/Thumbnails'
        tag:
          type: string
          enum:
          - white-background
          - gym-shot
        orientation:
          type: string
          enum:
          - landscape
          - portrait
          description: 'Video aspect orientation. Most exercise clips are PORTRAIT (vertical, ~9:16), shot for mobile. Do not assume landscape. Read this field and size your player to a portrait container (e.g. aspect-ratio 9/16) with object-fit: cover so clips fill the frame instead of letterboxing.'
        gender:
          type:
          - string
          - 'null'
          enum:
          - male
          - female
          - null
          description: The model in the clip. Filter on it with ?gender= or order by it with ?preferGender=. Null on a clip that has not been tagged.
        isPrimary:
          type: boolean
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
        message:
          type: string
    Thumbnails:
      type: object
      description: 'Five framings of one frame from the clip, all served from ymove.app. Unlike the video URLs these are static: no token, no expiry, safe to cache, store and hotlink. They accompany the video whenever one is returned, and never count against your monthly cap. On Scale they are also returned without a video, in browse mode and with excludeVideos; on the capped plans they are not, so the monthly exercise limit stays visible while you build rather than arriving all at once the day you switch video on. The frame is picked from across the clip for a visible face and the most extended pose, so a jump is caught mid-air rather than at the standing rest position the clip opens on. Every crop is centred on the person by face detection, and each one is white-balanced after cropping, so a grid of clips from different shoots reads as one library instead of drifting warm or green between shoots.'
      required:
      - default
      - square
      - portrait
      - landscape
      - original
      properties:
        default:
          type: string
          format: uri
          description: Up to 600x800 (3:4). The one to reach for, and what thumbnailUrl points at. A mild portrait holds a standing lift and a lying floor exercise without cramping either.
        square:
          type: string
          format: uri
          description: Up to 600x600 (1:1). List rows, grid tiles, anywhere the layout is already square.
        portrait:
          type: string
          format: uri
          description: Up to 720x1280 (9:16). Matches the video itself, for full-bleed mobile and story-style screens.
        landscape:
          type: string
          format: uri
          description: 'Up to 1280x720 (16:9). Wide cards, hero strips, and the poster frame of a video player. Tall poses are cropped to the upper body to fit the shape. Sizes are ceilings: the images are never upscaled, so a crop is only as large as the source clip allows, and older clips cap around 720px wide.'
        original:
          type: string
          format: uri
          description: The whole frame, uncropped, as shot (portrait, ~9:16). Use it when you want to crop it yourself.
    MonthlyCapWarning:
      type: object
      description: Included as `_warning` in the response body when the exercise video limit is exceeded (per 30 days on monthly billing, per 365 days on yearly; reason stays monthly_exercise_cap for both). Exercises not previously accessed will have their video properties (videoUrl, videoHlsUrl, thumbnailUrl, videoDurationSecs, videos) removed entirely from the response. Previously accessed exercises keep their video URLs.
      properties:
        message:
          type: string
        reason:
          type: string
          enum:
          - monthly_exercise_cap
        monthlyExercisesUsed:
          type: integer
        monthlyExerciseLimit:
          type: integer
        exerciseLimitWindowDays:
          type: integer
          enum:
          - 30
          - 365
        upgradeUrl:
          type: string
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key