# JYSK Stock API Documentation

<p><strong>JYSK Stock API</strong> returns online quantity and store availability for one or more article ids from search. Unknown stock is returned as null, never as false. A missing id still returns an item with null values.</p><p><strong>Credits:</strong> 1 credit per successful request. Failed requests are not billed.</p>

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

## 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 |
| --- | --- | --- | --- |
| `ids` | string | Yes | One or more article ids from Search or Product Ids, comma separated. Digits with an optional leading letter. |

## Example response

```json
{
    "data": {
        "items": [
            {
                "id": "3398032",
                "stores": {
                    "total": 200,
                    "with_atp": 40,
                    "in_stock_specified": null
                },
                "in_stock": true,
                "online_quantity": 12
            }
        ],
        "source": "jysk"
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "stock"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | Send at least one article id (digits, optional leading letter). 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)
