Skip to content
Scrappa Get API key
B&H Photo API 1 credit / request

B&H Photo Product API Documentation

GET https://scrappa.co/api/bhphoto/product

B&H Photo Product API Documentation Read one public B&H product by the id copied from a public B&H product url, or pass the product url itself. Any B&H product page is the public id source: the id is the code before -REG in the url, for example 1948568-REG. The answer has the name, brand, model, sale price, original price, discount, availability, full-size images, a rating with review count and a specification list with unique names. When the public page does not publish a regular price, original_price and discount_percent are null. 1 credit per successful request. A failed request is not billed. Not affiliated with B&H Photo.

B&H Photo Product API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/bhphoto/product
Auth header
x-api-key
Cost
1 credit / request
Response preview
200 OK
{
    "data": {
        "item": {
            "id": "1948568-REG",
            "mpn": "3382C002",
            "sku": "1948568",
            "url": "https://www.bhphotovideo.com/c/product/1948568-REG/canon_eos_r6_mirrorless_camera.html",
            "brand": "Canon",
            "image": "https://static.bhphoto.com/images/images2500x2500/1948568_1.jpg",
            "price": {
                "amount": 1999,
                "currency": "USD"
            },
            "title": "Canon EOS R6 Mirrorless Camera",
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

This endpoint has no required query parameters.

3 optional filters available.

id string Optional

B&H product id copied from a public product url, for example 1948568-REG. Required without url.

Example value 1234567890
url string Optional
Open example

Public B&H product url, for example https://www.bhphotovideo.com/c/product/1948568-REG/name.html. Required without id.

Example value https://example.com/product
site string Optional

bh only.

Example value example

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "item": {
            "id": "1948568-REG",
            "mpn": "3382C002",
            "sku": "1948568",
            "url": "https://www.bhphotovideo.com/c/product/1948568-REG/canon_eos_r6_mirrorless_camera.html",
            "brand": "Canon",
            "image": "https://static.bhphoto.com/images/images2500x2500/1948568_1.jpg",
            "price": {
                "amount": 1999,
                "currency": "USD"
            },
            "title": "Canon EOS R6 Mirrorless Camera",
            "images": [
                "https://static.bhphoto.com/images/images2500x2500/1948568_1.jpg"
            ],
            "rating": 4.8,
            "availability": "In Stock",
            "review_count": 312,
            "original_price": {
                "amount": 2299,
                "currency": "USD"
            },
            "specifications": [
                {
                    "name": "Sensor",
                    "value": "Full-Frame CMOS"
                }
            ],
            "discount_percent": 13
        },
        "site": "bh",
        "currency": "USD"
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "product"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A query parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "id": [
            "Send an id or a product url."
        ]
    },
    "message": "The request validation failed"
}
404

Not Found

B&H has no product with this id. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "product"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "B&H has no product with this id."
    },
    "success": false
}
503

Upstream Unavailable

B&H did not answer or sent an answer Scrappa cannot read. This response is not billable. Retry later.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "product"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "B&H is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.