# Musclewiki — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Browse thousands of exercises by equipment type and muscle group, then access detailed information including form tips, variations, and targeted muscle groups for each exercise. Perfect for building personalized workout routines or finding alternatives that match your available equipment.

**Category:** Healthcare | **Website:** [musclewiki.com/](https://musclewiki.com/) | **Docs:** [parse.bot/marketplace/e04692ac-c769-422a-bfeb-0033257d0930/musclewiki-com-api](https://parse.bot/marketplace/e04692ac-c769-422a-bfeb-0033257d0930/musclewiki-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/musclewiki/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get exercise details

Get full details for a single exercise by its ID, including HTML-formatted description with form tips, step-by-step instructions, primary/secondary/tertiary muscle targets, grip types, images (male and female), and videos. Returns stale_input if the exercise ID does not exist.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `exercise_id` | integer | Yes | The exercise ID from get_exercises results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/musclewiki/get-exercise-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"exercise_id":"<integer>"}'
```

### Get exercise types

Returns the complete list of equipment types (categories) available on MuscleWiki. Each equipment type has an integer ID usable as a filter in get_exercises. The list is static and rarely changes.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/musclewiki/get-exercise-types \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get exercises

Search and list exercises with optional filters for equipment type, muscle group, and keyword. Returns paginated results with exercise summaries including name, thumbnail, targeted muscles, and difficulty. Use offset and limit for pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `equipment_id` | integer | No | Filter by equipment type ID from get_exercise_types endpoint. |
| `limit` | integer | No | Maximum number of results per page. |
| `muscle_id` | integer | No | Filter by muscle group ID from get_muscle_groups endpoint. |
| `offset` | integer | No | Pagination offset for results. |
| `query` | string | No | Search keyword to filter exercises by name. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/musclewiki/get-exercises \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"equipment_id":"<integer>","limit":"<integer>","muscle_id":"<integer>","offset":"<integer>","query":"<string>"}'
```

### Get muscle groups

Returns the complete list of muscle groups available on MuscleWiki. Each muscle group has an integer ID usable as a filter in get_exercises. The list is static and rarely changes.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/musclewiki/get-muscle-groups \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.