# X-Kom Scraper | Polish Electronics Prices & Products (`trev0n/x-kom-scraper`) Actor

Scrapes product data from x-kom.pl — Poland's leading electronics retailer. Search by keywords or browse categories. Extracts name, price, specs, rating and more.

- **URL**: https://apify.com/trev0n/x-kom-scraper.md
- **Developed by:** [Paweł](https://apify.com/trev0n) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🛒 X-Kom Product Scraper

🎯 **Get structured product data from x-kom.pl — Poland's biggest electronics store — in minutes, not hours!**

Automatically collects product names, prices, specifications, ratings, availability, images and more from x-kom.pl. Search by keywords like "laptop" or "karta graficzna", browse entire categories, or scrape specific product pages. Perfect for price monitoring, market research, and competitor analysis in the Polish electronics market.

### 🚀 What Does It Do?

This scraper automatically browses x-kom.pl and collects **structured, ready-to-use data** from product listings and detail pages. No manual browsing needed — just set your search terms and hit Start.

💡 **Two modes of operation:**

1. **🔍 Search Mode** — Type in any keyword (e.g., "laptop", "monitor 4K", "dysk SSD") and the scraper finds all matching products with prices and ratings
2. **📋 Direct URL Mode** — Paste specific x-kom.pl URLs (category pages, search results, or individual product pages) to scrape exactly what you need

### 👥 Who Is This For?

| 🏢 Use Case                   | 💬 How It Helps                                                                        |
| ----------------------------- | -------------------------------------------------------------------------------------- |
| 📊 **Price Monitoring**       | Track electronics prices daily and catch the best deals before they disappear          |
| 🔎 **Market Research**        | Analyze product availability, pricing trends, and brand distribution across categories |
| 📣 **E-commerce Competitors** | Monitor x-kom's pricing strategy and product catalog to stay competitive               |
| 🤝 **Affiliate Marketers**    | Build product comparison databases with up-to-date prices and ratings                  |
| 🏷️ **Deal Hunters**           | Automatically find discounted products and track price drops                           |
| 📈 **Data Analysts**          | Export structured electronics data for dashboards, reports, and trend analysis         |

### ✨ Features

- 🔍 **Keyword Search** — Search for any product by name, brand, or category
- 🏷️ **Category Browsing** — Scrape entire product categories from x-kom.pl
- 💰 **Price Tracking** — Captures current price, old price (if discounted), and currency
- ⭐ **Ratings & Reviews** — Extracts product ratings and review counts
- 📋 **Full Specifications** — Optionally visit product pages for detailed specs, descriptions, and gallery images
- 🏢 **Brand Detection** — Automatically identifies product brand from listing or specs
- 🔗 **Smart Pagination** — Follows all result pages to collect complete datasets
- 🚫 **Deduplication** — Never scrapes the same product twice, even across multiple searches
- ⚡ **Fast & Scalable** — Processes hundreds of products per run with optimized resource usage
- 📤 **Export Anywhere** — Download results as JSON, CSV, Excel, or push to Google Sheets, Zapier, Make, or your CRM

### 🎛️ Filters & Options

| Option                         | What It Does                                                                                              |
| ------------------------------ | --------------------------------------------------------------------------------------------------------- |
| 🔍 **Search Queries**          | Enter one or more keywords to search for (e.g., "laptop gaming", "smartwatch")                            |
| 📋 **Start URLs**              | Optionally provide specific x-kom.pl URLs to scrape instead of searching                                  |
| 🔢 **Max Products**            | Control how many products to extract per run (0 = get everything)                                         |
| 📊 **Include Product Details** | Enable to visit each product page for full specs, descriptions, and all images (slower but way more data) |
| 🌐 **Proxy Configuration**     | Defaults to Apify residential proxies (Poland); x-kom blocks datacenter IPs                               |

### 📦 What You Get (Output Fields)

Every product includes:

#### Product Info

| Field     | Example                                                                                                        |
| --------- | -------------------------------------------------------------------------------------------------------------- |
| productId | `824731`                                                                                                       |
| name      | `Laptop ASUS TUF Gaming A15 R7-7735HS/16GB/512/Win11 RTX 4060`                                                 |
| brand     | `ASUS`                                                                                                         |
| url       | `https://www.x-kom.pl/p/824731-notebook-laptop-156-asus-tuf-gaming-a15-r7-7735hs-16gb-512-win11-rtx-4060.html` |

#### Pricing

| Field             | Example           |
| ----------------- | ----------------- |
| price             | `4999`            |
| oldPrice          | `6299`            |
| lowestPrice30Days | `5999`            |
| currency          | `PLN`             |
| availability      | `Available`       |
| label             | `Ostatnie sztuki` |

`lowestPrice30Days` is the lowest price from the 30 days before a discount (Omnibus directive); it is set only for discounted products.

#### Ratings

| Field       | Example |
| ----------- | ------- |
| rating      | `4.8`   |
| reviewCount | `127`   |

#### Category

| Field    | Example                                                             |
| -------- | ------------------------------------------------------------------- |
| category | `Podzespoły komputerowe > Karty graficzne > Karta graficzna NVIDIA` |

#### Media

| Field  | Example                                                                                              |
| ------ | ---------------------------------------------------------------------------------------------------- |
| image  | `https://cdn.x-kom.pl/i/setup/images/prod/big/product-large,,2023/7/pr_2023_7_18_8_22_17_554_00.jpg` |
| images | `["https://cdn.x-kom.pl/...", "https://cdn.x-kom.pl/..."]`                                           |

#### Details (when Include Product Details is enabled)

| Field          | Example                                                      |
| -------------- | ------------------------------------------------------------ |
| producerCode   | `83DX00F1PB`                                                 |
| freeShipping   | `true`                                                       |
| deliveryText   | `Najwcześniej u Ciebie: we wtorek`                           |
| features       | `["Procesor: AMD Ryzen 7 7445HS", "Pamięć RAM: 16 GB", ...]` |
| specifications | `[{"name": "Procesor", "value": "AMD Ryzen 7 7735HS"}, ...]` |
| description    | `Laptop ASUS TUF Gaming A15 to wydajna maszyna do gier...`   |
| scrapedAt      | `2026-03-25T12:00:00.000Z`                                   |

### 📊 Example Output

```json
{
    "productId": "824731",
    "name": "Laptop ASUS TUF Gaming A15 R7-7735HS/16GB/512/Win11 RTX 4060",
    "brand": "ASUS",
    "price": 4299,
    "oldPrice": 4999,
    "currency": "PLN",
    "availability": "Available",
    "rating": 4.8,
    "reviewCount": 127,
    "category": "Laptopy i komputery > Laptop/Notebook/Ultrabook > Laptop 15\" - 16\"",
    "image": "https://cdn.x-kom.pl/i/setup/images/prod/big/product-large,,2023/7/pr_2023_7_18_8_22_17_554_00.jpg",
    "images": [
        "https://cdn.x-kom.pl/i/setup/images/prod/big/product-large,,2023/7/pr_2023_7_18_8_22_17_554_00.jpg",
        "https://cdn.x-kom.pl/i/setup/images/prod/big/product-large,,2023/7/pr_2023_7_18_8_22_17_554_01.jpg"
    ],
    "specifications": [
        { "name": "Procesor", "value": "AMD Ryzen 7 7735HS" },
        { "name": "Pamięć RAM", "value": "16 GB DDR5" },
        { "name": "Dysk", "value": "512 GB SSD M.2 PCIe" },
        { "name": "Karta graficzna", "value": "NVIDIA GeForce RTX 4060" },
        { "name": "Ekran", "value": "15.6\" IPS 144Hz 1920x1080" },
        { "name": "System operacyjny", "value": "Windows 11 Home" }
    ],
    "description": "Laptop ASUS TUF Gaming A15 to wydajna maszyna do gier z procesorem AMD Ryzen 7 i kartą graficzną RTX 4060.",
    "url": "https://www.x-kom.pl/p/824731-notebook-laptop-156-asus-tuf-gaming-a15-r7-7735hs-16gb-512-win11-rtx-4060.html",
    "scrapedAt": "2026-03-25T12:00:00.000Z"
}
```

### 📋 Dataset Views

The Apify Console gives you **3 ready-made table views** to quickly browse your results:

| View                | What It Shows                                                                           |
| ------------------- | --------------------------------------------------------------------------------------- |
| 📊 **Overview**     | Product name, price, brand, rating, URL, and thumbnail                                  |
| 💰 **Pricing**      | Product name, current price, old price, 30-day lowest price, availability, and label    |
| 📋 **Full Details** | Every single field — the complete dataset including specs, descriptions, and all images |

### ❓ FAQ

**🤔 What kind of products can I scrape from x-kom.pl?**
Everything! Laptops, desktops, monitors, GPUs, smartphones, smart home devices, peripherals — the scraper works with any product category on x-kom.pl.

**🤔 What's the difference between basic and detailed scraping?**
Basic mode (default) extracts data from listing pages — name, brand, price, old price, rating, category, availability and image. Enable "Include Product Details" to visit each product page and get full specifications, descriptions, all gallery images, and category breadcrumbs.

**🤔 How many products can I scrape in one run?**
There's no hard limit. You can scrape dozens or thousands of products. Use the "Max Products" setting to control the volume per run.

**🤔 Can I scrape specific product pages directly?**
Yes! Just paste the product URLs into the "Start URLs" field. The scraper will automatically detect them as product pages and extract full details.

**🤔 Can I export the data?**
Yes — JSON, CSV, Excel, XML, HTML, RSS. You can also push data directly to Google Sheets, Zapier, Make, or any webhook/API endpoint.

**🤔 How often should I run this?**
For fresh data, run daily or weekly. You can schedule automatic runs on Apify with just a few clicks.

**🤔 Does it work with proxies?**
Yes, and it needs them. x-kom.pl is behind Cloudflare, which blocks datacenter IPs, so the default is Apify residential proxies from Poland. The scraper reads the data with plain HTTP requests instead of a browser, so a page of 30 products is only about 220 kB of residential traffic. If every request is blocked, the run fails with a clear message instead of finishing with an empty dataset.

### 🛠️ Need Custom Filters or Features?

**I'm happy to customize this scraper for your specific needs!** 🤝

Whether you need:

- 🎯 Additional filters (price range, brand, specific categories, availability status)
- 📊 Extra data fields or custom output formats
- 🔄 Integration with your CRM, Google Sheets, or database
- ⏰ Scheduled scraping with automatic deduplication
- 🌐 Scraping from other electronics stores alongside x-kom.pl (Media Expert, Morele.net, Komputronik)

👉 **Don't hesitate to reach out via private message** — I respond quickly and I'm always open to building exactly what you need. No request is too small or too specific!

### ⚖️ Legal & Ethical Use

This scraper collects **only publicly available information** from x-kom.pl. It does not access private data, bypass authentication, or interfere with the store's normal operation. Please use the data responsibly and in compliance with applicable laws and platform terms of service.

# Actor input Schema

## `searchQueries` (type: `array`):

List of search queries to scrape products for (e.g., 'laptop', 'karta graficzna', 'monitor')

## `startUrls` (type: `array`):

Custom URLs to scrape (category pages, search results, product pages). If provided, searchQueries will be ignored.

## `maxProducts` (type: `integer`):

Maximum number of products to scrape in total, across all queries and URLs (0 = unlimited)

## `maxConcurrency` (type: `integer`):

Maximum number of parallel browser instances

## `includeProductDetails` (type: `boolean`):

If enabled, scraper will visit each product page to extract detailed specifications, full description, and gallery images (slower but more data)

## `proxyConfiguration` (type: `object`):

Proxy settings. x-kom.pl is behind Cloudflare, which blocks datacenter IPs (HTTP 403), so keep the RESIDENTIAL group with country PL. The scraper uses plain HTTP requests (no browser), so residential traffic stays small (about 220 kB per page of 30 products).

## Actor input object example

```json
{
  "searchQueries": [
    "laptop"
  ],
  "startUrls": [],
  "maxProducts": 60,
  "maxConcurrency": 5,
  "includeProductDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PL"
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `pricing` (type: `string`):

No description

## `fullDetails` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "laptop"
    ],
    "startUrls": [],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "PL"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("trev0n/x-kom-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQueries": ["laptop"],
    "startUrls": [],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "PL",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("trev0n/x-kom-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "laptop"
  ],
  "startUrls": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PL"
  }
}' |
apify call trev0n/x-kom-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,trev0n/x-kom-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/QJSHrdmNNjaZ5dEW5/builds/66t2clm5K0HGhSZnV/openapi.json
