# JYSK Product API Documentation

<p><strong>JYSK Product API</strong> returns one product by its public article id (digits, optionally prefixed by one letter) or by a product url from search. Both paths return the same keys. Price, original price, discount, campaign dates, rating and full-size image URLs come from the single lookup.</p><p>The id path returns one teaser lookup and leaves <code>reviews</code>, <code>variants</code> and <code>specs</code> as null, because that lookup does not fetch them. The url path fills them from the product page JSON-LD and takes the article id from the page's own <code>content.wssId</code>, never from a model name. The url field always holds the requested url when the page has none.</p><p><code>rating.count</code> is null on the id path; the count is on the Reviews route. Known <code>labels</code> keys are mapped to readable text, unknown keys pass through, and <code>status</code> stays the raw upstream code. Teaser-only fields such as <code>labels</code>, <code>status</code> and <code>stock_flags</code> are null on the url path. No value is invented.</p><p><strong>Credits:</strong> 1 credit per successful request. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/jysk-api/jysk_product](https://scrappa.co/docs/jysk-api/jysk_product)
- **API group:** JYSK API
- **Endpoint:** `GET https://scrappa.co/api/jysk/product`

## 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 |
| --- | --- | --- | --- |
| `id` | string | No | Public article id from Search or Product Ids, digits with an optional leading letter. Send id or url. |
| `url` | string | No | Product url from Search. Send url or id. |

## Example response

```json
{
    "data": {
        "id": "3398032",
        "price": {
            "amount": 175,
            "currency": "EUR"
        },
        "title": "Schaummatratze Wellpur Kvita",
        "rating": {
            "count": 59,
            "average": 4.8
        },
        "source": "jysk",
        "discount": 30,
        "image_urls": [
            "https://cdn1.jysk.com/getimage/wd3.large/3398032"
        ],
        "original_price": {
            "amount": 249,
            "currency": "EUR"
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "product"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The article id or url has no public product. This response is not billed. |
| 422 | Validation Error | Send an article id (digits, optional leading letter) or a jysk.de product url. This response is not billed. |
| 503 | Upstream Unavailable | JYSK could not be reached. 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)
