# Douglas Search API Documentation

<p><strong>Douglas Search API</strong> returns page-one beauty products from the public Douglas storefront. Each row has a numeric price, currency, numeric rating and review count, and a full-size image. The product id passes unchanged into the product and reviews routes.</p><p>The server-rendered page supplies facets and sort options. Page, sort and filter parameters are rejected with 422 because the upstream ignores them. <strong>Cost:</strong> 1 credit per request. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/douglas-api/douglas_search](https://scrappa.co/docs/douglas-api/douglas_search)
- **API group:** Douglas API
- **Endpoint:** `GET https://scrappa.co/api/douglas/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 text, 2 to 100 characters. |
| `country` | string | No | Storefront at (default) or ch. |

## Example response

```json
{
    "data": {
        "sort": "relevance",
        "facets": [],
        "products": [
            {
                "id": "5000005003",
                "name": "Eau de Parfum",
                "brand": "Douglas",
                "image": "https://images.douglas.de/is/image/dgl/5000005003-0",
                "price": {
                    "current": 49.9,
                    "currency": "EUR",
                    "original": null,
                    "discount_percent": null
                },
                "rating": 4.5,
                "review_count": 120
            }
        ],
        "pagination": {
            "page": 1,
            "per_page": 52,
            "total_pages": 175,
            "has_next_page": true,
            "total_results": 8397,
            "next_page_reachable": false
        },
        "sort_options": []
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Error | A page, sort, filter or storefront value was rejected. Not billed. |
|  | Error | Douglas could not be reached. 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)
