# B&H Photo API

> B&H Photo returns product prices, availability, ratings, and specifications, available as a workflow and API.

B&H Photo, also called B&H, returns product prices, savings, stock, ratings, and identifiers through Search products, which needs search words. Get product returns details, features, specifications, and prices and needs a product name, product link, or B&H number.

- Page: https://fous.com/workflows/bh-photo
- Handle: `@bh-photo`
- Category: [Commerce](https://fous.com/workflows/category/commerce)
- Source website: https://bhphotovideo.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with B&H Photo.

## Methods

### Get product

Operation `get_product`, version 1. 1 credit per call.

Get product details from B&H Photo by name, product link, or B&H number. A name uses the best matching search result; details and prices reflect the public page.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `product` | string | yes | `"Sony FE 70-200mm f/2.8 GM OSS II Lens"` | Product name, B&H product link, or B&H number, for example Sony a7 IV body. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "product"
  ],
  "properties": {
    "product": {
      "type": "string",
      "description": "Product name, B&H product link, or B&H number, for example Sony a7 IV body.",
      "examples": [
        "Sony FE 70-200mm f/2.8 GM OSS II Lens",
        "https://www.bhphotovideo.com/c/product/1666363-REG/sony_fe_70_200mm_f_2_8_gm.html",
        "SOA74"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "product": "Sony FE 70-200mm f/2.8 GM OSS II Lens"
    },
    {
      "product": "https://www.bhphotovideo.com/c/product/1666363-REG/sony_fe_70_200mm_f_2_8_gm.html"
    },
    {
      "product": "SOA74"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `brand` | string or null | `"Sony"` |  |
| `price` | number or null | `3098` |  |
| `currency` | string | `"USD"` |  |
| `bh_number` | string or null | `"SO70200282GM"` |  |
| `in_the_box` | array |  |  |
| `image_links` | array |  |  |
| `star_rating` | number or null | `4.9` |  |
| `availability` | string or null | `"In Stock"` |  |
| `key_features` | array |  |  |
| `product_link` | string | `"https://www.bhphotovideo.com/c/product/1666363-REG/sony_fe_70_200mm_f_2_8_gm.html"` |  |
| `product_name` | string | `"Sony FE 70-200mm f/2.8 GM OSS II Lens"` |  |
| `review_count` | integer or null | `200` |  |
| `specifications` | array |  |  |
| `specifications[].name` | string | `"Focal Length"` |  |
| `specifications[].group` | string or null |  |  |
| `specifications[].value` | string | `"70 to 200mm"` |  |
| `instant_savings` | number or null |  |  |
| `manufacturer_model_number` | string or null | `"SEL70200GM2"` |  |

**Example input**

```json
{
  "product": "Sony FE 70-200mm f/2.8 GM OSS II Lens"
}
```

**Example output**

```json
{
  "brand": "Sony",
  "price": 3098,
  "currency": "USD",
  "bh_number": "SO70200282GM",
  "in_the_box": [
    "Sony FE 70-200mm f/2.8 GM OSS II Lens",
    "Sony Lens Hood for FE 70-200mm f/2.8 GM OSS II Lens",
    "Sony ALC-F77S 77mm Front Lens Cap"
  ],
  "image_links": [
    "https://www.bhphotovideo.com/images/images500x500/sony_fe_70_200mm_f_2_8_gm_1784716794_1666363.jpg",
    "https://static.bhphoto.com/images/multiple_images/images500x500/1634123357_IMG_1621823.jpg",
    "https://static.bhphoto.com/images/multiple_images/images500x500/1634123357_IMG_1621824.jpg"
  ],
  "star_rating": 4.9,
  "availability": "In Stock",
  "key_features": [
    "E-Mount Lens/Full-Frame Format",
    "Aperture Range: f/2.8 to f/22",
    "29% Weight Reduction from Previous Model"
  ],
  "product_link": "https://www.bhphotovideo.com/c/product/1666363-REG/sony_fe_70_200mm_f_2_8_gm.html",
  "product_name": "Sony FE 70-200mm f/2.8 GM OSS II Lens",
  "review_count": 200,
  "specifications": [
    {
      "name": "Focal Length",
      "group": null,
      "value": "70 to 200mm"
    },
    {
      "name": "Aperture",
      "group": null,
      "value": "Maximum: f/2.8 / Minimum: f/22"
    },
    {
      "name": "Lens Mount",
      "group": null,
      "value": "Sony E"
    }
  ],
  "instant_savings": null,
  "manufacturer_model_number": "SEL70200GM2"
}
```

### Search products

Operation `search_products`, version 1. 1 credit per call.

Search B&H Photo products and return prices, savings, stock, ratings, identifiers, images and links in site order. Exact category names may use phrase matching to show products.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `sort` | string | no | `"price_low_to_high"` | Product order, for example price_low_to_high. |
| `query` | string | yes | `"Sony headphones"` | Words to search for, such as mirrorless camera. |
| `max_price` | number | no | `350` | Highest price in USD, for example 1500. |
| `min_price` | number | no | `100` | Lowest price in USD, for example 500. |
| `max_results` | integer | no | `32` | Maximum products to return, for example 24. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "sort": {
      "enum": [
        "best_match",
        "price_low_to_high",
        "price_high_to_low",
        "top_rated",
        "newest"
      ],
      "type": "string",
      "default": "best_match",
      "description": "Product order, for example price_low_to_high.",
      "examples": [
        "price_low_to_high"
      ]
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Words to search for, such as mirrorless camera.",
      "examples": [
        "Sony headphones",
        "mirrorless camera",
        "zzxxyyqqnonexistent123446688"
      ]
    },
    "max_price": {
      "type": "number",
      "minimum": 0,
      "description": "Highest price in USD, for example 1500.",
      "examples": [
        350
      ]
    },
    "min_price": {
      "type": "number",
      "minimum": 0,
      "description": "Lowest price in USD, for example 500.",
      "examples": [
        100
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 24,
      "maximum": 60,
      "minimum": 1,
      "description": "Maximum products to return, for example 24.",
      "x-fous-developer": true,
      "examples": [
        32,
        24,
        5
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "sort": "price_low_to_high",
      "query": "Sony headphones",
      "max_price": 350,
      "min_price": 100,
      "max_results": 32
    },
    {
      "query": "mirrorless camera",
      "max_results": 24
    },
    {
      "query": "zzxxyyqqnonexistent123446688",
      "max_results": 5
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `products` | array |  |  |
| `products[].name` | string |  |  |
| `products[].brand` | string or null |  |  |
| `products[].price` | number or null |  | Current price in USD. |
| `products[].currency` | string |  |  |
| `products[].bh_number` | string or null |  |  |
| `products[].image_link` | string or null |  |  |
| `products[].star_rating` | number or null |  |  |
| `products[].availability` | string or null |  |  |
| `products[].product_link` | string |  |  |
| `products[].review_count` | integer |  |  |
| `products[].instant_savings` | number or null |  | Displayed savings in USD, or null if none. |
| `products[].manufacturer_model_number` | string or null |  |  |

**Example input**

```json
{
  "query": "zzxxyyqqnonexistent123446688",
  "max_results": 5
}
```

**Example output**

```json
{
  "products": []
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@bh-photo",
  "visibility": "public",
  "operation": "get_product",
  "version": 1,
  "input": {
    "product": "Sony FE 70-200mm f/2.8 GM OSS II Lens"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@bh-photo\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_product\",\n  \"version\": 1,\n  \"input\": {\n    \"product\": \"Sony FE 70-200mm f/2.8 GM OSS II Lens\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@bh-photo",
  "visibility": "public",
  "operation": "get_product",
  "version": 1,
  "input": {
    "product": "Sony FE 70-200mm f/2.8 GM OSS II Lens"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@bh-photo","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Compare product prices and displayed savings
- Find products within a budget
- Check product availability and ratings
- Review product features and specifications
- Match products using brand and model identifiers

## FAQ

### Is Fous affiliated with B&H Photo?

No. Fous is not affiliated with B&H Photo. This workflow reads the public bhphotovideo.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a B&H Photo account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from bhphotovideo.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What products match my search?

Search products returns matching products using the search words you provide.

### What is a product’s current price and availability?

Search products returns prices and availability for matching products; Get product returns those details for a specified product.

### What are a product’s specifications?

Get product returns specifications and key features for a product identified by name, link, or B&H number.

## Related

- [Best Buy API](https://fous.com/workflows/best-buy.md): Best Buy returns US electronics and appliance listings, prices, deals, specifications, images, reviews, and nearby store pickup and shipping details; prices and availability can change by location and before checkout.
- [Newegg API](https://fous.com/workflows/newegg.md): Newegg provides US computer and electronics listings, with product details and selected public offers whose prices, availability, stock, and shipping can change or may not be displayed.
- [Amazon API](https://fous.com/workflows/amazon.md): Amazon returns publicly shown product listings, prices, details, ratings, reviews, current best sellers, and Today's Deals; availability and content vary by store, location, and access.
- [Sephora API](https://fous.com/workflows/sephora.md): Sephora provides US beauty products, shopping information, product details, and customer reviews; prices and availability may change.
- [Walmart API](https://fous.com/workflows/walmart.md): Walmart helps shoppers find products from Walmart and marketplace sellers, view details, prices, ratings and reviews; availability uses Walmart’s default location, not ZIP codes.
- [H&M API](https://fous.com/workflows/hm.md): H&M offers clothing and home shopping, with country-specific prices and online size stock; product details reflect current catalog information.
- [Nordstrom API](https://fous.com/workflows/nordstrom.md): Search clothing, shoes, and beauty products at Nordstrom.
- [Nike API](https://fous.com/workflows/nike.md): Nike returns country-specific listings and details, including prices, sizes, availability and reviews, plus publicly shown upcoming or recently stocked SNKRS releases with local launch times.
- [All Commerce workflows](https://fous.com/workflows/category/commerce)
