# Matterhackers — 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 MatterHackers' 3D printing filament catalog to find products by material type, view detailed specifications, pricing, and discover available collections. Get comprehensive product information to compare filaments and make informed purchasing decisions.

**Category:** E-commerce | **Website:** [matterhackers.com/](https://matterhackers.com/) | **Docs:** [parse.bot/marketplace/882e3441-6a95-4a2f-94c8-ad30e13eb5e1/matterhackers-com-api](https://parse.bot/marketplace/882e3441-6a95-4a2f-94c8-ad30e13eb5e1/matterhackers-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-matterhackers-com-api-882e3441/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product_details

Get detailed information for a specific product by SKU ID, including color variants, pricing, availability, and technical specifications. Returns a single product's full detail page data. The SKU ID can be obtained from search_products or list_filaments results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku_id` | string | Yes | Product SKU ID (e.g. 'M3MY2VQG', 'MY6CYEZM'). Obtain from search_products or list_filaments results. |

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

### list_filaments

List filament products with optional material filtering and pagination. When material is provided, lists products from that material's collection page. The material value should match a collection slug from list_material_collections (e.g. 'PLA', 'ABS', 'PET', 'NylonX'). Omitting material returns all filaments from the main filament category.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `material` | string | No | Material collection slug to filter by (e.g. 'PLA', 'ABS', 'PET', 'NylonX', 'mh-build-series'). Values correspond to the slug portion of collection URLs from list_material_collections. Omitting returns all filaments. |
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-matterhackers-com-api-882e3441/list_filaments \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"material":"<string>","page":"<integer>"}'
```

### list_material_collections

List all available material collections and categories from the MatterHackers store navigation. Returns collection names and URLs. The slug portion of a collection URL (e.g. 'PLA' from '/store/c/PLA') can be used with the list_filaments material parameter.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-matterhackers-com-api-882e3441/list_material_collections \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_products

Full-text search across all MatterHackers store products by keyword. Returns product summaries matching the query. Supports multi-word queries. Results are limited to the first page returned by the site (typically up to 20 items).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword or phrase (e.g. 'PLA', 'Bambu Lab', 'resin'). |

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