# Wayfair Scraper (Pay Per Result) (`123webdata/wayfair-scraper`) Actor

A scraper for Wayfair to retrieve product catalog information, prices, and details from both category and product pages. Great for price tracking, analytics, and e-commerce integrations. Pricing: $0.005/result. 10 results on free trial.

- **URL**: https://apify.com/123webdata/wayfair-scraper.md
- **Developed by:** [Milán Vásárhelyi](https://apify.com/123webdata) (community)
- **Categories:** E-commerce, AI
- **Stats:** 108 total users, 5 monthly users, 100.0% runs succeeded, 8 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.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?

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.com Scraper

This actor scrapes product data from [Wayfair.com](https://www.wayfair.com/), a popular online store for furniture and home goods.

### Issues and feature requests

If you encounter any issue, or you'd like us to change or add anything, please open an issue in the actor page or write to us directly at hello@123webdata.com

### Output Example (simplified)

The actor provides a convenient overview mode that displays the most important product information in a tabular format. Here's an example of how the data looks in the overview mode:

| Image | Product URL | Product Name | Current Price | Regular Price | Currency | Description | Scraped At |
|-------|-------|-------|-------|-------|-------|-------|-------|
| <img src="https://assets.wfcdn.com/im/48931868/resize-h1200-w1200%5Ecompr-r85/2691/269196912/Dunster+51%27%27+Sideboard.jpg" style="max-width: 100px; max-height: 100px; object-fit: contain;"> | https://www.wayfair.com/furniture/pdp/red-barrel-studio-dunster-3-door-cane-storage-cabinet-w110455494.html | Dunster 51'' Sideboard | 799.99 | 869.99 | USD | A bold platform for coffee ... | 2025-07-21 |

### Features

- Scrapes detailed product information from Wayfair.com product pages
- Extracts data from both individual product URLs and category pages
- Follows pagination links on category pages (optional)
- Supports various product categories with specific fields like brand, price, and category

### Input

The actor accepts the following input parameters:

| Field | Type | Description |
|-------|------|-------------|
| `productUrls` | array | List of Wayfair.com product URLs to scrape |
| `categoryUrls` | array | List of Wayfair.com category URLs to scrape |
| `maxResultsPerScrape` | integer | Maximum number of results to extract (default: 1000) |
| `usePagination` | boolean | Whether to follow pagination links on category pages (default: true) |

### Output Example (full)

The actor outputs data in the following structure:

```json
{
	"url": "https://www.wayfair.com/furniture/pdp/red-barrel-studio-dunster-3-door-cane-storage-cabinet-w110455494.html",
	"name": "Dunster 51'' Sideboard",
	"price": 799.99,
	"regular_price": 869.99,
	"currency": "USD",
	"in_stock": null,
	"sku": "W110455494",
	"mpn": null,
	"gtin": null,
	"brand": "Red Barrel Studio®",
	"breadcrumbs": [
		"Furniture",
		"Kitchen & Dining Furniture",
		"Sideboards & Buffets",
		"SKU: W110455494"
	],
	"main_image": "https://assets.wfcdn.com/im/48931868/resize-h1200-w1200%5Ecompr-r85/2691/269196912/Dunster+51%27%27+Sideboard.jpg",
	"images": [
		"https://assets.wfcdn.com/im/95575651/resize-h1200-w1200%5Ecompr-r85/2691/269196894/Dunster+51%27%27+Sideboard.jpg",
		"https://assets.wfcdn.com/im/30680965/resize-h1200-w1200%5Ecompr-r85/2691/269196924/Dunster+51%27%27+Sideboard.jpg",
		"https://assets.wfcdn.com/im/48931868/resize-h1200-w1200%5Ecompr-r85/2691/269196912/Dunster+51%27%27+Sideboard.jpg",
		"https://assets.wfcdn.com/im/34528073/resize-h1200-w1200%5Ecompr-r85/2691/269196906/Dunster+51%27%27+Sideboard.jpg",
		"https://assets.wfcdn.com/im/15383784/resize-h1200-w1200%5Ecompr-r85/2824/282431814/Dunster+51%27%27+Sideboard.jpg",
		"https://assets.wfcdn.com/im/85630673/resize-h48-w48%5Ecompr-r85/2824/282431813/Dunster+51%27%27+Sideboard.jpg",
		"https://assets.wfcdn.com/im/60716957/resize-h96-w96%5Ecompr-r65/2691/269196894/Dunster+51%27%27+Sideboard.jpg",
		"https://assets.wfcdn.com/im/14073174/resize-h96-w96%5Ecompr-r65/2691/269196912/Dunster+51%27%27+Sideboard.jpg",
		"https://assets.wfcdn.com/im/69386767/resize-h96-w96%5Ecompr-r65/2691/269196906/Dunster+51%27%27+Sideboard.jpg",
		"https://assets.wfcdn.com/im/80525090/resize-h96-w96%5Ecompr-r65/2824/282431814/Dunster+51%27%27+Sideboard.jpg",
		"https://assets.wfcdn.com/im/65539659/resize-h96-w96%5Ecompr-r65/2691/269196924/Dunster+51%27%27+Sideboard.jpg",
		"https://assets.wfcdn.com/im/03439506/resize-h96-w96%5Ecompr-r65/2691/269196909/Dunster+51%27%27+Sideboard.jpg",
		"https://assets.wfcdn.com/im/26664218/resize-h96-w96%5Ecompr-r65/2691/269196897/Dunster+51%27%27+Sideboard.jpg"
	],
	"description": "A bold platform for coffee makers or record players, this sideboard is an undeniably essential accent for your dining room or living space. Crafted from solid mango wood with a light brown finish, it showcases the beauty of wood grain variation. Real cane from rattan brings even more natural texture as these three door panels add a dash of dimension to the design. Inside, there's lots of room for all your daily essentials. And, for extra stability, we recommend getting a wall anchor (sold separately).",
	"color": "Brown",
	"size": null,
	"weight": "75.85 pound",
	"material": "Solid Wood, Cane, Solid Wood, Raphael Cane & Solid Mango Wood",
	"style": "No",
	"features": [
		"3 opening doors",
		"Natural cane overlay on the doors",
		"Shelves are not adjustable",
		"Number of cabinets: 2",
		"Interior door measures 12.5'' x 19''",
		"Metal base is 5\" from the floor"
	],
	"attributes": {
		"product type": "Sideboard",
		"material": "Solid Wood, Cane",
		"natural variation type": "Natural Wood Grain Color Variation",
		"finished back": "No",
		"cabinets included": "Yes",
		"shelves included": "Yes",
		"number of interior shelves": "2",
		"tipover restraint device included": "Yes",
		"countertop material": "Solid Wood",
		"main wood joinery method": "Butt",
		"kiln-dried wood": "Yes",
		"wood species": "Mango",
		"imported": "Yes",
		"weight capacity": "150 lb.",
		"shelf weight capacity": "30 lb.",
		"product care": "Wipe clean with a dry cloth",
		"manufactured wood type": "MDF",
		"door material": "Raphael Cane & Solid Mango Wood",
		"color": "Brown",
		"hardware finish": "Nickle",
		"number of doors": "3",
		"overall": "31'' H X 51'' W X 16'' D",
		"shelf": "14.5'' D X 49'' W",
		"cabinet interior": "31.5'' H X 14.5'' D",
		"overall product weight": "75.85 lb.",
		"countertop thickness": "0.5'' H",
		"feet height - top to bottom": "7.5'' H",
		"sku": "W110455494"
	},
	"rating_value": 4.5,
	"review_count": 26,
	"canonical_url": "https://www.wayfair.com/furniture/pdp/red-barrel-studio-dunster-3-door-cane-storage-cabinet-w110455494.html",
	"scraped_at": "2025-07-21T12:10:36.736Z"
}
```

### Use Cases

- Monitoring furniture and home goods prices
- Analyzing product availability and trends
- Tracking price changes over time
- Market research and competitive analysis in the home furnishing industry

# Actor input Schema

## `productUrls` (type: `array`):

List of Wayfair.com product URLs to scrape.

## `categoryUrls` (type: `array`):

List of Wayfair.com category URLs to scrape. The scraper will extract all product URLs from these pages.

## `maxResultsPerScrape` (type: `integer`):

Maximum number of results to extract. Default is 20.

## `usePagination` (type: `boolean`):

Whether to follow pagination links on category pages.

## Actor input object example

```json
{
  "productUrls": [
    "https://www.wayfair.com/furniture/pdp/red-barrel-studio-dunster-3-door-cane-storage-cabinet-w110455494.html"
  ],
  "categoryUrls": [
    "https://www.wayfair.com/daily-sales/rattan-%26-raffia-picks~e318772.html?"
  ],
  "maxResultsPerScrape": 20,
  "usePagination": true
}
```

# 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 = {
    "productUrls": [
        "https://www.wayfair.com/furniture/pdp/red-barrel-studio-dunster-3-door-cane-storage-cabinet-w110455494.html"
    ],
    "categoryUrls": [
        "https://www.wayfair.com/daily-sales/rattan-%26-raffia-picks~e318772.html?"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("123webdata/wayfair-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 = {
    "productUrls": ["https://www.wayfair.com/furniture/pdp/red-barrel-studio-dunster-3-door-cane-storage-cabinet-w110455494.html"],
    "categoryUrls": ["https://www.wayfair.com/daily-sales/rattan-%26-raffia-picks~e318772.html?"],
}

# Run the Actor and wait for it to finish
run = client.actor("123webdata/wayfair-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 '{
  "productUrls": [
    "https://www.wayfair.com/furniture/pdp/red-barrel-studio-dunster-3-door-cane-storage-cabinet-w110455494.html"
  ],
  "categoryUrls": [
    "https://www.wayfair.com/daily-sales/rattan-%26-raffia-picks~e318772.html?"
  ]
}' |
apify call 123webdata/wayfair-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,123webdata/wayfair-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/Z4pv73DXI48fPLG4i/builds/5n9Tj9vp4H0OqaMa4/openapi.json
