# Musician's Friend — 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 and search Musician's Friend's catalog to find instruments, gear, and accessories with detailed product information, pricing, and real-time availability. Discover daily deals and filter products by category to compare options and find the best equipment for your musical needs.

**Category:** E-commerce | **Website:** [musiciansfriend.com/](https://musiciansfriend.com/) | **Docs:** [parse.bot/marketplace/8d1c4286-c834-4bda-a40e-6a184afdfc71/musiciansfriend-com-api](https://parse.bot/marketplace/8d1c4286-c834-4bda-a40e-6a184afdfc71/musiciansfriend-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-musiciansfriend-com-api-8d1c4286/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### filter_products

Filter products using one or more facet IDs. Facet IDs can be combined with spaces to narrow results (e.g. brand + condition). Returns paginated products with available facets for further refinement. Facet IDs are available from get_category_products or prior filter_products results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `facet_ids` | string | Yes | Space-separated facet IDs (e.g. '200798' for a single brand, '200798 100902' to combine brand and condition). Facet IDs are available from get_category_products or filter_products facet results. |
| `limit` | integer | No | Number of results per page. |
| `offset` | integer | No | Result offset for pagination. |
| `sort` | string | No | Sort order for results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-musiciansfriend-com-api-8d1c4286/filter_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"facet_ids":"<string>","limit":"<integer>","offset":"<integer>","sort":"<string>"}'
```

### get_category_products

Browse products by category or brand facet ID. Returns paginated products with facets (brand, condition, price range) and subcategories for further filtering. The category_id is the N parameter value from facet results or site navigation.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | Yes | Category or brand facet ID (the N parameter value, e.g. '200798'). Obtainable from get_category_products or filter_products facet results. |
| `limit` | integer | No | Number of results per page. |
| `offset` | integer | No | Result offset for pagination. |
| `sort` | string | No | Sort order for results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-musiciansfriend-com-api-8d1c4286/get_category_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","limit":"<integer>","offset":"<integer>","sort":"<string>"}'
```

### get_product_availability

Check stock availability and delivery estimates for a specific SKU. Uses a default shipping destination of ZIP code 10001 (New York). Returns shipping eligibility, estimated delivery date, and free shipping status.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku_id` | string | Yes | Full SKU ID (e.g. 'site1skuM19477000001000'). Obtainable from search_products or get_category_products results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-musiciansfriend-com-api-8d1c4286/get_product_availability \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sku_id":"<string>"}'
```

### get_product_details

Retrieve full product details by product ID. Returns pricing, brand, stock status, UPC, category hierarchy, and technical specifications. The product_id format is 'site1prod' followed by an alphanumeric code (e.g. 'site1prodM19477').

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Product ID in the format site1prod followed by an alphanumeric code (e.g. 'site1prodM19477'). Obtainable from search_products results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-musiciansfriend-com-api-8d1c4286/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<string>"}'
```

### get_stupid_deal_of_the_day

Fetch the current 'Stupid Deal of the Day' promotion. Returns one or more deeply discounted products available for a limited time. The deal rotates daily.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-musiciansfriend-com-api-8d1c4286/get_stupid_deal_of_the_day \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_products

Full-text search over Musician's Friend product catalog. Returns paginated product listings matching the query keyword, ordered by the chosen sort. Each result includes pricing, condition, and ratings. Pagination via offset; total_count gives the full result set size.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of results per page. |
| `offset` | integer | No | Result offset for pagination. |
| `query` | string | Yes | Search keyword. |
| `sort` | string | No | Sort order for results. |

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