{
  "openapi": "3.0.1",
  "info": {
    "title": "Bestbuy Products Scraper",
    "description": "Efficiently access product data from Best Buy , capable of scraping unlimited details including ID, name, URL, prices, ratings, and stock status from bestbuy.com. Perfect for populating reports, databases, and applications with structured data.",
    "version": "0.0",
    "x-build-id": "uf6lJE6bfQXA9yaWG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dainty_screw~bestbuy-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dainty_screw-bestbuy-products-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/dainty_screw~bestbuy-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dainty_screw-bestbuy-products-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/dainty_screw~bestbuy-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dainty_screw-bestbuy-products-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "startUrls",
          "proxyConfig"
        ],
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Paste one or more Best Buy URLs exactly as they appear in your browser. Supported inputs include BestBuy.com search URLs, modern category URLs ending in .c?id=..., Top Deals pages, older /site/promo/... pages, direct product URLs with skuId=..., and BestBuy.ca category, collection, or product URLs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "proxyConfig": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings for Best Buy requests. Use Apify Proxy with countryCode US for BestBuy.com. Custom proxyUrls are also supported and are not combined with countryCode.",
            "default": {
              "useApifyProxy": true,
              "countryCode": "US"
            }
          },
          "maxProductsCnt": {
            "title": "Maximum products",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of products to save across all start URLs. Use 3 for a quick test, 100 for a normal run, or 0 to scrape all discovered products.",
            "default": 100
          },
          "addImages": {
            "title": "Add images",
            "type": "boolean",
            "description": "When enabled, product pages can include image URLs or image objects returned by Best Buy.",
            "default": true
          },
          "addTopReviews": {
            "title": "Add reviews",
            "type": "boolean",
            "description": "When enabled, the actor fetches customer reviews for each product from Best Buy's reviews API in addition to the rating and review count.",
            "default": true
          },
          "maxReviews": {
            "title": "Maximum reviews per product",
            "minimum": 0,
            "type": "integer",
            "description": "How many customer reviews to collect per product when Add reviews is enabled. Default 10 returns the most recent reviews from the first page. Set 0 to scrape ALL reviews (paginates through every review page - slower and more requests for products with thousands of reviews).",
            "default": 10
          },
          "skipZeroPrice": {
            "title": "Skip free / zero-price items",
            "type": "boolean",
            "description": "When enabled (default), products that resolve to a price of 0 - typically free promos, trials, and giveaways from Top Deals pages - are not saved, so every row has a real price. Disable to include them.",
            "default": true
          },
          "bestBuyApiKey": {
            "title": "Best Buy Developer API key (optional)",
            "type": "string",
            "description": "Optional. Price is scraped from Best Buy's public priceBlocks endpoint by default, so a key is not required. If you provide a free key from https://developer.bestbuy.com/, the official Products API is used for price instead."
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many times a failed page, listing API, or product detail request is retried. Default 3 is recommended because Best Buy can occasionally return 403 or reset requests.",
            "default": 3
          },
          "minConcurrency": {
            "title": "Minimum concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Minimum number of parallel requests. Keep this at 1 for stable small runs.",
            "default": 1
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of parallel requests. Default 4 is conservative for Best Buy. Increase only with reliable US proxies.",
            "default": 4
          },
          "handleRequestTimeoutSecs": {
            "title": "Request timeout seconds",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum seconds allowed for a single HTTP request and its handler. Increase this if Best Buy responds slowly through your proxy.",
            "default": 20
          },
          "requestTimeoutSecs": {
            "title": "Legacy request timeout seconds",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Backward-compatible alias for request timeout. New runs should use Request timeout seconds."
          },
          "maxProducts": {
            "title": "Legacy maximum products",
            "minimum": 0,
            "type": "integer",
            "description": "Backward-compatible alias for Maximum products. New runs should use maxProductsCnt."
          },
          "proxy": {
            "title": "Legacy proxy configuration",
            "type": "object",
            "description": "Backward-compatible alias for proxyConfig. New runs should use Proxy configuration."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}