# B\&H Photo Video Gear Pricing and Specs Scraper (`nimbryxo-studio/b-and-h-photo-video-gear-pricing-and-specs-scraper`) Actor

Search B\&H Photo Video by keyword or category, look up products by SKU, or scrape product URLs directly for price, discount, stock status, rating and full specifications.

- **URL**: https://apify.com/nimbryxo-studio/b-and-h-photo-video-gear-pricing-and-specs-scraper.md
- **Developed by:** [Nimbryxo-studio](https://apify.com/nimbryxo-studio) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## B\&H Photo Video Gear Pricing and Specs Scraper

B\&H Photo Video is one of the largest professional camera, audio and electronics retailers in the US. This actor turns a keyword search, a category page, a list of product IDs, or direct product URLs into structured records with price, discount, stock status, rating and — on request — full specifications.

### What this actor does

- Searches by keyword, browses one of nine product categories, looks up products by B\&H product ID/SKU, or scrapes a list of product or search URLs directly
- Sorts keyword-search results by relevance, price, rating or newest arrivals (category browsing uses the category page's own default order)
- Filters by condition (new/used), price range, minimum rating and in-stock status
- Optionally visits each product's own page to pull full specifications, description and UPC, instead of just the search-card summary
- Omits any field a product listing didn't show — no empty strings or nulls in the output

### Output per product

- `title`, `url`
- `productId` — B\&H's internal product ID
- `sku` — B\&H item number (e.g. `CAER1001845`)
- `mfrPartNumber` — manufacturer part number
- `price` — current price in USD
- `originalPrice` — original/MSRP price, when the item is discounted
- `discountPercent` — percent off, when discounted
- `inStock`, `stockStatus` — e.g. "In Stock"
- `rating`, `reviewCount`
- `imageUrl`
- `keyFeatures[]` — bullet list of key features
- `description` — full product description, with detail enrichment or `productDetails`/`byUrl` modes
- `specs` — full specifications as key-value pairs, with detail enrichment or `productDetails`/`byUrl` modes
- `brand`, `upc`, `category` — from the product's own detail page; only present with detail enrichment or `productDetails`/`byUrl` modes
- `condition` — e.g. `USED`, `REFURB` (omitted for new items)
- `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search`, `byCategory`, `productDetails` or `byUrl` |
| `searchQuery` | string | `mirrorless camera` | Keyword or phrase to search (mode=search) |
| `category` | string | `cameras-and-camcorders` | Category to browse, one of 9 (mode=byCategory) |
| `productIds` | array | `[]` | B\&H product IDs or SKUs to fetch (mode=productDetails) |
| `startUrls` | array | `[]` | B\&H product or search page URLs to scrape (mode=byUrl) |
| `sortBy` | string | `relevance` | `relevance`, `priceAsc`, `priceDesc`, `topRated` or `newArrivals` (mode=search only; ignored in `byCategory`) |
| `condition` | string | `all` | `all`, `new` or `used` |
| `inStockOnly` | boolean | `false` | Only emit products currently in stock |
| `minPrice` | integer | – | Skip products priced below this, USD |
| `maxPrice` | integer | – | Skip products priced above this, USD |
| `minRating` | number | – | Only emit products rated at least this (1.0–5.0) |
| `fetchDetails` | boolean | `false` | Visit each product page for full specs and description (search/category modes); slower |
| `maxItems` | integer | `20` | Maximum number of products to emit (1–500) |

#### Example: search with a price ceiling

```json
{
  "mode": "search",
  "searchQuery": "mirrorless camera",
  "maxPrice": 1500,
  "sortBy": "topRated",
  "maxItems": 20
}
```

#### Example: browse a category with full specs

```json
{
  "mode": "byCategory",
  "category": "audio",
  "fetchDetails": true,
  "maxItems": 25
}
```

#### Example: look up specific products by SKU

```json
{
  "mode": "productDetails",
  "productIds": ["1769090", "CAER1001845"]
}
```

#### Example: scrape a list of product URLs

```json
{
  "mode": "byUrl",
  "startUrls": [
    "https://www.bhphotovideo.com/c/product/1769090-REG/canon_6052c012_eos_r100_mirrorless_camera.html"
  ]
}
```

### Use cases

- **Price tracking** — monitor a camera or lens's price and discount over time
- **Competitive retail research** — compare pricing and stock status against your own catalog
- **Gear buying research** — filter by rating, price and condition before a purchase decision
- **Catalog enrichment** — pull full specs and UPC codes into your own product database
- **Deal alerts** — scan a category sorted by price for newly discounted items

### FAQ

**Does this need a B\&H account or API key?**
No — this actor reads B\&H's public website and needs no login or key.

**Is this affiliated with B\&H Photo Video?**
No. This is an independent actor intended for research and competitive-intelligence use; it is not affiliated with or endorsed by B\&H Photo Video.

**What does `fetchDetails` actually add?**
It visits each product's own page to pull the full description, specification table and UPC, rather than relying on the search-result card's shorter summary — useful when you need specs, not just price and rating.

**Why is a product missing `price` or `rating`?**
Newly listed products sometimes have no public price yet, and unrated products simply don't have enough reviews for a rating; both fields are left out rather than shown as zero.

**What's the difference between `productDetails` and `byUrl`?**
`productDetails` looks up products by their B\&H product ID or SKU. `byUrl` instead takes full product or search page URLs — useful when you already have links rather than IDs.

**How many products can one run return?**
Up to 500, set by `maxItems`; for a larger dataset, run the actor again with a different query or category.

**How current is the pricing and stock data?**
Each run reads the live B\&H site, so price, discount and stock status reflect what's currently shown.

# Actor input Schema

## `mode` (type: `string`):

What to scrape.

## `searchQuery` (type: `string`):

Keyword or phrase to search for (mode=search).

## `category` (type: `string`):

Product category to browse (mode=byCategory).

## `productIds` (type: `array`):

List of B\&H product IDs (numeric, e.g. '1769090') or B\&H SKUs (e.g. 'CAER1001845'). Used with mode=productDetails.

## `startUrls` (type: `array`):

List of B\&H Photo product or search page URLs to scrape.

## `sortBy` (type: `string`):

How to sort search or category results.

## `condition` (type: `string`):

Filter by product condition.

## `inStockOnly` (type: `boolean`):

When enabled, only emit products that are currently in stock.

## `minPrice` (type: `integer`):

Skip products priced below this value.

## `maxPrice` (type: `integer`):

Skip products priced above this value.

## `minRating` (type: `number`):

Only emit products with rating >= this value (1.0–5.0).

## `fetchDetails` (type: `boolean`):

When enabled in search/category modes, visits each product page to fetch full specs and description. Slower but more complete.

## `maxItems` (type: `integer`):

Maximum number of products to emit.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "mirrorless camera",
  "category": "cameras-and-camcorders",
  "productIds": [],
  "startUrls": [],
  "sortBy": "relevance",
  "condition": "all",
  "inStockOnly": false,
  "fetchDetails": false,
  "maxItems": 20
}
```

# Actor output Schema

## `products` (type: `string`):

Dataset containing all scraped B\&H Photo products.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "search",
    "searchQuery": "mirrorless camera",
    "category": "cameras-and-camcorders",
    "productIds": [],
    "startUrls": [],
    "sortBy": "relevance",
    "condition": "all",
    "inStockOnly": false,
    "fetchDetails": false,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("nimbryxo-studio/b-and-h-photo-video-gear-pricing-and-specs-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "search",
    "searchQuery": "mirrorless camera",
    "category": "cameras-and-camcorders",
    "productIds": [],
    "startUrls": [],
    "sortBy": "relevance",
    "condition": "all",
    "inStockOnly": False,
    "fetchDetails": False,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("nimbryxo-studio/b-and-h-photo-video-gear-pricing-and-specs-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "search",
  "searchQuery": "mirrorless camera",
  "category": "cameras-and-camcorders",
  "productIds": [],
  "startUrls": [],
  "sortBy": "relevance",
  "condition": "all",
  "inStockOnly": false,
  "fetchDetails": false,
  "maxItems": 20
}' |
apify call nimbryxo-studio/b-and-h-photo-video-gear-pricing-and-specs-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nimbryxo-studio/b-and-h-photo-video-gear-pricing-and-specs-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/6tD7oyE9hBeQgvbou/builds/Hz5m3PK24tr2bs3Jy/openapi.json
