> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Best Buy

> Best Buy US products: search and details with prices, stores and in-store availability, categories, trending and most-viewed products, and open-box offers.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/bestbuy.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=e58a7b846dba963bcd5ca42fb7d83bc9)

[Web Catalog · Commerce](https://docs.webrouter.net/data-apis.md?category=commerce)

Needs&#x20;

`BESTBUY_API_KEY`

Endpoints

9

Auth

Key in query

[Vendor docs](https://bestbuyapis.github.io/api-documentation/) · Serves `bestbuy.com`

## Setup

| Variable | | What it is |
| - | - | - |
| `BESTBUY_API_KEY` | required | A free Best Buy developer API key (developer.bestbuy.com), sent as the apiKey query parameter. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Products, stores and categories answer XML unless format=json is passed; recommendations and open box are JSON only.
* Search expressions go inside parentheses in the path: products(search=oven\&salePrice\<500), with & for AND, | for OR, in(a,b) and trailing \* wildcards. Attribute names are case-sensitive.
* Past 10 pages use cursorMark=\* and then the returned nextCursorMark instead of page.
* A 403 means a bad key or the call quota is exceeded; prefer one in(...) query over many single lookups to avoid per-second errors.
* Links in responses (url, addToCartUrl) expire after seven days.

## Endpoints

GET

Search products

Products matching a search expression, with chosen attributes, sorting, facets and paging.

[Open](#bestbuy-products-search)

GET

Get a product

One product by SKU.

[Open](#bestbuy-products-get)

GET

Get in-store availability

Stores within 250 miles of a postal code that have a SKU, nearest first.

[Open](#bestbuy-products-availability)

GET

Find stores

Stores matching an expression such as area(postalCode,miles), with hours or services on request.

[Open](#bestbuy-stores-search)

GET

Find categories

Categories by name, id or path id, with their paths and subcategories.

[Open](#bestbuy-categories-search)

GET

Get trending products

Top 10 products by views in a category over a rolling three hours.

[Open](#bestbuy-products-trending)

GET

Get most-viewed products

Top 10 most-viewed products in a category, refreshed every two hours.

[Open](#bestbuy-products-most-viewed)

GET

Get products also viewed

Top 10 products viewed together with a SKU over 30 days.

[Open](#bestbuy-products-also-viewed)

GET

Get open-box offers for a SKU

Open-box offers (excellent or certified condition) and prices for one product.

[Open](#bestbuy-openbox-get)

### Search products

GET

`/products({expression})`

`bestbuy.products.search`

Products matching a search expression, with chosen attributes, sorting, facets and paging.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`expression` required</td><td>string</td><td>path</td><td>Search expression, e.g. search=oven\&salePrice\<500, or manufacturer=apple\&onSale=true. Example `search=macbook`</td></tr>
    <tr><td>`show`</td><td>string</td><td>query</td><td>Comma-separated attributes to return, or all. Example `sku,name,salePrice,regularPrice,url`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>attribute.asc or attribute.desc, comma-separated. Example `salePrice.asc`</td></tr>

    <tr>
      <td>
        `facet`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        attribute,count for summary counts, e.g. manufacturer,5.
      </td>
    </tr>

    <tr>
      <td>
        `pageSize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, default 10, max 100.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number.
      </td>
    </tr>

    <tr>
      <td>
        `cursorMark`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        \* for the first page, then nextCursorMark, for result sets beyond 10 pages.
      </td>
    </tr>

    <tr><td>`format`</td><td>string</td><td>query</td><td>json or xml; products, stores and categories default to XML. One of `json`, `xml` Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://bestbuyapis.github.io/api-documentation/) · Same job: [Etsy Open API v3](https://docs.webrouter.net/data-apis/etsy.md#etsy-listings-search), [Keepa](https://docs.webrouter.net/data-apis/keepa.md#keepa-search-products), [Open Food Facts](https://docs.webrouter.net/data-apis/openfoodfacts.md#openfoodfacts-products-search), [Rainforest API](https://docs.webrouter.net/data-apis/rainforest.md#rainforest-search)

```python Python theme={null}
router.call_data_api("bestbuy.products.search", {'expression': 'search=macbook', 'show': 'sku,name,salePrice,regularPrice,url', 'sort': 'salePrice.asc', 'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="bestbuy.products.search", params={"expression": "search=macbook", "show": "sku,name,salePrice,regularPrice,url", "sort": "salePrice.asc", "format": "json"})
```

### Get a product

GET

`/products/{sku}.json`

`bestbuy.products.get`

One product by SKU.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`sku` required</td><td>integer</td><td>path</td><td>Best Buy SKU. Example `6487435`</td></tr>
    <tr><td>`show`</td><td>string</td><td>query</td><td>Comma-separated attributes to return, or all. Example `sku,name,salePrice,regularPrice,url`</td></tr>
  </tbody>
</table>

[Vendor docs](https://bestbuyapis.github.io/api-documentation/) · Same job: [Etsy Open API v3](https://docs.webrouter.net/data-apis/etsy.md#etsy-listings-get), [Keepa](https://docs.webrouter.net/data-apis/keepa.md#keepa-product), [Open Food Facts](https://docs.webrouter.net/data-apis/openfoodfacts.md#openfoodfacts-product-get), [Outscraper](https://docs.webrouter.net/data-apis/outscraper.md#outscraper-amazon-products), [Rainforest API](https://docs.webrouter.net/data-apis/rainforest.md#rainforest-product)

```python Python theme={null}
router.call_data_api("bestbuy.products.get", {'sku': 6487435, 'show': 'sku,name,salePrice,regularPrice,url'})
```

```text MCP theme={null}
call_data_api(endpoint="bestbuy.products.get", params={"sku": 6487435, "show": "sku,name,salePrice,regularPrice,url"})
```

### Get in-store availability

GET

`/products/{sku}/stores.json`

`bestbuy.products.availability`

Stores within 250 miles of a postal code that have a SKU, nearest first.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `sku`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        Best Buy SKU.
      </td>
    </tr>

    <tr><td>`postalCode`</td><td>string</td><td>query</td><td>US ZIP code to search around. Example `55423`</td></tr>

    <tr>
      <td>
        `storeId`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        One store id instead of a postal code.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://bestbuyapis.github.io/api-documentation/)

### Find stores

GET

`/stores({expression})`

`bestbuy.stores.search`

Stores matching an expression such as area(postalCode,miles), with hours or services on request.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`expression` required</td><td>string</td><td>path</td><td>e.g. area(55423,10) for stores within 10 miles of a ZIP (distance defaults to 10). Example `area(55423,10)`</td></tr>

    <tr>
      <td>
        `show`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Attributes; hours, hoursAmPm, gmtOffset, detailedHours and services must be asked for.
      </td>
    </tr>

    <tr>
      <td>
        `pageSize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, default 10, max 100.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number.
      </td>
    </tr>

    <tr><td>`format`</td><td>string</td><td>query</td><td>json or xml; products, stores and categories default to XML. One of `json`, `xml` Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://bestbuyapis.github.io/api-documentation/) · Same job: [Amap (Gaode) Web Service](https://docs.webrouter.net/data-apis/amap.md#amap-places-search), [Atly](https://docs.webrouter.net/data-apis/atly.md#atly-places-search), [FDIC BankFind Suite](https://docs.webrouter.net/data-apis/fdic.md#fdic-locations-search), [Foursquare Places API](https://docs.webrouter.net/data-apis/foursquare.md#foursquare-places-search), [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-places-search), [Google Maps Platform](https://docs.webrouter.net/data-apis/google-maps.md#google-maps-places-text-search)

```python Python theme={null}
router.call_data_api("bestbuy.stores.search", {'expression': 'area(55423,10)', 'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="bestbuy.stores.search", params={"expression": "area(55423,10)", "format": "json"})
```

### Find categories

GET

`/categories({expression})`

`bestbuy.categories.search`

Categories by name, id or path id, with their paths and subcategories.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`expression` required</td><td>string</td><td>path</td><td>e.g. name=Laptops\*, id=abcat0400000, or path.id=abcat0400000. Example `name=Laptops*`</td></tr>

    <tr>
      <td>
        `show`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Attributes, e.g. id,name,path,subCategories.
      </td>
    </tr>

    <tr>
      <td>
        `pageSize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, default 10, max 100.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number.
      </td>
    </tr>

    <tr><td>`format`</td><td>string</td><td>query</td><td>json or xml; products, stores and categories default to XML. One of `json`, `xml` Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://bestbuyapis.github.io/api-documentation/) · Same job: [Adzuna](https://docs.webrouter.net/data-apis/adzuna.md#adzuna-jobs-categories), [handelsregister.ai](https://docs.webrouter.net/data-apis/handelsregister-ai.md#handelsregister-ai-signals-catalog), [Keepa](https://docs.webrouter.net/data-apis/keepa.md#keepa-search-categories), [Listen Notes](https://docs.webrouter.net/data-apis/listennotes.md#listennotes-genres)

```python Python theme={null}
router.call_data_api("bestbuy.categories.search", {'expression': 'name=Laptops*', 'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="bestbuy.categories.search", params={"expression": "name=Laptops*", "format": "json"})
```

### Get trending products

GET

`/products/trendingViewed(categoryId={category_id})`

`bestbuy.products.trending`

Top 10 products by views in a category over a rolling three hours.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`category_id` required</td><td>string</td><td>path</td><td>Category id (not name). Example `abcat0400000`</td></tr>
  </tbody>
</table>

[Vendor docs](https://bestbuyapis.github.io/api-documentation/)

```python Python theme={null}
router.call_data_api("bestbuy.products.trending", {'category_id': 'abcat0400000'})
```

```text MCP theme={null}
call_data_api(endpoint="bestbuy.products.trending", params={"category_id": "abcat0400000"})
```

### Get most-viewed products

GET

`/products/mostViewed(categoryId={category_id})`

`bestbuy.products.most-viewed`

Top 10 most-viewed products in a category, refreshed every two hours.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`category_id` required</td><td>string</td><td>path</td><td>Category id (not name). Example `abcat0107000`</td></tr>
  </tbody>
</table>

[Vendor docs](https://bestbuyapis.github.io/api-documentation/)

```python Python theme={null}
router.call_data_api("bestbuy.products.most-viewed", {'category_id': 'abcat0107000'})
```

```text MCP theme={null}
call_data_api(endpoint="bestbuy.products.most-viewed", params={"category_id": "abcat0107000"})
```

### Get products also viewed

GET

`/products/{sku}/alsoViewed`

`bestbuy.products.also-viewed`

Top 10 products viewed together with a SKU over 30 days.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `sku`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        Best Buy SKU.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://bestbuyapis.github.io/api-documentation/)

### Get open-box offers for a SKU

GET

`/products/{sku}/openBox`

`bestbuy.openbox.get`

Open-box offers (excellent or certified condition) and prices for one product.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `sku`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        Best Buy SKU.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://bestbuyapis.github.io/api-documentation/) · Same job: [Rainforest API](https://docs.webrouter.net/data-apis/rainforest.md#rainforest-offers)

> [!NOTE]
>
> * Beta API. No offers is a 200 with an empty result.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.