# Bed Bath & Beyond Scraper - $2.00 / 1000 Products (`scrapeunblocker/bedbathandbeyond-scraper`) Actor

Scrape Bed Bath & Beyond (bedbathandbeyond.com): search results with price, compare-at price, discount, rating and sponsored flag, or product pages with every option's price and stock, specifications and images. $2.00 per 1000 products.

- **URL**: https://apify.com/scrapeunblocker/bedbathandbeyond-scraper.md
- **Developed by:** [Scrapeunblocker](https://apify.com/scrapeunblocker) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bed Bath & Beyond Scraper

Scrape **Bed Bath & Beyond** (bedbathandbeyond.com, the US home-goods store run by Beyond, Inc.) as clean JSON. Get **search results** as a shopper sees them, or **product pages** in full. Every search result comes with the **product id and SKU**, title, link, image, **price** (and the top of the range when options are priced differently), the **compare-at price** (MSRP, compare at or was) and **discount**, **rating and review count**, the number of options, the badge (e.g. Best Seller) and whether the listing is **sponsored**. Product pages add every **option** (size, colour) with its own **price and quantity in stock**, the rating histogram, description, **specifications**, breadcrumbs, images and videos.

### Features

- **Search mode** - up to 300 products per search term, in the site's order or sorted by price, rating, best selling, on sale or newest, from any page.
- **Department redirects followed** - a keyword the site sends to a department page (e.g. `rugs`, `sofa`) returns that department's listing, named in the `LISTINGS` record.
- **Product mode** - one product per input (`products`: a product id like `5296998` or a product link) with every option's price and stock.
- **Many inputs per run** - search terms or products in parallel.

### Use cases

- **Home-goods price tracking** - sale prices against MSRP for a keyword or a department.
- **Stock monitoring** - quantity on hand for every size and colour of a product.
- **Assortment and ads research** - which brands rank for a keyword and which listings are sponsored.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `mode` | string | `search` | `search` or `product`. |
| `queries` | array | `bath towels` | Search terms (search mode). |
| `products` | array | - | Product ids or product links (product mode). |
| `sort` | string | `relevance` | `relevance`, `on_sale`, `best_selling`, `price_low`, `price_high`, `rating`, `newest`. |
| `maxResults` | integer | `60` | Products per search term (1-300). |
| `page` | integer | `1` | Results page to start from (about 60 products per page). |
| `concurrency` | integer | `2` | Inputs processed at the same time (1-3). |

#### Example input

```json
{
  "mode": "search",
  "queries": ["bath towels", "table lamp"],
  "sort": "price_low",
  "maxResults": 60
}
```

### Output

One dataset item per product, with the input it came from. A search item:

```json
{
  "mode": "search",
  "input": "bath towels",
  "productId": "5296998",
  "sku": "13108204",
  "title": "Superior Egyptian Cotton 6 Piece Towel Set Ultra Plush & Absorbent Bath, Hand & Face Towels, Heavyweight Spa Quality",
  "url": "https://www.bedbathandbeyond.com/Bedding-Bath/Superior-Egyptian-Cotton-900-GSM-Luxurious-Absorbent-6-piece-Towel-Set/5296998/product.html",
  "image": "https://ak1.ostkcdn.com/images/products/is/images/direct/15ef7fbaa12ba11cc6ba217faeb85da4c8e5ae8b/Superior-Egyptian-Cotton-6-Piece-Towel-Set-Ultra-Plush-%26-Absorbent-Bath%2C-Hand-%26-Face-Towels%2C-Heavyweight-Spa-Quality.jpg",
  "price": 63.98,
  "priceMax": 72.15,
  "priceText": "$63.98 - $72.15",
  "priceType": "SALE",
  "currency": "USD",
  "comparePrice": 157.5,
  "compareType": "MSRP",
  "discountPercent": 59,
  "regularPrice": 80.99,
  "hasOptions": true,
  "optionCount": 24,
  "rating": 4.52,
  "reviewCount": 3734,
  "badge": "Best Seller",
  "onSale": false,
  "fastDelivery": "twoDay",
  "rewards": 3.2,
  "sponsored": false,
  "position": 1
}
```

A product-mode item (lists shortened):

```json
{
  "mode": "product",
  "input": "9720467",
  "productId": "9720467",
  "title": "SAFAVIEH Adirondack Dakota Rustic Shabby Chic Distressed Rug",
  "brand": "Safavieh",
  "manufacturerPartNumber": "ADR109Z-9",
  "price": 20.67,
  "priceLabel": "Sale Starts at",
  "comparePrice": 31.0,
  "compareLabel": "MSRP",
  "savings": 10.33,
  "savingsPercent": 33,
  "currency": "USD",
  "inStock": true,
  "rating": 4.35,
  "reviewCount": 9968,
  "ratingHistogram": {"1": 534, "2": 357, "3": 762, "4": 1769, "5": 6546},
  "breadcrumbs": ["Rugs", "Area Rugs"],
  "specifications": [{"group": "Features", "name": "Material", "value": "Polypropylene"}],
  "optionCount": 498,
  "options": [
    {
      "optionId": "70133844",
      "title": "10' Round - Black/Teal",
      "attributes": {"Color": "Black/Teal", "Size": "10' Round"},
      "price": 161.99,
      "regularPrice": 224.99,
      "comparePrice": 289.0,
      "onSale": true,
      "inStock": true,
      "quantityAvailable": 2,
      "lowStockMessage": "Only 2 Left! Order Soon."
    }
  ],
  "images": ["https://ak1.ostkcdn.com/images/products/is/images/direct/a7146a71537cc9c183374b817f06f9eb2706151a/SAFAVIEH-Adirondack-Dakota-Rustic-Shabby-Chic-Distressed-Rug.jpg"]
}
```

Per search term, the `LISTINGS` record in the key-value store keeps `totalResults`, `lastPage` and `redirectedTo` when the site sent the search to a department page.

### Pricing

**$2.00 per 1000 products** (pay per result). A search term or product that returns nothing (no match, an unknown product, a call the site refused) is listed in the `ERRORS` record of the key-value store and is not charged.

### Notes

- Prices are those a signed-out shopper sees; Welcome Rewards members' prices are not included.
- Product pages are heavily protected, so a product can take up to a minute; a run keeps at most three inputs in flight.
- Product mode returns up to 100 options per product (`optionCount` says how many the product has).

Powered by [ScrapeUnblocker](https://www.scrapeunblocker.com).

# Actor input Schema

## `mode` (type: `string`):

Search: the products Bed Bath & Beyond shows for each search term. Product: one product each, with every option's price and stock, specifications, images and the rating histogram.

## `queries` (type: `array`):

Used when What to scrape = Search. What to search, e.g. bath towels, office chair, table lamp. One per line.

## `products` (type: `array`):

Used when What to scrape = Product. Product ids (5296998, the number before /product.html in a product link) or product links. One per line.

## `sort` (type: `string`):

Search mode: the order of the results.

## `maxResults` (type: `integer`):

Upper limit of products for each search term (1-300, about 60 per results page).

## `page` (type: `integer`):

Search mode: the results page to start from (about 60 products per page, as on the site).

## `concurrency` (type: `integer`):

How many search terms or products to process at the same time (1-3).

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    "bath towels"
  ],
  "sort": "relevance",
  "maxResults": 10,
  "page": 1,
  "concurrency": 2
}
```

# Actor output Schema

## `results` (type: `string`):

One item per product with the input it came from and, for a search, its position

## `listings` (type: `string`):

Per search term: total results, last page and the department page the site sent the search to

## `errors` (type: `string`):

Inputs that returned no products (no match, unknown product, blocked), with the reason (not billed)

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "bath towels"
    ],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/bedbathandbeyond-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "queries": ["bath towels"],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeunblocker/bedbathandbeyond-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "bath towels"
  ],
  "maxResults": 10
}' |
apify call scrapeunblocker/bedbathandbeyond-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeunblocker/bedbathandbeyond-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/lQea4OwLflokZu56R/builds/eerhWGvfpfdEJgPBv/openapi.json
