Best Buy Filtering API

Our Best Buy Search API supports the filters of Best Buy search: Best Buy's filters (e.g. brands, conditions, deals, or customer ratings) with facet, the category with category_id and auto_category, and the price range with min_price and max_price.


Filter IDs are in filters and popular_filters of the results, with the SerpApi link of each option. The applied filters are in applied_filters, with links removing them.


The API endpoint is https://serpapi.com/search?engine=best_buy

Head to the playground for a live and interactive demo.

API parameters

Advanced filters

facet

Optional

Parameter defines the filters to apply, like Best Buy's filters (e.g., brands, conditions, deals, or customer ratings). It's a comma-separated list of filter IDs (e.g., brand_facet:HP,condition_facet:Open-Box). Filter IDs are available in filters[].options[].id and popular_filters[].id of the results.

Filter IDs of Best Buy Canada are different (e.g., brandName:HP,custom0ramsize:16), and the ID of a category filter is the path of the category (e.g., category:Computers & Tablets;category:Laptops & MacBooks). category_id can't be used with category: filters of facet.

category_id

Optional

Parameter defines the category to search in (e.g., pcmcat287600050003 for Gaming Laptops). Category IDs are available in the Category filter of the results.

Like on Best Buy, a search can be limited to a category automatically (e.g., Laptops for laptop), as shown in search_information.category. Setting category_id replaces this category with yours. With country set to ca, it's the ID of a Best Buy Canada category (e.g., 20001 for Computers & Tablets), and category filters are in facet instead. category_id can't be used with category: filters of facet.

auto_category

Optional

Parameter defines whether Best Buy can limit the search to a category automatically (e.g., Laptops for laptop). It can be set to true (default) or false to search in all categories, like Best Buy's Search all categories link. It's only available for Best Buy United States.

min_price

Optional

Parameter defines the minimum price of the products, in US dollars or in Canadian dollars with country set to ca (e.g., 100).

max_price

Optional

Parameter defines the maximum price of the products, in US dollars or in Canadian dollars with country set to ca (e.g., 500).

API examples

Example with  q: laptop and facet: brand_facet:HP,condition_facet:Open-Box

facet is a comma-separated list of filter IDs. This example shows open-box HP laptops. The filters of the search have their IDs, number of products, and SerpApi links. Like on Best Buy, the link of a selected filter removes it.

Example with  q: laptop and facet: brand_facet:HP,condition_facet:Open-Box

JSON Example

{
  ...
  "organic_results": [
    {
      "sku_id": "6667483",
      "title": "HP - 14\" Laptop - Intel N150 Processor - 4GB Memory - 128GB Storage - Pale Rose Gold",
      "brand": "HP",
      "price": "$349.99",
      "extracted_price": 349.99,
      ...
    },
    ...
  ],
  "applied_filters": [
    {
      "name": "Brand",
      "value": "HP",
      "id": "brand_facet:HP",
      "serpapi_link": "https://serpapi.com/search.json?engine=best_buy&facet=condition_facet%3AOpen-Box&q=laptop"
    },
    {
      "name": "Category",
      "value": "Laptops",
      "id": "abcat0502000",
      "serpapi_link": "https://serpapi.com/search.json?auto_category=false&engine=best_buy&facet=brand_facet%3AHP%2Ccondition_facet%3AOpen-Box&q=laptop"
    },
    {
      "name": "Condition",
      "value": "Open-Box",
      "id": "condition_facet:Open-Box",
      "serpapi_link": "https://serpapi.com/search.json?engine=best_buy&facet=brand_facet%3AHP&q=laptop"
    }
  ],
  ...
  "filters": [
    {
      "name": "Category",
      "options": [
        {
          "name": "All Laptops",
          "id": "pcmcat138500050001",
          "serpapi_link": "https://serpapi.com/search.json?category_id=pcmcat138500050001&engine=best_buy&facet=brand_facet%3AHP%2Ccondition_facet%3AOpen-Box&q=laptop",
          "options": [
            {
              "name": "Windows Laptops",
              "id": "pcmcat247400050000",
              "serpapi_link": "https://serpapi.com/search.json?category_id=pcmcat247400050000&engine=best_buy&facet=brand_facet%3AHP%2Ccondition_facet%3AOpen-Box&q=laptop"
            },
            ...
          ]
        },
        ...
      ]
    },
    {
      "name": "Brand",
      "options": [
        {
          "name": "HP",
          "id": "brand_facet:HP",
          "count": 68,
          "selected": true,
          "serpapi_link": "https://serpapi.com/search.json?engine=best_buy&facet=condition_facet%3AOpen-Box&q=laptop"
        },
        {
          "name": "Lenovo",
          "id": "brand_facet:Lenovo",
          "count": 48,
          "serpapi_link": "https://serpapi.com/search.json?engine=best_buy&facet=brand_facet%3AHP%2Ccondition_facet%3AOpen-Box%2Cbrand_facet%3ALenovo&q=laptop"
        },
        ...
      ]
    },
    {
      "name": "Condition",
      "options": [
        {
          "name": "Open-Box",
          "id": "condition_facet:Open-Box",
          "count": 68,
          "selected": true,
          "serpapi_link": "https://serpapi.com/search.json?engine=best_buy&facet=brand_facet%3AHP&q=laptop"
        },
        {
          "name": "New",
          "id": "condition_facet:New",
          "count": 3258,
          "serpapi_link": "https://serpapi.com/search.json?engine=best_buy&facet=brand_facet%3AHP%2Ccondition_facet%3AOpen-Box%2Ccondition_facet%3ANew&q=laptop"
        },
        ...
      ]
    },
    ...
  ],
  ...
}