Wayfair Scraper
Try Actor
$16.00/month
View all Actors
Wayfair Scraper
mscraper/wayfair-scraper
Try Actor
$16.00/month
The Wayfair Scraper is a powerful tool built to scrape detailed product data from Wayfair. It can retrieve important product data such as product name, sku, manufacturer, rating, reviews, price, and more.
The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5 token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10 "startUrls": [
11 {
12 "url": "https://www.wayfair.com/furniture/sb0/kitchen-dining-tables-c46129.html"
13 },
14 {
15 "url": "https://www.wayfair.com/bed-bath/pdp/ebern-designs-wynton-microfiber-reversible-3-piece-comforter-set-w002610239.html"
16 }
17 ],
18 "proxy": {
19 "useApifyProxy": true,
20 "apifyProxyCountry": "US"
21 },
22 "resultsLimit": 50
23};
24
25(async () => {
26 // Run the Actor and wait for it to finish
27 const run = await client.actor("mscraper/wayfair-scraper").call(input);
28
29 // Fetch and print Actor results from the run's dataset (if any)
30 console.log('Results from dataset');
31 console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
32 const { items } = await client.dataset(run.defaultDatasetId).listItems();
33 items.forEach((item) => {
34 console.dir(item);
35 });
36})();
37
38// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
- 8 monthly users
- 2 stars
- 100.0% runs succeeded
- Created in Jun 2023
- Modified about 1 month ago
Categories