# Sephora Search API Documentation

<p><strong>Sephora Search API</strong> returns beauty products with numeric prices and currency, rating and review count as numbers, full-size images, badges and the product id that the product and reviews routes accept unchanged.</p><p>Facets, brand filter and sort come from one Constructor search call. Sponsored rows are dropped and rows outside a requested price range are removed. <strong>Cost:</strong> 1 credit per request. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/sephora-api/sephora_search](https://scrappa.co/docs/sephora-api/sephora_search)
- **API group:** Sephora API
- **Endpoint:** `GET https://scrappa.co/api/sephora/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 | No | Search text, 2 to 100 characters. Send query or category. |
| `category` | string | No | Category keyword used as the search term when query is absent. |
| `brand` | string | No | Brand name to filter by. Rows of other brands are removed. |
| `sort` | string | No | relevance (default), price_asc, price_desc, rating or newest. |
| `page` | integer | No | One-based page number, 1 to 50 (default 1). |
| `price_min` | number | No | Lowest price in USD. Rows below it are removed. |
| `price_max` | number | No | Highest price in USD. Rows above it are removed. |

## Example response

```json
{
    "data": {
        "sort": "price_asc",
        "facets": [],
        "products": [
            {
                "id": "P515494",
                "name": "Daily Moisturizing Lotion",
                "brand": "CeraVe",
                "image": "https://sephora.com/productimages/sku/s1593185-main-zoom.jpg",
                "price": {
                    "current": 16.99,
                    "currency": "USD",
                    "original": null,
                    "discount_percent": null
                },
                "badges": [
                    "bestseller"
                ],
                "rating": 4.6,
                "sku_id": "1593185",
                "sponsored": false,
                "review_count": 8123
            }
        ],
        "pagination": {
            "page": 1,
            "per_page": 60,
            "has_next_page": true,
            "total_results": 1500
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Error | The request cannot be served as sent. Not billed. |
|  | Error | Sephora 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)
