# B&H Photo Product API Documentation

<p><strong>B&H Photo Product API Documentation</strong> 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.</p>

- **Documentation:** [https://scrappa.co/docs/bhphoto-api/bhphoto_product](https://scrappa.co/docs/bhphoto-api/bhphoto_product)
- **API group:** B&H Photo API
- **Endpoint:** `GET https://scrappa.co/api/bhphoto/product`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | No | B&H product id copied from a public product url, for example 1948568-REG. Required without url. |
| `url` | string | No | Public B&H product url, for example https://www.bhphotovideo.com/c/product/1948568-REG/name.html. Required without id. |
| `site` | string | No | bh only. |

## Example response

```json
{
    "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

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. This response is not billable. |
| 404 | Not Found | B&H has no product with this id. This response is not billable. |
| 503 | Upstream Unavailable | B&H did not answer or sent an answer Scrappa cannot read. This response is not billable. Retry later. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
