# Brookstone — 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 Brookstone's catalog of products with full-text search, filters, sorting, and pagination to find exactly what you need. Get instant search suggestions and access detailed product information including pricing, descriptions, and availability.

**Category:** E-commerce | **Website:** [brookstone.com/](https://brookstone.com/) | **Docs:** [parse.bot/marketplace/26edb977-b07a-4cc3-9047-3c300d8651ec/brookstone-com-api](https://parse.bot/marketplace/26edb977-b07a-4cc3-9047-3c300d8651ec/brookstone-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-brookstone-com-api-26edb977/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product

Fetch full product details by handle (URL slug). Returns complete information including HTML description, all variants with per-variant pricing and availability, option values, all images, tags, and publication dates. The handle is available from search_products results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `handle` | string | Yes | Product handle/slug from search results (e.g., 'brookstone-cozy-heated-plush-throw'). Available in search_products results as products[*].handle |

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

### search_products

Full-text search over Brookstone's product catalog. Returns paginated product listings with pricing, variant summaries, options, and available filters for the result set. Pagination via page number; results ordered by the chosen sort. Each product exposes a handle suitable for get_product drill-down.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of products per page (1-48) |
| `page` | integer | No | Page number for pagination |
| `query` | string | Yes | Search query text |
| `sort` | string | No | Sort order for results |

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

### search_suggestions

Quick search autocomplete returning up to 10 product matches with basic info (title, price, image, handle). Lightweight alternative to search_products for search-as-you-type UIs. No pagination; results capped by limit parameter.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Max number of suggestions (1-10) |
| `query` | string | Yes | Search query for suggestions |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-brookstone-com-api-26edb977/search_suggestions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","query":"<string>"}'
```
