Skip to content
Scrappa Get API key
Wayfair API 1 credit/request

Wayfair Autocomplete API Documentation

GET https://scrappa.co/api/wayfair/autocomplete

Wayfair Autocomplete API returns the search terms that Wayfair suggests for a typed text, in the language of the chosen storefront. Related searches and suggested products are returned when Wayfair offers them and are empty lists otherwise. A text with no suggestion returns an empty list.

Credits: 1 credit per successful request. Failed requests are not billed.

Wayfair Autocomplete API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/wayfair/autocomplete
Auth header
x-api-key
Cost
1 credit/request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "query": "sofa",
        "products": [],
        "suggestions": [
            {
                "keyword": "reclining sofa",
                "category_id": null
            },
            {
                "keyword": "outdoor sofa",
                "category_id": null
            }
        ],
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

1 optional filter available.

query string Required

Typed text, 2 to 100 characters. Example: sofa.

Example value coffee shops
domain string Optional

Storefront: com (default), ca or co.uk. SKUs, slugs and category ids differ per storefront: use ids from the same storefront.

Example value example.com

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "query": "sofa",
        "products": [],
        "suggestions": [
            {
                "keyword": "reclining sofa",
                "category_id": null
            },
            {
                "keyword": "outdoor sofa",
                "category_id": null
            }
        ],
        "related_searches": []
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A parameter is missing or invalid, or an id does not belong to the request. This response is not billable.

{
    "errors": {
        "domain": [
            "The domain must be com, ca or co.uk."
        ]
    },
    "message": "The request validation failed"
}
503

Upstream Unavailable

Wayfair could not be reached, blocked the request or returned data that does not match the request (another page, another sort, a partly loaded grid). This response is not billable and is retryable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "autocomplete"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Wayfair could not be reached. Please retry shortly."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.