API docs

Base URL: https://api.movedemos.com. All responses are JSON except the clip itself. You need an API key: get a trial key (500 clip links a month) or ask for more.

Quick start

export KEY=mdk_your_key_here

# 1. find a move
curl -H "Authorization: Bearer $KEY" \
  "https://api.movedemos.com/v1/moves?q=squat"

# 2. get the move and a clip link (valid for 10 minutes)
curl -H "Authorization: Bearer $KEY" \
  "https://api.movedemos.com/v1/moves/barbell-curl"

# 3. stream the clip_url from step 2 in your video player

Authentication

Send Authorization: Bearer mdk_… on every call to /v1/moves and /mcp. Keep the key on your server, not in your app. One key is for one app. A wrong, missing or switched-off key gives 401 invalid_key (if you call too fast you may get 429 rate_limited first). The word Bearer is not case sensitive.

Limits

Endpoints

CallWhat it does
GET /v1/movesSearch. Query: q (name words, English or Spanish, up to 60 characters), muscle, equipment, limit (1 to 50, default 20). Not counted against your quota.
GET /v1/moves/{id}One move. If its clip is published, the response has clip.url, which works for 10 minutes. Each link counts against your monthly quota. Add ?aspect=4:5 for a version cropped to fit a near-square player (default 9:16, the portrait original); a move without that version answers 404 aspect_unavailable and uses no quota.
GET /v1/clips/{token}The clip, video/mp4, with Range support. The link is the credential; no key is needed.
GET /healthReturns {"ok":true}.

A move

{
  "move": {
    "id": "barbell-curl",
    "name": { "en": "Barbell Curl", "es": "Curl de bíceps con barra" },
    "muscle": "biceps",
    "equipment": "barbell",
    "kind": "reps",
    "difficulty": "beginner",
    "available": true
  },
  "clip": { "url": "https://api.movedemos.com/v1/clips/…", "expires_in": 600, "type": "video/mp4" },
  "ai_generated": true
}

Every successful move or search response has ai_generated: true at the top level. available: false means the clip isn’t ready yet, and clip is null. The library is added move by move.

Errors

StatusCodeMeaning
401invalid_keyMissing, malformed, wrong or switched-off key.
429rate_limitedToo many calls in a minute. Wait for the Retry-After seconds.
429quota_exceededYou used this month’s clip links. Ask us for more.
403invalid_or_expired_linkThe clip link is wrong or older than 10 minutes. Ask for a new one.
404not_foundNo such move, path or clip.
405method_not_allowedWrong HTTP method (the move routes take GET, /mcp takes POST).
413 / 415too_large / unsupported_media_typeAn MCP body over 8 KB, or not application/json.
416range_not_satisfiableThe requested byte range is outside the clip.
500server_errorSomething broke on our side. Try again.
503unavailableClip links are temporarily off. Try again later.

Use it from an AI assistant (MCP)

The same library is an MCP server, so a coding assistant can search the moves and add clips to your app for you. It uses your same key. Endpoint: https://api.movedemos.com/mcp (streamable HTTP, JSON responses). Two tools: search_moves and get_move.

# Claude Code
claude mcp add --transport http movedemos https://api.movedemos.com/mcp \
  --header "Authorization: Bearer $KEY"

# Any client that takes a JSON config
{
  "mcpServers": {
    "movedemos": {
      "type": "http",
      "url": "https://api.movedemos.com/mcp",
      "headers": { "Authorization": "Bearer mdk_your_key_here" }
    }
  }
}

Keep the key out of source control: the claude mcp add line puts it in your local config and shell history, so prefer setting it from a secret manager. Field names in the JSON config vary by client; the example is the common shape. The assistant gets clip links that expire in 10 minutes, so have it call your server, not hard-code a link.

Machine-readable

openapi.json describes the REST API, and llms.txt is a short brief for AI assistants.

Rules

The full terms are on the licence page.