# Bhphotovideo — 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 B&H Photo's massive inventory of cameras, electronics, and photography gear with instant access to pricing, specifications, images, and customer reviews. Filter products by category, compare detailed specs, and discover used items all in one integrated platform.

**Category:** E-commerce | **Website:** [bhphotovideo.com/](https://bhphotovideo.com/) | **Docs:** [parse.bot/marketplace/12134da7-f5f2-4a75-9a07-596347abb769/bhphotovideo-com-api](https://parse.bot/marketplace/12134da7-f5f2-4a75-9a07-596347abb769/bhphotovideo-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-bhphotovideo-com-api-12134da7/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_category_products

Browse products within a specific category ID. Returns paginated product listings with filters, similar to search results but scoped to a category.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | Yes | B&H category ID (e.g. '9811' for Digital Cameras, '16158' for Mirrorless Cameras) |
| `page` | integer | No | Page number for pagination |
| `sort` | string | No | Sort order: BS (Best Sellers), RE (Relevance), PLH (Price Low to High), PHL (Price High to Low), CR (Customer Rating) |

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

### get_category_tree

Retrieve the full navigational category hierarchy (mega menu). Returns top-level departments with their subcategories, images, and URLs.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bhphotovideo-com-api-12134da7/get_category_tree \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_product_detail

Get comprehensive details for a single product by SKU. Includes pricing, inventory, specifications, images, reviews stats, warranty info, and more.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku` | string | Yes | Product SKU (e.g. '1935439-REG' or '1935439'). If no suffix is provided, defaults to REG. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bhphotovideo-com-api-12134da7/get_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sku":"<string>"}'
```

### get_product_reviews_summary

Get customer review summary statistics for a product, including rating histogram, average rating, and total review count.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku` | string | Yes | Product SKU (e.g. '1935439-REG' or '1935439'). If no suffix is provided, defaults to REG. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bhphotovideo-com-api-12134da7/get_product_reviews_summary \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sku":"<string>"}'
```

### get_used_products

Browse used and refurbished equipment. Returns paginated listings of used products with condition info, pricing compared to new, and available filters.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `sort` | string | No | Sort order: BS (Best Sellers), RE (Relevance), PLH (Price Low to High), PHL (Price High to Low), CR (Customer Rating) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bhphotovideo-com-api-12134da7/get_used_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","sort":"<string>"}'
```

### search_products

Search for products by keyword. Returns a paginated list of products with basic details including pricing, stock status, images, and available filters for refining results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `query` | string | Yes | Search keyword |
| `sort` | string | No | Sort order: BS (Best Sellers), RE (Relevance), PLH (Price Low to High), PHL (Price High to Low), CR (Customer Rating) |

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