# Lyko Search API Documentation

<p><strong>Lyko Search API</strong> returns products from the public Lyko catalogue across eight Nordic sites. Filter by query, brand, category or price group, choose a sort value from the answer, and page with page and per_page.</p><p>Prices are numbers with the currency from each response. Images are full-size urls. Sponsored cards are excluded. Page numbers are never relabelled. <strong>Cost:</strong> 1 credit per request. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/lyko-api/lyko_search](https://scrappa.co/docs/lyko-api/lyko_search)
- **API group:** Lyko API
- **Endpoint:** `GET https://scrappa.co/api/lyko/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 a brand or category instead when needed. |
| `brand` | string | No | Brand value from the facets in a search answer. |
| `category` | string | No | Category value from the facets in a search answer. |
| `price_group` | string | No | Price group id from the facets in a search answer. |
| `sort` | string | No | One of popularity, title, titled, price, priced, date, rating, discount. |
| `locale` | string | No | sv, no, fi, da, pl, nl, en or de. Default sv. |
| `page` | integer | No | One-based page number. Default 1. |
| `per_page` | integer | No | 24 or 48. Default 24. |

## Example response

```json
{
    "data": {
        "products": [
            {
                "url": "https://lyko.com/sv/vichy/mineral-89",
                "code": "2240-459-0050",
                "brand": "VICHY",
                "price": {
                    "current": 199,
                    "currency": "SEK",
                    "original": 249,
                    "discount_percent": 20.08
                },
                "images": [
                    {
                        "url": "https://lyko.com/globalassets/product-images/serum.jpg"
                    }
                ],
                "rating": 4.6,
                "display_name": "Mineral 89 Serum",
                "review_count": 812
            }
        ],
        "pagination": {
            "page": 1,
            "per_page": 24,
            "has_next_page": true,
            "total_results": 2675
        }
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Validation error | No query, brand or category was sent, or a sort value is not valid |

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