# Komputronik Product Search API Documentation

<p><strong>Komputronik Product Search API Documentation</strong> Search the Komputronik catalog by search words, a public category id or a search-filter slug. Query results follow the entity id from suggest. A query without an entity uses the public category from suggest, so known products still return items. Query words are honoured: brand, model and capacity must match the item. Filter by price, sort and page. Each item has a numeric id, name, url, sku, mpn, full-size images, gross and net PLN prices, a discount flag, stock labels and spec pairs. Rating is null when an item is unrated. Cost: 1 credit per successful request with results. Empty, failed and validation responses are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/komputronik-api/komputronik_search](https://scrappa.co/docs/komputronik-api/komputronik_search)
- **API group:** Komputronik API
- **Endpoint:** `GET https://scrappa.co/api/komputronik/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 | No | Search words, for example rtx 5070. |
| `category` | string | No | Numeric category id from suggest or categories. |
| `slug` | string | No | Search-filter slug as <entityId>/<slug> from suggest, for example 857/dyski-ssd. A full search-filter URL also works. |
| `page` | integer | No | Page number from 1. |
| `sort` | string | No | price_asc, price_desc, name_asc or name_desc. |
| `price_from` | number | No | Minimum gross PLN price. |
| `price_to` | number | No | Maximum gross PLN price. |
| `buyable_only` | boolean | No | Set to 1 for buyable products only. |

## Example response

```json
{
    "data": {
        "items": [
            {
                "id": 1030508,
                "name": "Karta graficzna",
                "price": 2249,
                "images": [
                    "https://static.komputronik.pl/product/full.jpg"
                ],
                "rating": {
                    "count": 1,
                    "score": 5
                },
                "currency": "PLN",
                "quantity": 4,
                "net_price": 1828.46,
                "is_buyable": true,
                "has_discount": false
            }
        ],
        "currency": "PLN",
        "pagination": {
            "has_next": true,
            "per_page": 1,
            "total_pages": 17,
            "current_page": 1,
            "total_results": 332
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | No search key or a filter is invalid. Not billed. |
| 503 | Egress Unavailable | No healthy upstream lease. Retry. Not billed. |

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