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
- Quota: your key has a monthly limit on clip links. Each
GET /v1/moves/{id}that returns a link uses one. It resets on the first of each month (UTC). Search, and moves whose clip isn’t ready, use none. A clip listed but not yet in storage is never charged. - Rate limits: about 120 calls a minute per source address and 300 a minute per key on
/v1/movesand/mcp, and 600 clip downloads a minute per address. They are enforced per Cloudflare location and are approximate, so bursts can briefly pass. A shared address (an office or a server farm) shares one allowance. - Links: a clip link works for 10 minutes for anyone who holds it, any number of times, and each fetch may use bandwidth. Treat it like a password: don’t log it or share it.
- Only
GETis accepted on the move routes (HEADis refused);POSTis for/mcponly.
Endpoints
| Call | What it does |
|---|---|
GET /v1/moves | Search. 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 /health | Returns {"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
| Status | Code | Meaning |
|---|---|---|
| 401 | invalid_key | Missing, malformed, wrong or switched-off key. |
| 429 | rate_limited | Too many calls in a minute. Wait for the Retry-After seconds. |
| 429 | quota_exceeded | You used this month’s clip links. Ask us for more. |
| 403 | invalid_or_expired_link | The clip link is wrong or older than 10 minutes. Ask for a new one. |
| 404 | not_found | No such move, path or clip. |
| 405 | method_not_allowed | Wrong HTTP method (the move routes take GET, /mcp takes POST). |
| 413 / 415 | too_large / unsupported_media_type | An MCP body over 8 KB, or not application/json. |
| 416 | range_not_satisfiable | The requested byte range is outside the clip. |
| 500 | server_error | Something broke on our side. Try again. |
| 503 | unavailable | Clip 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
- Stream the clips in your own app. Don’t download and republish them, resell them, or use them to train a model.
- Don’t use the library to generate new videos with an AI model.
- Say where you show a clip that the videos are AI-generated. The API marks every successful move and search response with
ai_generated: true. - Videos illustrate a move. They are made with AI and checked by our own team, not by a certified trainer or medical professional, and may contain mistakes. They are not advice; you decide what your app tells people to do.
The full terms are on the licence page.