{
  "openapi": "3.0.1",
  "info": {
    "title": "Bed Bath & Beyond Price & Rewards Scraper",
    "description": "Search bedbathandbeyond.com by keyword or home-goods department and get price, sale price, brand, rating, review count, images, two-day-shipping eligibility and Welcome Rewards cash-back data. No login or proxy required.",
    "version": "1.0",
    "x-build-id": "bmgo5xS2OisyIRhiV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~bed-bath-and-beyond-price-and-rewards-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-bed-bath-and-beyond-price-and-rewards-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/dataspryva~bed-bath-and-beyond-price-and-rewards-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-bed-bath-and-beyond-price-and-rewards-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/dataspryva~bed-bath-and-beyond-price-and-rewards-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-bed-bath-and-beyond-price-and-rewards-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byCategory",
              "product",
              "reviews"
            ],
            "type": "string",
            "description": "What to collect: keyword search results, a department, product details, or customer reviews.",
            "default": "search"
          },
          "keywords": {
            "title": "Search keywords (mode=search)",
            "type": "string",
            "description": "Free-text search query, e.g. `towel`, `comforter set`, `kitchen island`.",
            "default": ""
          },
          "category": {
            "title": "Department (mode=byCategory)",
            "enum": [
              "Bedding",
              "Bath",
              "Kitchen and Dining",
              "Furniture",
              "Home Decor",
              "Storage and Organization",
              "Home Improvement",
              "Appliances",
              "Baby and Kids Home Goods",
              "Outdoor",
              "Rugs",
              "Housewares",
              "Holiday",
              "Art",
              "Gifts",
              "Tools",
              "Mattresses"
            ],
            "type": "string",
            "description": "Browse one of the site's home-goods departments. The department name is used through the catalog's own search relevance; direct category-browse pages are bot-protected (see README).",
            "default": "Bedding"
          },
          "productUrls": {
            "title": "Product URLs or IDs (mode=product or reviews)",
            "type": "array",
            "description": "One or more bedbathandbeyond.com product-page URLs or numeric product IDs, e.g. `https://www.bedbathandbeyond.com/.../5296998/product.html` or `5296998`.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "sortBy": {
            "title": "Product sort order (modes search / byCategory / product)",
            "enum": [
              "relevance",
              "onSale",
              "bestSelling",
              "priceLowHigh",
              "priceHighLow",
              "rating",
              "newArrivals"
            ],
            "type": "string",
            "description": "How products are ordered. Applied client-side to the fetched result window because the site's sort control is not honoured by a plain HTTP request (see README).",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Drop products priced below this amount. Sent to the catalog as a server-side price filter."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Drop products priced above this amount. Sent to the catalog as a server-side price filter."
          },
          "minRating": {
            "title": "Minimum customer rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "For products: drop products rated below this. For reviews: drop reviews below this star rating."
          },
          "maxRating": {
            "title": "Maximum customer rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "For products: drop products rated above this. For reviews: drop reviews above this star rating."
          },
          "onSaleOnly": {
            "title": "On-sale products only",
            "type": "boolean",
            "description": "Only emit products currently marked on sale.",
            "default": false
          },
          "fastShippingOnly": {
            "title": "Two-day shipping only",
            "type": "boolean",
            "description": "Only emit products eligible for two-day delivery.",
            "default": false
          },
          "brandContains": {
            "title": "Brand contains",
            "type": "string",
            "description": "Keep only products whose detected brand or title contains this text (case-insensitive), e.g. `Superior`, `SAFAVIEH`, `KitchenAid`.",
            "default": ""
          },
          "maxItems": {
            "title": "Max products",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted product records (search, department and product modes).",
            "default": 30
          },
          "reviewSort": {
            "title": "Review sort order (mode=reviews)",
            "enum": [
              "newest",
              "oldest",
              "highestRating",
              "lowestRating",
              "mostHelpful"
            ],
            "type": "string",
            "description": "How customer reviews are ordered.",
            "default": "newest"
          },
          "maxReviews": {
            "title": "Max reviews (mode=reviews)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on emitted review records across all product URLs/IDs in the run.",
            "default": 50
          },
          "verifiedOnly": {
            "title": "Verified buyers only (mode=reviews)",
            "type": "boolean",
            "description": "Only emit reviews marked as verified purchases.",
            "default": false
          },
          "withImagesOnly": {
            "title": "Reviews with photos only (mode=reviews)",
            "type": "boolean",
            "description": "Only emit reviews that include at least one customer photo.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}