# Williams Sonoma — 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 Williams-Sonoma products by keyword, browse product groups by category/group ID, and fetch detailed product information including pricing, images, and product details.

**Category:** E-commerce | **Website:** [williams-sonoma.com/](https://williams-sonoma.com/) | **Docs:** [parse.bot/marketplace/36fb492c-a2ae-4801-a052-5657e64600a5/williams-sonoma-com-api](https://parse.bot/marketplace/36fb492c-a2ae-4801-a052-5657e64600a5/williams-sonoma-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-williams-sonoma-com-api-36fb492c/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### browse_category

Browse products within a specific category by slug. Returns paginated products belonging to the given category. Category slugs are found in product tags from search_products results or from known categories like 'cookware-sets', 'electrics', 'espresso-makers'.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | Yes | Category slug (e.g. 'cookware-sets', 'electrics', 'cookware', 'espresso-makers') |
| `limit` | integer | No | Number of results per page. |
| `offset` | integer | No | Pagination offset (number of results to skip). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-williams-sonoma-com-api-36fb492c/browse_category \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","limit":"<integer>","offset":"<integer>"}'
```

### get_product_details

Retrieve full details for a single product by its slug ID. Returns complete product data including pricing, full description, all category tags, facets, and additional specifications. The product_id slug is obtainable from search_products or browse_category results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Product slug ID (e.g. 'chef-classic-ss-11-piece-cookware-set'). Obtainable from search_products or browse_category results. |

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

### search_products

Full-text search across the Williams-Sonoma product catalog. Returns paginated results ordered by relevance. Each product includes pricing, description snippet, category tags, and a slug ID usable with get_product_details for the full record.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of results per page. |
| `offset` | integer | No | Pagination offset (number of results to skip). |
| `query` | string | Yes | Search keyword (e.g. 'cookware', 'knives', 'espresso') |

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