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 returned from search or by a product url. 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 as search returns it, for example 1948568-REG. Required without url.

Example value 1234567890
url string Optional
Open example

B&H product url. 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.

Response fields

26 fields
Field Type
data.item.id string
data.item.mpn string
data.item.sku string
data.item.url string
data.item.brand string
data.item.image string
data.item.price.amount integer
data.item.price.currency string
data.item.title string
data.item.images array
data.item.images[] string
data.item.rating number
data.item.availability string
data.item.review_count integer
data.item.original_price.amount integer
data.item.original_price.currency string
data.item.specifications array
data.item.specifications[].name string
data.item.specifications[].value string
data.item.discount_percent integer
data.site string
data.currency string
meta.credits integer
meta.billable boolean
meta.endpoint_family string
success boolean
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

The upstream service is temporarily unavailable. Please retry shortly.

{
    "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.