# MuscleWiki API - Complete Reference > Commercial REST API for exercise data: 1,900+ exercises with multi-angle video > demonstrations (front/side, male/female models), highlighted muscle bodymaps, > and structured training routines and workouts. > Available in 14 languages, built for fitness apps and AI/LLM > applications. This file is the complete reference in a single fetch. https://api.musclewiki.com/llms.txt is the shorter curated index. Prices, quotas and language codes below are generated from the same constants that drive the website, so they cannot drift from what a customer is actually charged or served. Base URL: https://api.musclewiki.com Interactive docs (Swagger UI): https://api.musclewiki.com/docs OpenAPI spec (machine-readable): https://api.musclewiki.com/openapi.json Documentation as markdown: https://api.musclewiki.com/documentation.md Pricing page: https://api.musclewiki.com/pricing Pricing as markdown: https://api.musclewiki.com/pricing.md Frequently asked questions: https://api.musclewiki.com/faq FAQ as markdown: https://api.musclewiki.com/faq.md Get an API key: https://api.musclewiki.com/register?ref=llms-full-txt Interactive Playground: https://api.musclewiki.com/playground?ref=llms-full-txt Terms of use: https://api.musclewiki.com/api-terms?ref=llms-full-txt ## Authentication Send your API key in the X-API-Key HTTP header on every request. Keys begin with the mw_ prefix and are created in your dashboard. curl -H "X-API-Key: mw_your_key" "https://api.musclewiki.com/search?q=barbell%20curl&limit=5" Public and unauthenticated: /health, /docs, /redoc, /openapi.json, /robots.txt, /sitemap.xml and /llms.txt, plus this file, /documentation.md, /pricing.md and /faq.md. Every data endpoint requires a valid key. /health/detailed is NOT public and is not part of the API surface you can call: it is gated on an internal service key, and no customer key of any tier will reach it. Use /health for uptime checks. There is no OAuth flow and no client secret. Data endpoints take one header and one key, with a single exception for media: POST /media/token exchanges your key for a short-lived, media-only token that authenticates /stream/ requests as a ?token= query parameter, for players that cannot set headers. Keys are scoped to your account's subscription tier; see Tiers below for what each tier may call. Response headers worth reading: - X-API-Calls-Cost - how many calls the request consumed. Sent only when that is more than one, i.e. on the /full endpoints; absent on ordinary requests. - X-API-Source - which dataset served the response. - X-Data-Version - the dataset version. ## Tiers, prices and quotas Quotas are always monthly. A monthly subscription's quota resets on its billing anniversary; an annual subscription is billed yearly but still has a monthly quota, which resets on the 1st of each calendar month, as does the free plan's. Exceeding a quota returns 429 until the next reset. To get past it sooner, upgrade for a higher quota, or buy a top-up on GROWTH, PROFESSIONAL or ENTERPRISE: each top-up adds 5,000 calls for $10 plus applicable tax, prepaid from the dashboard and never bought automatically. Top-up calls are used only after the plan's calls run out, count like plan calls and expire at the quota reset shown at purchase. The TESTING plan, the free plan and CUSTOM plans cannot buy top-ups. Full plan comparison: https://api.musclewiki.com/pricing BASIC - Free Quota: 500 API calls per month - Routines & workouts endpoints - Bodymap images - Secondary & tertiary muscles - 14 languages (in Playground) - Playground access only - No direct API key access TESTING - $10 per month Quota: 1,000 API calls per month - No routines & workouts - No bodymap images - No secondary & tertiary muscles - No multilingual (English only) - API key access - Suitable for testing GROWTH - $39.99 per month Quota: 30,000 API calls per month - No routines & workouts - No bodymap images - No secondary & tertiary muscles - 14 languages (multilingual API) - API key access - Top-ups when you need more calls - Suitable for production apps PROFESSIONAL - $99.99 per month Quota: 100,000 API calls per month - Routines & workouts endpoints - Bodymap images - Secondary & tertiary muscles - 14 languages (multilingual API) - Full API key access - Top-ups when you need more calls - Built for production scale ENTERPRISE - $199.99 per month Quota: 300,000 API calls per month - Routines & workouts endpoints - Bodymap images - Secondary & tertiary muscles - 14 languages (multilingual API) - Full API key access - Top-ups when you need more calls - Enterprise-grade production - Priority support + fast response CUSTOM - Custom Quota: negotiated monthly call limit - Everything in ENTERPRISE, plus: - Custom API limits - Bodymap images (per plan) - Secondary & tertiary muscles (per plan) - Dedicated support Notes: - BASIC keys cannot call the API directly. They work only through the interactive Playground on the website, which signs its requests server-side. - CUSTOM is staff-provisioned with a negotiated quota and price; contact sales at https://api.musclewiki.com/contact/sales?ref=llms-full-txt (sign in with a free account to send the form). - Annual billing is available at a 25% discount on twelve months of the monthly price, rounded down to the nearest $5. ## Rate limits There is no per-second or per-minute throttle. Enforcement is the monthly call quota above: every request that reaches an endpoint is metered against it, including ones that return an error such as a 404 for an unknown id, and the /full endpoints are metered at their full X-API-Calls-Cost. Once the quota is exhausted every request returns 429; where the reset time is known the response carries a reset_at field and a Retry-After header. A 503 returned because the API could not verify your key during a temporary server problem is never metered, even on a /full endpoint. ## Endpoints Common conventions: pagination is limit/offset; every data endpoint accepts lang (see Languages); list endpoints return an object with the results plus total, limit and offset. Exercises - GET /exercises List and browse exercises. Returns minimal records (id and name) optimised for lists. Parameters: limit (1-100, default 20), offset (>= 0, default 0), search (2-200 chars), gender (male|female), category, muscles (repeatable), secondary_muscles (repeatable), tertiary_muscles (repeatable), difficulty, force, mechanic, grips (repeatable), lang. - GET /exercises/{id} One exercise by id. Ids are non-consecutive integers starting at 1. Parameters: detail (boolean; adds metadata counts), gender, lang. Returns 404 for an unknown id. - GET /exercises/{id}/videos Just the video angles for an exercise. Parameters: gender, lang. - GET /random A single random exercise. Parameters: category, gender, lang. - GET /search Full-text search over exercise names and instruction steps, relevance sorted. Parameters: q (required, 2-200 chars), limit (1-50, default 10), gender, category, muscles (repeatable), secondary_muscles (repeatable), tertiary_muscles (repeatable), difficulty, force, mechanic, lang. Accepts every exercise filter except grips. Discovery and reference - GET /filters All valid filter values in one call: muscles, difficulties, forces, mechanics, grips, categories. Also secondary_muscles and tertiary_muscles, which are null on plans without secondary and tertiary muscles. Call this instead of guessing filter arguments. - GET /categories - equipment categories with exercise counts. - GET /muscles - primary muscle groups with exercise counts. - GET /statistics - aggregate database statistics. - GET /languages - supported lang codes with display names. Open to every tier. Routines and workouts (PROFESSIONAL and ENTERPRISE tiers only) - GET /routines List training routines. Parameters: limit (1-100, default 20), offset, lang. - GET /routines/{id} - a routine with its workout references. - GET /routines/{id}/full A routine with every workout and exercise expanded in one request, billed as one call per routine, workout and exercise it contains; see the X-API-Calls-Cost response header. - GET /workouts List workouts. Parameters: limit (1-100, default 20), offset, difficulty, goal, equipment, muscles, lang. - GET /workouts/{id} - a workout with exercise references and prescription data (sets, reps, duration). - GET /workouts/{id}/full - a workout with every exercise expanded in one request, billed as one call per workout and exercise it contains; see the X-API-Calls-Cost response header. TESTING and GROWTH keys receive 403 with an upgrade_url on any /routines or /workouts path. Health - GET /health, /health/ready, /health/live, /health/startup - GET /health/detailed - internal service key only; not callable with an API key Media streaming - GET /stream/videos/branded/{filename} - GET /stream/images/og_images/{filename} - GET /stream/images/bodymaps/{exercise_id} Use the URLs returned in exercise responses (including the exercises inside /routines/{id}/full and /workouts/{id}/full) rather than constructing these by hand. Every /stream/ request accepts either credential: the X-API-Key header, or a media token in the query string (?token=...) minted by your backend from POST /media/token. Send one, not both - the header wins when present, and either way the request counts as one API call. Tokens default to a 15-minute lifetime (expires_in on the mint response is authoritative), are valid on /stream/ paths only, cannot mint another token, and require TESTING tier or above to mint. This is how a native mobile app plays our video without embedding your key: AVPlayer and ExoPlayer take the plain URL with no custom headers. A media token is a bearer credential that travels in the URL: anyone who reads that URL can replay it against any /stream/ path and spend the originating key's quota until it expires. Do not log it and do not embed it in a shareable link. ## Filters - muscles - primary muscle group (e.g. Biceps, Chest, Quadriceps). Repeatable. - secondary_muscles, tertiary_muscles - secondary or tertiary muscle (e.g. Forearms). Repeatable; an exercise matches if it lists any value sent. /exercises and /search only. PROFESSIONAL and ENTERPRISE keys only: TESTING and GROWTH keys that send either one receive 403 with an upgrade_url. - category - equipment category (e.g. Barbell, Dumbbells, Bodyweight). Matching tolerates differences in case, spaces and hyphens. - difficulty - Novice, Beginner, Intermediate or Advanced. - force - Push, Pull or Hold. - mechanic - Compound or Isolation. - grips - grip variation (e.g. Overhand, Underhand, Neutral). Repeatable. /exercises only. - gender - male or female. Selects the matching video and bodymap variant rather than filtering the exercise list. - lang - response language; see Languages. Retrieve the exact valid values from GET /filters. difficulty, force and mechanic are validated against the canonical English values under every language; only category and the three muscle filters accept translated input. ## Languages (14) en-us, pt-br, es-es, hi-in, de-de, ar-sa, fr-fr, tr-tr, it-it, fa-ir, pl-pl, ru-ru, zh-cn, ja-jp en-us is the default when lang is omitted. Translated fields: exercise names, instruction steps, muscle names, categories, and routine and workout text. Media URLs are identical across languages, so switching lang never changes which video a client plays. An unsupported code returns 400 for every tier. Non-English languages require GROWTH tier or higher: TESTING keys are English-only and receive 403 with an upgrade_url, and BASIC keys get every language in the Playground. List the codes programmatically via GET /languages. ## Response models Three levels of detail control bandwidth: - minimal - id and name only, returned by list endpoints. - standard - full exercise data. The default for single-resource endpoints. - detailed - standard plus metadata counts. Request with detail=true. Each exercise carries an id, name, difficulty, equipment category, target muscles, step-by-step instructions and a set of videos. Videos come in two angles (front and side) and two model variants (male and female). Bodymap images (highlighted muscle diagrams) appear as bodymap_male and bodymap_female stream URLs on exercise responses, including the exercises inside /routines/{id}/full and /workouts/{id}/full. Append theme=light|dark and view=front|back to select a variant. They are non-null for PROFESSIONAL and ENTERPRISE keys; TESTING and GROWTH receive null. Routine and workout objects keep bodymap_male / bodymap_female for compatibility, but they are always null: bodymaps are an exercise feature. Secondary and tertiary muscles appear as secondary_muscles and tertiary_muscles next to primary_muscles on every full exercise object, including the exercises inside /routines/{id}/full and /workouts/{id}/full. They are lists for PROFESSIONAL and ENTERPRISE keys (an empty list means the exercise has none); TESTING and GROWTH receive null. The matching filter parameters are a hard gate: they return 403 with an upgrade_url below PROFESSIONAL. ## Errors Errors are JSON with a detail field. Tier restrictions also carry message and upgrade_url. - 400 - unsupported lang code. - 401 - no credential, or a media token on a /stream/ request that was rejected. detail names the reason: an expired token says so (remint); "Multiple media tokens supplied" means two token parameters in one URL (fix the URL); "Media token authentication is not enabled" means the deployment has no media-token secret. Only "Invalid media token" is generic, covering both a malformed token value and a signature that no longer verifies, so on that one remint once before assuming the URL is at fault. A token that does verify is then authorized against the live key record, so a revoked key still returns 403, an unpaid custom plan 402 and an exhausted quota 429 - reminting clears none of those. A temporary failure to check the key returns a retryable 503 instead (see below): keep the token and retry. - 402 - payment required: a renewal payment failed and the payment-retry window has ended or its call allowance is used (the body carries reason "window" or "allowance" and a billing_url), or a custom-plan key whose checkout is not yet completed. If a renewal payment fails, your plan stays in place but API access is limited while the payment is retried. GROWTH keeps access for 24 hours with up to 5% of its monthly calls; PROFESSIONAL and ENTERPRISE keep access for 48 hours with up to 10%. TESTING has no retry window, so access pauses at once. After the window ends, or once those calls are used, the API answers 402 Payment Required until the payment succeeds. Once the overdue payment goes through and your subscription is active again, your next API request has full plan access. Custom plans follow their own agreement. During the window, successful responses carry X-Payment-Status: past_due, X-Payment-Retry-Ends-At and X-Payment-Retry-Calls-Remaining headers. - 403 - invalid or expired key, or a tier restriction (routines/workouts below PROFESSIONAL, non-English lang below GROWTH, direct API access on a BASIC key). - 404 - unknown exercise, routine or workout id. - 422 - request validation error (a parameter outside its documented bounds). - 429 - monthly quota exceeded. Where the reset time is known the response carries a reset_at field (ISO-8601) and a Retry-After header giving the exact instant the quota window refreshes; see Rate limits and the quota rules above. On GROWTH, PROFESSIONAL and ENTERPRISE keys, while top-ups are on sale, the body also carries top_up_url (the top-up purchase page) and the message reads "Monthly API quota exceeded. Buy a top-up, upgrade your plan, or wait for your quota to reset." Check for top_up_url rather than parsing the message. - 503 - authentication temporarily unavailable: a temporary problem on our side stopped us checking your key (for example, a brief database outage), so this response says nothing about whether your key works. Retry after the number of seconds in the Retry-After header. The request is not counted against your quota. ## Licensing and commercial use Full terms: https://api.musclewiki.com/api-terms?ref=llms-full-txt. Summary, not a substitute: - You get a non-exclusive, non-transferable, revocable licence to use the API and the content it returns inside your own application. - Permitted: displaying exercise metadata in your app, and streaming videos directly from the URLs the API returns. - Caching limits: text metadata up to 30 days; thumbnails and bodymap images up to 24 hours; videos transient only (browser cache and in-memory playback buffers). No permanent local or remote storage of media. - Prohibited: downloading or re-hosting video and image assets; reselling, redistributing or sublicensing the content; exposing it to third parties; building a competing API or dataset from it; scraping or bulk export. - Using the content to train AI or machine-learning models requires separate written permission. Answer engines may read, quote and cite these public documentation pages - that is what they are for - but the exercise data behind an API key is not licensed as training material. - Attribution: two required items, plus one that is encouraged but optional. Failing either REQUIRED item is a material breach and may result in immediate suspension of API access; the encouraged credit is not enforceable and its absence is not a breach. 1. REQUIRED - a verbatim legal disclosure in your Terms of Service, Privacy Policy or equivalent document: "Exercise data and videos provided by MuscleWiki.com" 2. REQUIRED - branding integrity: do not remove, obscure, crop out or alter the MuscleWiki branding embedded in the video assets. 3. ENCOURAGED, NOT REQUIRED - a visible in-app credit, hyperlinked to https://musclewiki.com. Omitting it is not a breach and has no effect on your API access. ## First-party MCP server (recommended for AI clients) For any MCP-compatible host - Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Zed, Cline and others, since MCP is an open standard - install the first-party server instead of calling REST directly: npx @musclewiki/mcp It runs locally over stdio and forwards every call to this API using YOUR key, read from the MUSCLEWIKI_API_KEY environment variable. There is no shared key and no hosted infrastructure: your tier, quota and restrictions apply exactly as they would for a direct request. 14 tools are exposed (search_exercises, list_exercises, get_exercise, list_categories, list_muscles, list_filters, get_random_exercise, get_statistics, plus the PROFESSIONAL/ENTERPRISE routine and workout tools). Requires a TESTING-tier key or higher. ## SDKs - TypeScript/JavaScript: https://www.npmjs.com/package/@musclewiki/client - Python: https://pypi.org/project/musclewiki/ - MCP server: https://www.npmjs.com/package/@musclewiki/mcp ## Support - Contact: https://api.musclewiki.com/contact?ref=llms-full-txt - Sales and custom plans (free account required): https://api.musclewiki.com/contact/sales?ref=llms-full-txt