{
  "openapi": "3.0.1",
  "info": {
    "title": "Big Box Reviews: Target & Best Buy Ratings, Reviews and Q&A",
    "description": "Collect customer reviews, questions and answers, and full rating histograms from Target and Best Buy product pages without a login. Paste product URLs or IDs from either retailer; get one row per review, question or answer plus a product summary.",
    "version": "1.0",
    "x-build-id": "0oI8O4dTFxZ9yAwe1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~big-box-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-big-box-reviews-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/xyrelith-data~big-box-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-big-box-reviews-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/xyrelith-data~big-box-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-big-box-reviews-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": [
          "products"
        ],
        "properties": {
          "products": {
            "title": "Product URLs or IDs",
            "type": "array",
            "description": "Target or Best Buy product URLs, Target TCINs or Best Buy SKUs. You can mix both stores in one list. Best Buy URLs ending in .p?skuId=, /sku/<id> or Best Buy TCIN links are detected automatically. Bare numeric IDs use the retailer hint below.",
            "default": [
              "91863920"
            ],
            "items": {
              "type": "string"
            }
          },
          "retailer": {
            "title": "Retailer for bare numeric IDs",
            "enum": [
              "auto",
              "target",
              "bestbuy"
            ],
            "type": "string",
            "description": "Only used when a product is a bare number with no URL. Auto probes both stores and picks the one that has reviews or questions; URLs always override this setting.",
            "default": "auto"
          },
          "contentType": {
            "title": "What to collect",
            "enum": [
              "reviews",
              "questions",
              "both"
            ],
            "type": "string",
            "description": "Customer reviews, questions and answers, or both. A product summary row is added when enabled below.",
            "default": "both"
          },
          "maxReviewsPerProduct": {
            "title": "Maximum reviews per product",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many matching reviews per product. Lower values make runs faster and cheaper.",
            "default": 100
          },
          "maxQuestionsPerProduct": {
            "title": "Maximum questions per product",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many questions per product. Answers travel with their question.",
            "default": 50
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "mostRecent",
              "mostHelpful",
              "highestRating",
              "lowestRating",
              "oldest",
              "mostRelevant"
            ],
            "type": "string",
            "description": "Best Buy supports all six orders. Target supports most recent, most helpful, highest and lowest rating; oldest reads Target's oldest reachable pages, and most relevant falls back to most helpful.",
            "default": "mostRecent"
          },
          "questionSort": {
            "title": "Question order",
            "enum": [
              "mostAnswered",
              "newestAnswers",
              "fewestAnswers",
              "newestQuestions"
            ],
            "type": "string",
            "description": "Target applies this order on its side. Best Buy returns a fixed order, so questions are sorted after they are downloaded.",
            "default": "mostAnswered"
          },
          "ratingFilter": {
            "title": "Star rating",
            "enum": [
              "all",
              "5",
              "4",
              "3",
              "2",
              "1"
            ],
            "type": "string",
            "description": "Keep only reviews with this star rating. Choose all stars to keep every review.",
            "default": "all"
          },
          "verifiedOnly": {
            "title": "Verified purchases only",
            "type": "boolean",
            "description": "Keep only reviews marked as verified purchases.",
            "default": false
          },
          "withPhotosOnly": {
            "title": "With photos only",
            "type": "boolean",
            "description": "Keep only reviews that include customer photos. Target filters on its side; Best Buy reviews are filtered after download.",
            "default": false
          },
          "includeSyndicated": {
            "title": "Include syndicated reviews",
            "type": "boolean",
            "description": "Include reviews that Target imported from a brand site. Turn off to keep only native Target reviews. Best Buy's review feed does not currently mark syndicated reviews.",
            "default": true
          },
          "submittedAfter": {
            "title": "Submitted after",
            "type": "string",
            "description": "Optional date in YYYY-MM-DD format. Only reviews submitted on or after this UTC date are kept; with most recent order the actor stops early for fast incremental runs.",
            "default": ""
          },
          "includeProductSummary": {
            "title": "Add one product summary row",
            "type": "boolean",
            "description": "Adds one row per product with the average rating, rating totals, 1-5 star histogram, recommendation percentage, media counts, question count and secondary rating averages where the retailer provides them.",
            "default": true
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}