# Dunelm Search API Documentation

<p><strong>Dunelm Search API</strong> searches the public dunelm.com catalog. Each result carries a product id, a numeric price in GBP, an original price and discount, a rating, full-size image URLs and stock state. Filter with price bounds and facet keys. Sort with newest, price_asc, price_desc or biggest_discount; ranking_desc is the default. Page with <code>page</code>.</p><p>Every requested filter is honoured; an unsupported filter value returns 422. A page is never labelled as another page. The <code>in_stock</code> field stays present but is null in list rows; stock state is returned on the Product route only. <strong>Credits:</strong> 1 credit per successful request. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/dunelm-api/dunelm_search](https://scrappa.co/docs/dunelm-api/dunelm_search)
- **API group:** Dunelm API
- **Endpoint:** `GET https://scrappa.co/api/dunelm/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 |
| --- | --- | --- | --- |
| `q` | string | Yes | Search query, for example curtains. |
| `page` | integer | No | One-based page number. Default 1. |
| `low-price.priceTaxed` | number | No | Lowest price in GBP. |
| `high-price.priceTaxed` | number | No | Highest price in GBP. |
| `lining` | string | No | Facet key from the filters list, for example lining=blackout. |
| `orderBy` | string | No | newest, price_asc, price_desc or biggest_discount. |

## Example response

```json
{
    "data": {
        "q": "curtains",
        "source": "dunelm",
        "products": [
            {
                "id": "1000187431",
                "price": {
                    "amount": 75,
                    "currency": "GBP"
                },
                "title": "Eyelet Curtains",
                "rating": {
                    "count": 2247,
                    "average": 4.65
                },
                "image_urls": [
                    "https://images.dunelm.com/1000187431.jpg?$standardplayerzoom$"
                ]
            }
        ],
        "pagination": {
            "page": 1,
            "total": 1097,
            "per_page": 60,
            "total_pages": 19,
            "has_next_page": true
        },
        "active_filters": []
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. This response is not billed. |
| 503 | Upstream Unavailable | Dunelm could not be reached or did not return product data. Not billed. |

## 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)
