# Bh Product Scraper (`kawsar/bh-product-scraper`) Actor

B\&H product scraper that collects product listings, prices, and stock from B\&H Photo Video category and search pages so SEO teams and resellers can keep electronics catalogs current.

- **URL**: https://apify.com/kawsar/bh-product-scraper.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Categories:** E-commerce, SEO tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## B\&H Product Scraper: Extract product listings from B\&H Photo Video

B\&H product scraper collects product listings from B\&H Photo Video category and search pages. You get names, SKUs, prices, stock, ratings, images, and the listing page SEO fields in one dataset you can export.

Paste a category URL, a filtered listing, or a search term. The actor walks listing pages until it hits your item cap.

### Use cases

- Compare how B\&H titles a category against your own product pages, using the listing title, meta description, and canonical URL next to each SKU.
- Keep a Shopify or reseller catalog in sync with B\&H prices and stock without recopying pages by hand.
- Track camera, TV, and audio prices over time by rerunning the same search or category URL on a schedule.
- Build a product feed with listing images, selling points, and manufacturer numbers for content or comparison pages.
- Check which items are marked new arrival, new release, or used before you write a roundup.

### What data does this actor extract?

Each dataset row is one product from a B\&H listing page.

| Field | Type | Description |
|-------|------|-------------|
| `sku` | integer | B\&H SKU number |
| `itemSource` | string | Item source code such as REG or USE |
| `bhId` | string | Combined id, for example 1883346-REG |
| `productName` | string | Product name on the listing |
| `brandName` | string | Brand parsed from the listing |
| `brandSeriesModel` | string | Brand, series, and model string |
| `itemCode` | string | B\&H item code |
| `manufacturerCatalogNumber` | string | Manufacturer catalog number |
| `productUrl` | string | Product detail page URL |
| `shortUrl` | string | Short product URL when present |
| `imageUrl` | string | Primary listing image |
| `imageUrls` | array | Listing image URLs |
| `seoImageUrl` | string | Large image used for sharing and SEO |
| `price` | number | Current price in USD |
| `strikethroughPrice` | number | Earlier price when a markdown is shown |
| `savingsAmount` | number | Discount or coupon amount |
| `currency` | string | Currency code |
| `ratingStars` | number | Average review score |
| `reviewCount` | integer | Number of reviews |
| `stockStatus` | string | Stock code such as IN\_STOCK |
| `stockMessage` | string | Customer-facing stock text |
| `sellingPoints` | array | Feature bullets from the listing |
| `badge` | string | Promo badge when present |
| `isUsed` | boolean | Used listing flag |
| `isNewArrival` | boolean | New arrival flag |
| `isNewRelease` | boolean | New release flag |
| `shippingMessage` | string | Shipping message type |
| `categoryName` | string | Listing category name |
| `categoryPath` | array | Category breadcrumb names |
| `sourceUrl` | string | Listing URL the row came from |
| `sourcePageTitle` | string | Listing page title |
| `sourceMetaDescription` | string | Listing meta description |
| `sourceCanonicalUrl` | string | Listing canonical URL |
| `pageNumber` | integer | Listing page number |
| `scrapedAt` | string | UTC timestamp |
| `error` | string | Error text when a page could not be read |

### Input

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `startUrls` | array | sample TV listing | One or more B\&H listing URLs, one per line |
| `searchQueries` | array | empty | Search terms. Each term becomes a B\&H search listing |
| `maxItems` | integer | 20 | Maximum products to collect (cap 1000) |
| `requestTimeoutSecs` | integer | 30 | Per-request timeout in seconds |

#### Example input

```json
{
    "startUrls": [
        "https://www.bhphotovideo.com/c/products/Flat-Panel-Televisions/ci/2500/N/3965713807?filters=fct_year-released_4739:2025:REGULAR"
    ],
    "searchQueries": [
        "canon mirrorless"
    ],
    "maxItems": 20,
    "requestTimeoutSecs": 30
}
```

### Example output

```json
{
    "sku": 1883346,
    "itemSource": "REG",
    "bhId": "1883346-REG",
    "productName": "Samsung M8 M80F 32\" 4K HDR Smart Monitor with Webcam (Warm White)",
    "brandName": "Samsung",
    "brandSeriesModel": "Samsung M8 M80F",
    "itemCode": "SA32FM803UNX",
    "manufacturerCatalogNumber": "LS32FM803UNXZA",
    "productUrl": "https://www.bhphotovideo.com/c/product/1883346-REG/samsung_ls32fm803unxza_m80f_32_4k_hdr.html",
    "shortUrl": "https://bhpho.to/4km5X7D",
    "imageUrl": "https://static.bhphoto.com/images/images500x500/samsung_ls32fm803unxza_m80f_32_4k_hdr_1750758359_1883346.jpg",
    "imageUrls": [
        "https://static.bhphoto.com/images/images345x345/1750758359_1883346.jpg"
    ],
    "seoImageUrl": "https://www.bhphotovideo.com/images/fb/samsung_ls32fm803unxza_m80f_32_4k_hdr_1883346.jpg",
    "price": 699.99,
    "strikethroughPrice": null,
    "savingsAmount": 350,
    "currency": "USD",
    "ratingStars": 4.8,
    "reviewCount": 44,
    "stockStatus": "IN_STOCK",
    "stockMessage": "Temporarily Out of Stock",
    "sellingPoints": [
        "32\" 16:9 VA Panel",
        "HDMI | USB-C (65W)",
        "4K UHD 3840 x 2160 at 60 Hz"
    ],
    "badge": null,
    "isUsed": false,
    "isNewArrival": false,
    "isNewRelease": false,
    "shippingMessage": "FREE_TWO_DAY_DELIVERY",
    "categoryName": "Televisions",
    "categoryPath": ["Computers", "Monitors & Displays", "Computer Monitors"],
    "sourceUrl": "https://www.bhphotovideo.com/c/products/Flat-Panel-Televisions/ci/2500/N/3965713807?filters=fct_year-released_4739:2025:REGULAR",
    "sourcePageTitle": "Televisions, LED TVs | B&H Photo",
    "sourceMetaDescription": "Shop and review an enormous array of Televisions from top brands like Samsung, LG, SunBriteTV and VIZIO. Go to B&H Photo for incredible prices and service.",
    "sourceCanonicalUrl": "https://www.bhphotovideo.com/c/buy/Flat-Panel-Televisions/ci/2500/N/3965713807",
    "pageNumber": 1,
    "scrapedAt": "2026-08-17T09:50:00+00:00",
    "error": null
}
```

### How it works

1. You pass B\&H category URLs, search URLs, or keywords.
2. The actor opens each listing page and reads the products on that page.
3. It follows listing pagination until it reaches `maxItems` or runs out of products.
4. Each product is stored as one dataset row, including listing SEO fields from the source page.

### FAQ

**Can this actor scrape B\&H search results as well as category pages?**
Yes. Use a search URL from bhphotovideo.com, or put keywords in `searchQueries`. Filtered category URLs work too, including year and spec filters.

**How many products can it collect in one run?**
Up to 1000. The default is 100. If a category has more products than `maxItems`, later pages are skipped.

**Does it scrape full product spec sheets?**
It reads listing pages, not every spec tab on the detail page. You still get name, SKU, price, stock, ratings, images, selling points, and the listing SEO tags.

**What file formats can I export?**
JSON, CSV, Excel, and XML from the Apify dataset. You can also send rows to Google Sheets or a webhook.

**Can I run it on a schedule for price tracking?**
Yes. Save the input and add a schedule in Apify. Each run writes a fresh `scrapedAt` timestamp, so you can diff prices and stock over time.

### Integrations

Connect B\&H Product Scraper with other apps using [Apify integrations](https://apify.com/integrations). Common setups use Google Sheets, Make, Zapier, or a webhook that fires when the dataset is ready.

If you need B\&H Photo Video product data for SEO, catalogs, or price tracking, start with a category URL and a modest `maxItems` value, then raise the cap once the output looks right.

# Actor input Schema

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

One or more B\&H Photo Video category, search, or filtered listing URLs. One URL per line.

## `searchQueries` (type: `array`):

Optional B\&H search keywords. Each term is turned into a search listing and scraped like a URL.

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

Maximum number of products to collect per run.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.bhphotovideo.com/c/buy/Digital-Cameras/ci/9811",
    "https://www.bhphotovideo.com/c/search?q=canon+mirrorless&sts=ma"
  ],
  "searchQueries": [
    "canon mirrorless",
    "sony a7"
  ],
  "maxItems": 20,
  "requestTimeoutSecs": 30
}
```

# Actor output Schema

## `properties` (type: `string`):

B\&H product scraper that collects product listings, prices, and stock from B\&H Photo Video category and search pages so SEO teams and resellers can keep electronics catalogs current.

# 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 = {
    "startUrls": [
        "https://www.bhphotovideo.com/c/products/Flat-Panel-Televisions/ci/2500/N/3965713807?filters=fct_year-released_4739:2025:REGULAR"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/bh-product-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 = { "startUrls": ["https://www.bhphotovideo.com/c/products/Flat-Panel-Televisions/ci/2500/N/3965713807?filters=fct_year-released_4739:2025:REGULAR"] }

# Run the Actor and wait for it to finish
run = client.actor("kawsar/bh-product-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 '{
  "startUrls": [
    "https://www.bhphotovideo.com/c/products/Flat-Panel-Televisions/ci/2500/N/3965713807?filters=fct_year-released_4739:2025:REGULAR"
  ]
}' |
apify call kawsar/bh-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kawsar/bh-product-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/wHrE0OXen8572zcmk/builds/y9nIJXJckn0zagqVN/openapi.json
