# Westwing Search API Documentation

<p><strong>Westwing Search API</strong> searches products by keyword. Page with <code>page</code>, set the page size with <code>limit</code>, sort with <code>sort</code> and limit the price with <code>price_min</code> and <code>price_max</code>. Each product carries price, original price, numeric discount, delivery time, colour variants, full-size image URL and a stable id for the product route.</p><p><strong>Rating:</strong> rating and review count are null on a listing. Call the product route with the returned id to get them; that is one extra request and one extra credit.</p><p>Filters are always honoured: a product outside the requested price range is never returned. A page is never labelled as another page. A request that cannot be honoured fails with 503 and is not billed.</p><p><strong>Credits:</strong> 1 credit per successful request. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/westwing-api/westwing_search](https://scrappa.co/docs/westwing-api/westwing_search)
- **API group:** Westwing API
- **Endpoint:** `GET https://scrappa.co/api/westwing/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Search keyword, 2 to 100 characters. Example: sofa. |
| `page` | integer | No | One-based page number, 1 to 50. Default 1. |
| `limit` | integer | No | Products per page, 1 to 50. Default 20. |
| `sort` | string | No | relevance (default) or availability. Price and novelty sorts are not supported. |
| `price_min` | number | No | Minimum price in EUR. |
| `price_max` | number | No | Maximum price in EUR. |
| `domain` | string | No | Storefront: de (default). |

## Example response

```json
{
    "data": {
        "sort": "relevance",
        "query": "sofa",
        "products": [
            {
                "id": "10275100524880",
                "price": {
                    "amount": 799,
                    "currency": "EUR"
                },
                "rating": {
                    "count": null,
                    "average": null
                },
                "source": "westwing",
                "delivery": {
                    "max_days": 7,
                    "min_days": 3
                },
                "discount": 20,
                "image_urls": [
                    "https://cdn.shopify.com/s/files/1/0000/0000/files/sofa.jpg"
                ],
                "original_price": {
                    "amount": 999,
                    "currency": "EUR"
                }
            }
        ],
        "pagination": {
            "page": 1,
            "total": 11398,
            "per_page": 20,
            "total_pages": 570,
            "has_next_page": true
        }
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. This response is not billable. |
| 503 | Upstream Unavailable | Westwing could not be reached or did not honour the request. This response is not billable and is retryable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
