# Muscleandstrength — 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.

> Search and browse Muscle & Strength supplements to find product details like pricing, available variants, and stock status. Quickly compare options and check availability across their catalog to make informed purchasing decisions.

**Category:** E-commerce | **Website:** [muscleandstrength.com/](https://muscleandstrength.com/) | **Docs:** [parse.bot/marketplace/a2be0f01-d91b-44ae-ac3f-fdb73f7e9189/muscleandstrength-com-api](https://parse.bot/marketplace/a2be0f01-d91b-44ae-ac3f-fdb73f7e9189/muscleandstrength-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-muscleandstrength-com-api-a2be0f01/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product

Retrieve full product details by slug, including all size/flavor variants with individual SKUs, prices, availability, and GTIN codes. Size variants group flavors by package size with per-serving cost information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Product URL slug from search results (e.g. '100-whey-gold-standard', 'creatine-drive-black'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-muscleandstrength-com-api-a2be0f01/get_product \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### search_products

Full-text search across the Muscle & Strength supplement store catalog. Returns paginated product listings with prices, stock status, and deal information. Results are ordered by relevance (most popular). Each result includes a slug usable with get_product for full variant details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for paginated results. Each page returns up to 20 products. |
| `query` | string | Yes | Search query for products (e.g. 'whey protein', 'creatine', 'pre-workout'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-muscleandstrength-com-api-a2be0f01/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```
