Wayfair

There are two approaches to retrieving data from Wayfair using our Scraper API. You can give us a full URL or pass parameters via the specifically built data source - Search.

Overview

Below is a quick overview of all the available data source values we support with Wayfair.

SourceDescriptionDedicated parser

wayfair

Submit any Wayfair URL you like.

No.

wayfair_search

Wayfair search result pages.

No.

Although we do not have dedicated parsers for Wayfair sources, you can write your own parsing instructions with Custom Parser feature and get structured data.

You can jump to your preferred Wayfair page type by selecting its name on the right hand side menu. Each page contains the parameter table as well as code examples to help you get started with your query.

URL

The wayfair source is designed to retrieve content from various Wayfair URLs. Instead of sending multiple parameters, you can provide us with a direct URL to your preferred Wayfair page. We do not strip any parameters or alter your URLs in any other way.

Query parameters

ParameterDescriptionDefault Value

source

Data source. More info.

wayfair

url

Direct URL (link) to Wayfair page

-

user_agent_type

Device type and browser. The full list can be found here.

desktop

callback_url

URL to your callback endpoint. More info.

-

- required parameter

Code examples

In this example, we make a request to retrieve a result for a URL.

{
    "source": "wayfair", 
    "url": "https://www.wayfair.com/keyword.php?keyword=sofa"
}

The example above uses the Realtime integration method. If you would like to use some other integration method in your query (e.g. Push-Pull or Proxy Endpoint), refer to the integration methods section.

The wayfair_search source is designed to retrieve Wayfair Search results (SERP).

Query parameters

ParameterDescriptionDefault Value

source

Data source. More info.

wayfair_search

query

UTF-encoded keyword

-

start_page

Starting page number

1

pages

Number of pages to retrieve

1

limit

Number of results to retrieve in each page. Available values: 24, 48, 96

48

user_agent_type

Device type and browser. The full list can be found here.

desktop

callback_url

URL to your callback endpoint. More info.

-

- required parameter

Code examples

In the code example below, we make a request to retrieve 4 wayfair.com search results pages, starting from page #2, for search term sofa.

{
    "source": "wayfair_search", 
    "query": "sofa", 
    "start_page": 2, 
    "pages": 4
}

The example above uses the Realtime integration method. If you would like to use some other integration method in your query (e.g. Push-Pull or Proxy Endpoint), refer to the integration methods section.

Last updated