# LOOKFANTASTIC Search API Documentation

<p><strong>LOOKFANTASTIC Search API</strong> returns beauty products from public LOOKFANTASTIC data. Each row has a numeric price, original price, discount, currency, rating, review count, full-size image and 8-digit sku. The sku passes unchanged into the product, reviews and category routes.</p><p><strong>Filters:</strong> brand and price are checked again after the upstream call. When a filter is applied, <code>pagination.post_filtered</code> is true and <code>pagination.filtered_count</code> is the number of rows returned on this page. The upstream <code>total</code> stays as reported by the source.</p><p><strong>Cost:</strong> 1 credit per request. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/lookfantastic-api/lookfantastic_search](https://scrappa.co/docs/lookfantastic-api/lookfantastic_search)
- **API group:** LOOKFANTASTIC API
- **Endpoint:** `GET https://scrappa.co/api/lookfantastic/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 text, 2 to 100 characters. |
| `brand` | string | No | Brand from the facets of a search. |
| `price_min` | number | No | Minimum numeric price. |
| `price_max` | number | No | Maximum numeric price. |
| `sort` | string | No | RELEVANCE, POPULARITY, PRICE_LOW_TO_HIGH, PRICE_HIGH_TO_LOW, NAME_ALPHABETICALLY, NEWEST_TO_OLDEST or DISCOUNT_PERCENTAGE_HIGH_TO_LOW. |
| `page` | integer | No | One-based page number, 1 to 50 (default 1). |
| `limit` | integer | No | Products per page, 1 to 100 (default 20). |

## Example response

```json
{
    "data": {
        "query": "serum",
        "facets": [],
        "products": [
            {
                "sku": "14300780",
                "brand": "Caudalie",
                "price": {
                    "current": 10.04,
                    "currency": "GBP",
                    "discount": 4.95,
                    "original": 14.99
                },
                "title": "Vitamin C Serum",
                "images": [
                    "https://static.thcdn.com/images/product/large/14300780.jpg"
                ],
                "rating": 4.6,
                "in_stock": true,
                "review_count": 52
            }
        ],
        "pagination": {
            "page": 1,
            "limit": 20,
            "total": 1875,
            "has_more": true
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Error | A query or filter value is invalid. Not billed. |
|  | Error | The public source 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)
