# Wayfair Product Scraper (`moving_beacon-owner1/wayfair-product-scraper`) Actor

Scrapes public product listings from **Wayfair.com**, including product names, SKUs, prices, discounts, ratings, reviews, availability, delivery details, categories, brands, images, and product URLs. Supports keyword searches and category/search URLs with automatic pagination.

- **URL**: https://apify.com/moving\_beacon-owner1/wayfair-product-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Wayfair Product Scraper

Scrapes product listings from [wayfair.com](https://www.wayfair.com)

### Input

| Field | Default | Description |
| --- | --- | --- |
| `search_query` | `"office chair"` | Keyword searched on wayfair.com. Used only when `start_urls` is empty. |
| `start_urls` | `[]` | Wayfair category/browse/search URLs, e.g. `https://www.wayfair.com/furniture/sb0/sofas-c413892.html`. Paginated automatically. |
| `max_items` | `48` | Max products returned across all URLs (max 2000). One listing page = 48 products. |
| `delay_seconds` | `6` | Pause between page requests and starting backoff on HTTP 429. Below 5 is likely to get blocked. |

Runs with completely empty input (defaults to a `office chair` search, first 48 results).

### Output

```json
{
  "sku": "W112266288",
  "variant_id": "W112266288_2140780284",
  "name": "Traditional Upholstered Standard Sofa with Square Armrests and 2 Throw Pillows",
  "url": "https://www.wayfair.com/furniture/pdp/ebern-designs-traditional-upholstered-standard-sofa-with-square-armrests-and-2-throw-pillows-w112266288.html",
  "url_with_variant": "https://www.wayfair.com/furniture/pdp/...-w112266288.html?piid=2140780284",
  "brand": "Ebern Designs",
  "price": 479.99,
  "price_label": "Sale",
  "previous_price": 1333.99,
  "percent_off": "64% Off",
  "currency": "USD",
  "rating": 4.25,
  "review_count": 681,
  "selected_options": "Cream",
  "available_choice_count": 4,
  "flag": "Summer Markdowns",
  "is_best_value": true,
  "is_sponsored": false,
  "stock_status": "IN_STOCK",
  "inventory_message": "898 Left in Stock",
  "delivery_message": "FREE 2-Day Delivery",
  "category_id": 413892,
  "category_name": "Sofas",
  "image_url": "https://assets.wfcdn.com/im/00000000/resize-h600-w600%5Ecompr-r85/3093/309329658/default_name.jpg",
  "description": "This modern sofa introduces clean lines and a tailored silhouette…",
  "source_url": "https://www.wayfair.com/keyword.php?keyword=office+chair",
  "raw": { "__typename": "RecommendedListingCollectionItem", "...": "full GraphQL listing node" }
}
```

### Data source and auth

Public `wayfair.com` listing pages — no API key, token or login. Wayfair is behind PerimeterX: Chrome and
Firefox TLS fingerprints are rejected with HTTP 429 plus a `px-captcha` interstitial, while Safari
fingerprints pass, so every request goes out through `curl_cffi` with rotating Safari impersonation
profiles (`safari184`, `safari260`, `safari180`, …) and escalating backoff. Product **detail** (PDP) pages
are protected more aggressively than listing pages and are not scraped; every field above comes from the
listing grid payload. From a datacenter IP the rate limit is roughly one page per several seconds — keep
`delay_seconds` at 6 or higher, and use a residential proxy on Apify for large runs.

### Caveats

Scraped data is public listing information; respect Wayfair's Terms of Service and robots.txt, keep
request rates polite, and do not redistribute product copy or imagery in ways that infringe Wayfair's or
its manufacturers' rights. Prices, stock and delivery promises are point-in-time and vary by
locale/postcode.

# Actor input Schema

## `search_query` (type: `string`):

Keyword searched on wayfair.com. Used only when no Start URLs are supplied.

## `start_urls` (type: `array`):

Wayfair category / browse / search URLs to scrape, e.g. https://www.wayfair.com/furniture/sb0/sofas-c413892.html. Pagination is followed automatically with the curpage parameter. Leave empty to use the search query instead.

## `max_items` (type: `integer`):

Maximum number of products to return across all URLs. Each listing page yields 48 products.

## `delay_seconds` (type: `integer`):

Polite pause between page requests, also used as the starting backoff when Wayfair's anti-bot layer returns HTTP 429. Values below 5 are likely to get blocked.

## Actor input object example

```json
{
  "search_query": "office chair",
  "start_urls": [],
  "max_items": 48,
  "delay_seconds": 6
}
```

# Actor output Schema

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

No description

# 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 = {
    "search_query": "office chair",
    "start_urls": [],
    "max_items": 48,
    "delay_seconds": 6
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/wayfair-product-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 = {
    "search_query": "office chair",
    "start_urls": [],
    "max_items": 48,
    "delay_seconds": 6,
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/wayfair-product-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 '{
  "search_query": "office chair",
  "start_urls": [],
  "max_items": 48,
  "delay_seconds": 6
}' |
apify call moving_beacon-owner1/wayfair-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/wayfair-product-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/WeW8aJRMfT3nchJSX/builds/KTwvdqAEsshMFaJAD/openapi.json
