# Wayfair Scraper (`lexis-solutions/wayfair-v2-scraper`) Actor

Scrape product listings from Wayfair - including product names, categories, prices, availability, ratings, and images. Ideal for market research, inventory management, and price monitoring. Fast, structured, and customizable extraction from a leading home goods marketplace.

- **URL**: https://apify.com/lexis-solutions/wayfair-v2-scraper.md
- **Developed by:** [Lexis Solutions](https://apify.com/lexis-solutions) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 41 total users, 3 monthly users, 99.7% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

from $16.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Wayfair Scraper

![banner](https://i.ibb.co/XP5TxBR/wayfair-cover.png)

### Introduction

The Wayfair.com Apify Scraper is a powerful web scraping tool specifically designed to extract data from the popular American site selling furniture and household goods, Wayfair.com. This scraper enables users to collect various product-related information, including product names, prices, descriptions, images, and more.

Wayfair.com is a leading e-commerce platform, providing a diverse range of products, including furniture, decor, home appliances, and more. To gather valuable data from the platform, users can leverage the Wayfair.com Apify Scraper, which facilitates market research, competitor analysis, and price monitoring. The Apify Scraper, developed with the help of Apify - a popular web scraping and automation platform - ensures a smooth and efficient data extraction process.

### Use Cases

The Wayfair.com Apify Scraper can be used in multiple scenarios, including but not limited to:

1. **Market Research:** Extract data from Wayfair.com to analyze market trends, customer preferences, and product performance. This information can be used to identify potential business opportunities and make data-driven decisions.
2. **Price Monitoring:** Track product prices on Wayfair.com to stay updated on price changes and fluctuations, which can help businesses optimize their pricing strategies and stay competitive in the market.
3. **Competitor Analysis:** Gather data on competitor products and their pricing to identify strengths and weaknesses, enabling businesses to gain a competitive edge.
4. **Product Catalog Management:** Keep your product catalog updated by extracting product information like names, descriptions, images, and more from Wayfair.com.

Happy scraping!

### Input 📥

To use this actor, you need to provide the following input:

- Field: **startUrls**
  - Type: array
  - Required: Yes
  - Description: Search or product URLs to scrape
- Field: **maxItems**
  - Type: integer
  - Required: No
  - Description: The number of items to be scraped per search URL (default: 5)
- Field: **proxyConfiguration**
  - Type: object
  - Required: No
  - Description: Your proxy configuration from Apify. Defaults to US residential proxies, which Wayfair needs to return results

### How to get `startUrls`?

1. A single product

   Open the product on Wayfair and copy its link from the browser URL bar.

2. Search

   2.1. Open the Wayfair website.

   2.2. Navigate to a category or search that you are interested in.

   2.3. Once in the search page, add all needed filters on the page. This will change the URL in the browser search bar. Once ready, copy the URL and paste to Apify as an item in the `startUrls` array.

#### Examples

A single product:

```
https://www.wayfair.com/bed-bath/pdp/alcott-hill-journey-3-piece-reversible-scalloped-edge-quilt-set-w004949494.html
```

A search page ( Inflatable Hot Tubs Under $500 )

```
https://www.wayfair.com/filters/outdoor/sb1/inflatable-hot-tubs-under-500-c1876511-p156030~*~500.html
```

### Output 📤

<a name="output"></a>

An example output for buy mode looks like this:

```json
{
  "name": "Journey 3 Piece Reversible Scalloped Edge Quilt Set",
  "sku": "W004949494",
  "price": 67.99,
  "priceCurrency": "USD",
  "aggregateRating": {
    "ratingValue": 5,
    "reviewCount": 4473
  },
  "brand": "Alcott Hill®",
  "link": "https://www.wayfair.com/bed-bath/pdp/alcott-hill-journey-3-piece-reversible-scalloped-edge-quilt-set-w004949494.html",
  "description": "The reversible scalloped edge coverlet set is perfect as a layering piece or as an alternative to your comforter for a charming country look. The coverlet and shams flaunt a classic stitch pattern with scalloped edges that add an elegant touch to your bedroom. This reversible coverlet is filled with cotton filling and features a soft microfiber face, giving your bed a cozy cottage look. This farmhouse-inspired coverlet also has an antimicrobial treatment that provides built-in freshness protection, reducing the growth of odor-causing bacteria to keep the fabric lasting longer. Note: Due to the differences in hardware, software, and visual perception, the actual color might be different.",
  "image": "https://secure.img1-cg.wfcdn.com/im/46927041/compr-r85/7291/72913016/journey-3-piece-reversible-scalloped-edge-quilt-set.jpg"
}
```

### Need to scrape more data?

👉 Scrape Alibaba with [Alibaba Scraper](https://apify.com/lexis-solutions/alibaba-scraper)

👉 Scrape Michaels.com with [Michaels.com Scraper](https://apify.com/lexis-solutions/michaels-scraper)

👉 Scrape BizBuySell with [BizBuySell Scraper](https://apify.com/lexis-solutions/bizubuysell)

### FAQ

**Q: How do I set up the Wayfair.com Apify Scraper?**

A: To set up the scraper, you'll need an Apify account. Once you have an account, you can access the scraper through the Apify Console, input the required parameters, and start the scraping process.

**Q: Is this scraper legal to use?**

A: Web scraping is subject to legal and ethical considerations. Before using the Wayfair.com Apify Scraper, ensure that you comply with the website's terms of service, robots.txt file, and any applicable laws and regulations.

**Q: How fast is the data extraction process?**

A: The speed of data extraction depends on various factors such as the number of products, server response time, and the complexity of the data. The scraper is designed to be efficient and fast, but the actual extraction speed may vary.

**Q: How can I export the extracted data?**

A: The Wayfair.com Apify Scraper allows you to export the extracted data in various formats like JSON, CSV, or Excel. You can download the data directly from the Apify Console or use the Apify API to integrate it into your applications.

***

👀 p.s.

Got feedback or need an extension?

Lexis Solutions is a [certified Apify Partner](https://apify.com/partners/find). We can help you with custom solutions or data extraction projects.

Contact us over [Email](mailto:scraping@lexis.solutions) or [LinkedIn](https://www.linkedin.com/company/lexis-solutions)

### Support Our Work 💝

If you're happy with our work and scrapers, you're welcome to leave us a company review [here](https://apify.com/partners/find/lexis-solutions/review) and leave a review for the scrapers you're subscribed to. It will take you less than a minute but it will mean a lot to us!

Image Credit: wayfair.com

# Actor input Schema

## `startUrls` (type: `array`):

Wayfair category, search or product (/pdp/) URLs.

## `maxItems` (type: `integer`):

Maximum number of products to scrape per start URL (0 for unlimited).

## `proxyConfiguration` (type: `object`):

Wayfair only works reliably with US residential proxies

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.wayfair.com/furniture/sb0/dressers-chests-c46091.html?redir=dresser&rtype=9"
    }
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        {
            "url": "https://www.wayfair.com/furniture/sb0/dressers-chests-c46091.html?redir=dresser&rtype=9"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lexis-solutions/wayfair-v2-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 = {
    "startUrls": [{ "url": "https://www.wayfair.com/furniture/sb0/dressers-chests-c46091.html?redir=dresser&rtype=9" }],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("lexis-solutions/wayfair-v2-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 '{
  "startUrls": [
    {
      "url": "https://www.wayfair.com/furniture/sb0/dressers-chests-c46091.html?redir=dresser&rtype=9"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call lexis-solutions/wayfair-v2-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lexis-solutions/wayfair-v2-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/UZbHlzeo3TYtANZco/builds/XZevQPShl9b2SgJnG/openapi.json
