Skip to content
Scrappa Get API key
X-Kom API 1 credit / request

X-Kom Product Detail API Documentation

GET https://scrappa.co/api/xkom/product

X-Kom Product Detail API Documentation Get one X-Kom product by its numeric id from search or categories. Returns PLN price, old price and discount, stock and delivery text, full specification groups, full-size image URLs, EANs and the product description. The rating uses a 1 to 5 scale. Ids pass unchanged from the search route. Cost: 1 credit per successful request. Failed requests are not billed.

X-Kom Product Detail API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/xkom/product
Auth header
x-api-key
Cost
1 credit / request
id = 1234567890
Response preview
200 OK
{
    "data": {
        "product": {
            "id": 1175277,
            "eans": [
                "5901234123457"
            ],
            "name": "Laptop",
            "price": 649,
            "specs": [
                {
                    "name": "Procesor",
                    "features": [
                        {
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

id integer Required

Numeric product id from the search or categories route. Example: 1175277.

Example value 1234567890

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "product": {
            "id": 1175277,
            "eans": [
                "5901234123457"
            ],
            "name": "Laptop",
            "price": 649,
            "specs": [
                {
                    "name": "Procesor",
                    "features": [
                        {
                            "name": "Model",
                            "value": "M3"
                        }
                    ]
                }
            ],
            "images": [
                "https://cdn.x-kom.pl/i/produkt/product-large.jpg"
            ],
            "rating": 4.79,
            "currency": "PLN",
            "discount": 50,
            "old_price": 699,
            "description": "Opis produktu",
            "availability": {
                "text": "Dost\u0119pny",
                "available": true,
                "delivery_date": "2026-11-23T00:00:00.000Z"
            },
            "rating_scale": "1-5",
            "review_count": 389
        },
        "currency": "PLN"
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "product"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

The product id is missing or invalid. Not billed.

{
    "errors": {
        "id": [
            "Send the numeric product id from a search or categories result."
        ]
    },
    "message": "The request validation failed"
}
502

Upstream Unavailable

X-Kom could not be reached. Retry. Not billed.

{
    "meta": {
        "billable": false
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "X-Kom is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.