{
  "openapi": "3.0.1",
  "info": {
    "title": "Wayfair Product Search & Details Scraper",
    "description": "Scrape Wayfair search results and enrich each product with full PDP data in one row—price, rating, specs, dimensions, variants, and images. Clean JSON for pricing intel and catalog building.",
    "version": "0.0",
    "x-build-id": "zxz4KYbKQ1ubKRwQ2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/b2b_leads~Wayfair-Real-Time-Data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-b2b_leads-Wayfair-Real-Time-Data",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/b2b_leads~Wayfair-Real-Time-Data/runs": {
      "post": {
        "operationId": "runs-sync-b2b_leads-Wayfair-Real-Time-Data",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/b2b_leads~Wayfair-Real-Time-Data/run-sync": {
      "post": {
        "operationId": "run-sync-b2b_leads-Wayfair-Real-Time-Data",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "country": {
            "title": "Marketplace country",
            "enum": [
              "US",
              "CA",
              "GB"
            ],
            "type": "string",
            "description": "Select the Wayfair marketplace to scrape (US, CA, or GB).",
            "default": "US"
          },
          "enableProductSearch": {
            "title": "Product Search",
            "type": "boolean",
            "description": "Enable product search by keywords.",
            "default": true
          },
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search for on Wayfair.",
            "default": [
              "sofa"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchMaxResultsPerKeyword": {
            "title": "Max results per keyword",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of results to return per search keyword.",
            "default": 10
          },
          "searchMaxPages": {
            "title": "Max pages per keyword",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of search result pages to scrape per keyword.",
            "default": 2
          },
          "searchSort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "price-low",
              "price-high",
              "rating",
              "newest"
            ],
            "type": "string",
            "description": "How to sort the search results.",
            "default": "relevance"
          },
          "searchIncludeProductDetails": {
            "title": "Also fetch full product details",
            "type": "boolean",
            "description": "After searching, automatically fetch rich details (specs, variants, dimensions, etc.) for the products found in the search results. This is the recommended way to get complete data from a search.",
            "default": false
          },
          "enableProductDetails": {
            "title": "Product Details (rich specs)",
            "type": "boolean",
            "description": "Fetch full details using the SKUs/URLs you provide below. For best results when searching, use the 'Also fetch full product details' option inside the Product Search section instead.",
            "default": false
          },
          "productSkus": {
            "title": "Product SKUs (e.g. w100719015)",
            "type": "array",
            "description": "List of Wayfair SKUs to scrape details for.",
            "default": [
              "w100719015"
            ],
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product URLs",
            "type": "array",
            "description": "Direct product page URLs to scrape.",
            "default": [
              "https://www.wayfair.com/furniture/pdp/latitude-run-kami-convertible-chaise-bed-bench-for-yoga-massage-2-in-1-ottoman-with-yoga-lounge-chair-w100719015.html"
            ],
            "items": {
              "type": "string"
            }
          },
          "includeVariants": {
            "title": "Include variants",
            "type": "boolean",
            "description": "Include product variants in details.",
            "default": true
          },
          "includeSpecs": {
            "title": "Include rich specs & dimensions",
            "type": "boolean",
            "description": "Include detailed specifications and dimensions.",
            "default": true
          },
          "enableProductReviews": {
            "title": "Product Reviews",
            "type": "boolean",
            "description": "Enable extraction of product reviews.",
            "default": false
          },
          "reviewsSkus": {
            "title": "Review SKUs",
            "type": "array",
            "description": "SKUs to fetch reviews for.",
            "default": [
              "w100719015"
            ],
            "items": {
              "type": "string"
            }
          },
          "reviewsMaxPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of reviews to scrape per product.",
            "default": 10
          },
          "enableDeals": {
            "title": "Deals & Sales",
            "type": "boolean",
            "description": "Enable scraping of deals and sales pages.",
            "default": false
          },
          "dealsMaxProducts": {
            "title": "Max deals",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of deal products to return.",
            "default": 30
          },
          "dealsMinDiscountPercent": {
            "title": "Minimum discount %",
            "type": "integer",
            "description": "Only include deals with at least this discount percentage.",
            "default": 0
          },
          "enableCategoryBrowse": {
            "title": "Category Browse / Best Sellers",
            "type": "boolean",
            "description": "Enable category browsing and best sellers scraping.",
            "default": false
          },
          "categoryUrls": {
            "title": "Category URLs",
            "type": "array",
            "description": "URLs of categories or best-seller pages to browse.",
            "default": [
              "https://www.wayfair.com/furniture/cat/furniture-c45974.html"
            ],
            "items": {
              "type": "string"
            }
          },
          "categoryMaxProducts": {
            "title": "Max products per category",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of products to scrape per category URL.",
            "default": 30
          },
          "enableScrapeByUrl": {
            "title": "Scrape By URL",
            "type": "boolean",
            "description": "Enable scraping any Wayfair URL (auto-detects page type).",
            "default": false
          },
          "scrapeUrls": {
            "title": "Wayfair URLs",
            "type": "array",
            "description": "List of Wayfair URLs to scrape (any page type).",
            "default": [
              "https://www.wayfair.com/furniture/pdp/latitude-run-kami-convertible-chaise-bed-bench-for-yoga-massage-2-in-1-ottoman-with-yoga-lounge-chair-w100719015.html"
            ],
            "items": {
              "type": "string"
            }
          },
          "scrapeMaxPages": {
            "title": "Max pages for list URLs",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many pages to follow for paginated list pages (search/category).",
            "default": 1
          },
          "enableProductMedia": {
            "title": "Product Media",
            "type": "boolean",
            "description": "Enable rich product media extraction (images, customer photos, videos).",
            "default": false
          },
          "mediaSkus": {
            "title": "Media SKUs",
            "type": "array",
            "description": "SKUs to extract rich media for.",
            "default": [
              "w100719015"
            ],
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy settings",
            "type": "object",
            "description": "Configure proxy for scraping (recommended to use residential proxies).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}