# JYSK Search API Documentation

<p><strong>JYSK Search API</strong> searches the public jysk.de catalog. Each result carries a public article id (digits, optionally prefixed by one letter, for example <code>S363109</code>), a price in EUR, an original price, a discount, a rating, full-size image URLs and stock flags. Filter by category and sort. Page with <code>page</code> and <code>per_page</code>.</p><p>Price filtering is not offered because the public price facet grammar is unproven; no filter is claimed that the API cannot honour. Only the proven sort values <code>score</code> and <code>priceAscending</code> are accepted. A page is never labelled as another page.</p><p><strong>Fields:</strong> <code>rating.count</code> is null on search results because the public search payload has no review count; the count is on the Reviews route. <code>status</code> is the raw upstream status code. Known <code>labels</code> keys are mapped to readable text; unknown keys pass through unchanged.</p><p><strong>Credits:</strong> 1 credit per successful request. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/jysk-api/jysk_search](https://scrappa.co/docs/jysk-api/jysk_search)
- **API group:** JYSK API
- **Endpoint:** `GET https://scrappa.co/api/jysk/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 query, for example matratze. |
| `category` | string | No | Category name returned in earlier results. |
| `sort` | string | No | score (default) or priceAscending. |
| `page` | integer | No | One-based page number. Default 1. |
| `per_page` | integer | No | Page size, up to 36. Default 36. |

## Example response

```json
{
    "data": {
        "query": "matratze",
        "products": [
            {
                "id": "3398032",
                "price": {
                    "amount": 175,
                    "currency": "EUR"
                },
                "title": "Schaummatratze Wellpur Kvita",
                "rating": {
                    "count": null,
                    "average": 4.8
                },
                "discount": 30,
                "image_urls": [
                    "https://cdn1.jysk.com/getimage/wd3.large/3398032"
                ],
                "original_price": {
                    "amount": 249,
                    "currency": "EUR"
                }
            }
        ],
        "pagination": {
            "page": 1,
            "total": 697,
            "per_page": 36,
            "total_pages": 20,
            "has_next_page": true
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. This response is not billed. |
| 503 | Upstream Unavailable | JYSK could not be reached or did not honour the request. This response is not billed and is retryable. |

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