---
title: "Lyko API: Search | Perceptlayer"
description: "Search from Lyko as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/lyko/search
---

[APIs](https://perceptlayer.com/apis) / [Lyko](https://perceptlayer.com/apis/lyko) / Search

# Lyko: Search

Search from Lyko as JSON. 1 credit per successful call.

GET `/v1/lyko/search`

## Parameters

Send parameters in the query string.

Required Send `query`, `brand` or `category`.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Optional | Up to 100 characters |
| `brand` | string | Optional | Up to 100 characters |
| `category` | string | Optional | Up to 200 characters |
| `price_group` | string | Optional | Up to 60 characters |
| `sort` | string | Optional | popularity, title, titled, price, priced, date, rating, discount |
| `locale` | string | Optional | sv, no, fi, da, pl, nl, en, de |
| `page` | integer | Optional | Any |
| `per_page` | integer | Optional | 24, 48 |
| `facet_key` | string | Optional | Up to 60 characters |
| `facet_value` | string | Optional | Up to 120 characters |

## Example request

Lyko

GET /v1/lyko/search?query=schampo 

```
{
  "success": true,
  "data": {
    "products": [
      {
        "code": "1737-105-0250",
        "url": "https://lyko.com/sv/olaplex/olaplex---bond-maintenance-shampoo-no4",
        "display_name": "Olaplex No.4 Bond Maintenance Shampoo 250 ml",
        "brand": "Olaplex",
        "product_name": "Olaplex - Bond Maintenance Shampoo (No4)",
        "size": "250",
        "unit": "ml",
        "category_url": "https://lyko.com/sv/har/harvard/schampo-balsam/schampo",
        "online_status": "",
        "price": {
          "current": 227.4,
          "original": 379,
          "currency": "SEK",
          "discount_percent": 40,
          "use_discount_styling": true
        },
        "images": [
          {
            "url": "https://lyko.com/globalassets/product-images/olaplex-bond-maintenance-shampoo-no4-250ml-1737-105-0250_2.jpg?ref=95C63471E8",
            "width": 584,
            "height": 1321
          }
        ],
        "rating": 3.8,
        "review_count": 287,
        "is_new": false
      },
      {
        "code": "1261-90D-1000",
        "url": "https://lyko.com/sv/redken/1261-90d-1000",
        "display_name": "Redken All Soft Big Duo",
        "brand": "Redken",
        "product_name": "Redken All Soft Big Duo",
        "size": "",
        "unit": "",
        "category_url": "https://lyko.com/sv/har/harvard/schampo-balsam/conditioner",
        "online_status": "",
        "price": {
          "current": 515,
          "original": 859,
          "currency": "SEK",
          "discount_percent": 40,
          "use_discount_styling": true
        },
        "images": [
          {
            "url": "https://lyko.com/globalassets/product-images/redken-all-soft-big-duo-1261-90d-1000_1.jpg?ref=F6D881CEF3",
            "width": 1485,
            "height": 1876
          }
        ],
        "rating": 4.4,
        "review_count": 34,
        "is_new": false
      },
      {
        "code": "1185-A50-0400",
        "url": "https://lyko.com/sv/loreal-paris/l-or-al-paris-elvital-hyaluron-pure--purifying-shampoo-250-ml",
        "display_name": "Loreal Paris Elvital Hyaluron Pure Shampoo 250 ml",
        "brand": "Loreal Paris",
        "product_name": "L Or al Paris Elvital Hyaluron Pure  Purifying Shampoo 400 ml",
        "size": "250",
        "unit": "ml",
        "category_url": "https://lyko.com/sv/har/harvard/schampo-balsam/schampo",
        "online_status": "",
        "price": {
          "current": 29.835,
          "original": 45.9,
          "currency": "SEK",
          "discount_percent": 35,
          "use_discount_styling": true
        },
        "images": [
          {
            "url": "https://lyko.com/globalassets/product-images/loreal-paris-elvital-hyaluron-pure-shampoo-250-ml-1185-a50-0400_1.jpg?ref=08D84739BA",
            "width": 1144,
            "height": 2920
          },
          {
            "url": "https://lyko.com/globalassets/product-images/loreal-paris-elvital-hyaluron-pure-shampoo-250-ml-1185-a50-0400_2.jpg?ref=2B5AAA9618",
            "width": 2000,
            "height": 2000
          },
          {
            "url": "https://lyko.com/globalassets/product-images/loreal-paris-elvital-hyaluron-pure-shampoo-250-ml-1185-a50-0400_3.jpg?ref=D7D427E3EA",
            "width": 2000,
            "height": 2000
          }
        ],
        "rating": 4.1,
        "review_count": 45,
        "is_new": false
      }
    ],
    "pagination": {
      "page": 1,
      "per_page": 24,
      "total_results": 3164,
      "has_next_page": true
    },
    "facets": [
      {
        "field_name": "p_brandname",
        "values": [
          {
            "id": "Acca Kappa",
            "text": "Acca Kappa",
            "count": 4
          },
          {
            "id": "ACO",
            "text": "ACO",
            "count": 6
          },
          {
            "id": "Aesop",
            "text": "Aesop",
            "count": 4
          }
        ]
      },
      {
        "field_name": "p_category",
        "values": [
          {
            "id": "Fler_1",
            "text": "Fler",
            "count": 123
          },
          {
            "id": "hudvard",
            "text": "Hudvård",
            "count": 64
          },
          {
            "id": "harvard",
            "text": "Hår",
            "count": 3154
          }
        ]
      },
      {
        "field_name": "labels",
        "values": [
          {
            "id": "true",
            "text": "Eco",
            "count": 448
          },
          {
            "id": "Barn",
            "text": "Barn",
            "count": 29
          },
          {
            "id": "Kvinna",
            "text": "Kvinna",
            "count": 2912
          }
        ]
      }
    ],
    "sort_options": [
      {
        "value": "popularity",
        "text": "Mest sålda"
      },
      {
        "value": "title",
        "text": "Namn A-Ö"
      },
      {
        "value": "titled",
        "text": "Namn Ö-A"
      }
    ]
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_42e3c49851674eadad573c5b8d74a1d5",
    "credits_charged": 1,
    "credits_remaining": 4892
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/lyko?try=search#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

Each item in `data.products` has these 14 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `code` | string |
| `url` | url |
| `display_name` | string |
| `brand` | string |
| `product_name` | string |
| `size` | string |
| `unit` | string |
| `category_url` | url |
| `online_status` | string |
| `price` | object |
| `images` | object\[\] |
| `rating` | number |
| `review_count` | integer |
| `is_new` | boolean |
