# X-Com Shop Electronics Price Scraper (`vexaloom-labs/x-com-shop-electronics-price-scraper`) Actor

Pull laptop, PC and electronics listings from XCOM-SHOP (xcom-shop.ru): RUB prices, stock status, brand, images, ratings and customer reviews by search, category or product URL.

- **URL**: https://apify.com/vexaloom-labs/x-com-shop-electronics-price-scraper.md
- **Developed by:** [vexaloom-labs](https://apify.com/vexaloom-labs) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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-Com Shop Electronics Price Scraper

Scrape [XCOM-SHOP](https://www.xcom-shop.ru) (xcom-shop.ru) — a Russian electronics and computer retailer selling laptops, PCs, components, networking gear, office equipment, security systems and more. Search products, browse catalog categories (including server-side filter URLs), fetch complete product details, or collect customer reviews. Prices are RUB. No login, no cookies, no API key, no paid proxy.

### What this actor does

- **Search** — one or more free-text queries using the same search engine as the site; up to 100 relevance-ranked products per query, de-duplicated across queries
- **Browse categories** — top-level sections, exact sub-categories, or filtered listing URLs (`/filter/price=30000-40000/`, `/filter/podsvetka-klavish=est/`), with full pagination and sorting
- **Product details** — full specs, description, price, stock, warranty, vendor code, breadcrumb, images and reviews for any product URL
- **Reviews** — dedicated review mode: author, rating, pros/cons, comment, photos, videos, replies, helpful votes and source
- **Filters** — price range, minimum rating, brand, in-stock only, sort order
- **Review depth** — `maxReviewsPerProduct` fetches past the 10 reviews rendered on the page via the site's own cookieless review-pagination endpoint
- Full-size product images (the site's detail thumbnails are dead links; the actor returns the original CDN file)
- Empty fields are omitted from every record — no `null`, no placeholders

### Output per product

**Search & category listing records:**

- `productId`, `name`, `brand`, `productType`
- `price`, `currency` (`RUB`), `available`, `stockQuantity`, `stockText`
- `productUrl`, `sourceUrl`, `thumbnailUrl`, `imageUrl`, `imageUrls[]`
- `categoryName`, `categoryUrl`, `categoryId`
- `rating`, `reviewsCount`
- `warranty`, `warrantyMonths`
- `shortDescription` — key spec bullets
- `oldPrice`, `discountPercent`, `loyaltyPoints`
- `deliveryEstimate`, `pickupEstimate`, `carrierTransferEstimate`
- `relevanceScore` (search) / `listPosition` (category)
- `recordType`, `scrapedAt`

**Product detail records** (mode=`productDetails`) additionally include:

- `availability` — raw stock status
- `description` — full marketing description
- `vendorCode` — manufacturer article/MPN
- `images[]` — full-resolution gallery
- `categoryPath[]` — full breadcrumb trail
- `ratingValue`, `ratingCount`, `reviewCount`, `ratingDistribution` (`{"1":0,"2":0,"3":5,"4":120,"5":896}`)
- `reviews[]` — up to `maxReviewsPerProduct`, each with:
  - `reviewId`, `author`, `rating`, `datePublished`, `headline`
  - `body`, `pros`, `cons`, `comment`, `recommended`
  - `helpfulVotes`, `unhelpfulVotes`, `photos[]`, `videos[]`, `replies[]`, `source`
- `specifications[]` — grouped spec table: `[{"group":"Экран","specs":{"Диагональ экрана":"15.6 \""}}]`
- `deliveryEstimate`, `pickupEstimate`, `carrierTransferEstimate`
- `recordType: "productDetail"`

**Review records** (mode=`reviews`) contain the review fields above plus product context:
`productId`, `productName`, `productBrand`, `productUrl`, `productPrice`, `productCurrency`,
`productRating`, `recordType: "review"`.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search` / `byCategory` / `productDetails` / `reviews` |
| `searchQueries` | array | `["ноутбук"]` | Queries for mode=search |
| `category` | string (select) | – | Top-level catalog section for mode=byCategory |
| `categoryUrls` | array | – | Sub-category slugs/URLs or filter URLs; overrides `category` |
| `productUrls` | array | – | Product URLs for productDetails / reviews |
| `sortBy` | string (select) | `popularity` | `popularity` / `priceAsc` / `priceDesc` / `name` / `availability` |
| `minPrice` / `maxPrice` | int | – | Price range filter in RUB |
| `minRating` | number | – | Drop products below this 0-5 rating (unrated products are kept) |
| `brand` | string | – | Case-insensitive brand filter |
| `inStockOnly` | bool | `false` | Only emit in-stock products |
| `includeImages` | bool | `true` | Include product image URLs |
| `maxReviewsPerProduct` | int | `10` | Reviews per product; 0 = inline page reviews only |
| `maxItems` | int | `20` | Hard cap on emitted records (1–5000) |

#### Examples

Browse laptop listings sorted by price, in stock only:

```json
{
  "mode": "byCategory",
  "categoryUrls": ["kompyutery_i_noytbyki/noytbyki"],
  "sortBy": "priceAsc",
  "inStockOnly": true,
  "maxItems": 50
}
```

Browse a server-side filtered listing (laptops priced 30,000–40,000 RUB):

```json
{
  "mode": "byCategory",
  "categoryUrls": ["kompyutery_i_noytbyki/noytbyki/filter/price=30000-40000/"],
  "maxItems": 100
}
```

Search several queries with a brand and price ceiling:

```json
{
  "mode": "search",
  "searchQueries": ["ноутбук", "SSD Samsung"],
  "brand": "Lenovo",
  "maxPrice": 100000,
  "minRating": 4.5,
  "maxItems": 50
}
```

Fetch full details including 50 reviews per product:

```json
{
  "mode": "productDetails",
  "productUrls": [
    "https://www.xcom-shop.ru/filum_fl-kb25-bk_1092759.html"
  ],
  "maxReviewsPerProduct": 50
}
```

Collect 200 reviews per product without the full detail payload:

```json
{
  "mode": "reviews",
  "productUrls": [
    "https://www.xcom-shop.ru/apple_iphone_15_128gb_1052132.html"
  ],
  "maxReviewsPerProduct": 200,
  "maxItems": 200
}
```

### Use cases

- **Price monitoring** — track price and stock changes for products or whole categories
- **Competitor research** — compare brand assortment, pricing, warranty terms and stock
- **Review analytics** — collect ratings, pros/cons and rating distributions for product research
- **Catalog enrichment** — pull specs, descriptions and full-size images for a comparison dataset

### Limits

- **Search returns at most 100 products per query** — an upstream cap of XCOM-SHOP's search API (page/offset parameters are ignored). Use `byCategory` for deeper coverage, and split by brand or price range when needed. The actor says so in the run status when the cap is hit.
- **Reviews** — `maxReviewsPerProduct` caps collection at 1,000 per product; `reviewCount` always reports the site's true total. Each extra page is one request to the site's review endpoint.
- **Category pagination** — safety cap of 200 pages per listing path (the site's largest section is well below this).
- **Currency** — always RUB, matching the site's default display.
- **Region** — the actor uses the site's default (Moscow) region; regional selection changes delivery estimates only, not prices.

### FAQ

**Do I need a proxy or login?** No. Full product and review data is served without authentication, and the actor talks to the site directly.

**Why do some search results look loosely related?** XCOM-SHOP's search falls back to popular/related suggestions when a query has no close match, just like the site's own search box. Every returned item is a real catalog product.

**How do I get more than 100 search results?** Use `mode=byCategory` on the relevant section, optionally with a filtered category URL, or run several narrower `searchQueries`.

**Why does a product have `reviewCount: 1021` but fewer `reviews` entries?** The site reports the total review count, while `maxReviewsPerProduct` controls how many are fetched (default 10, matching the page). Raise it to collect more.

**Why do top-level categories sometimes take longer?** Some top-level sections are hub pages with no products of their own; the actor detects that and crawls their sub-categories automatically.

# Actor input Schema

## `mode` (type: `string`):

What to fetch: product search, a catalog category, full product details, or product reviews.

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

One or more free-text queries, e.g. `ноутбук`, `SSD Samsung`, `принтер HP`. Each query returns up to 100 results, collected in order and de-duplicated.

## `category` (type: `string`):

Browse a whole catalog section. Leave as "(none)" and use "Category URLs / slugs" below for specific sub-categories or filtered listings.

## `categoryUrls` (type: `array`):

One or more exact sub-category paths, slugs or full URLs, e.g. `kompyutery_i_noytbyki/noytbyki` or `https://www.xcom-shop.ru/catalog/kompyutery_i_noytbyki/noytbyki/`. Server-side filter paths work too, e.g. `.../filter/price=30000-40000/`. Overrides "Category" above when set.

## `productUrls` (type: `array`):

XCOM-SHOP product page URLs, e.g. `https://www.xcom-shop.ru/huawei_mitchellg-w5611d_1106075.html`. Required for productDetails and reviews modes.

## `sortBy` (type: `string`):

Sort order for category listings. Ignored in other modes.

## `minPrice` (type: `integer`):

Drop products cheaper than this price, in Russian rubles.

## `maxPrice` (type: `integer`):

Drop products more expensive than this price, in Russian rubles.

## `minRating` (type: `number`):

Drop products rated below this value on the 0-5 scale. Products without a rating are kept.

## `brand` (type: `string`):

Only keep products whose brand matches this text (case-insensitive), e.g. `Huawei`.

## `inStockOnly` (type: `boolean`):

Only emit products currently marked as available/in stock.

## `includeImages` (type: `boolean`):

Add product image URLs (full-size plus a thumbnail on listing records). Turn off for a leaner dataset.

## `maxReviewsPerProduct` (type: `integer`):

Cap on reviews returned for each product in productDetails and reviews modes. 0 = keep only the reviews embedded in the product page (usually 10).

## `maxItems` (type: `integer`):

Hard cap on emitted records (products in search/category/detail modes, review rows in reviews mode).

## Actor input object example

```json
{
  "mode": "search",
  "searchQueries": [
    "ноутбук"
  ],
  "category": "kompyutery_i_noytbyki",
  "categoryUrls": [],
  "productUrls": [],
  "sortBy": "popularity",
  "inStockOnly": false,
  "includeImages": true,
  "maxReviewsPerProduct": 10,
  "maxItems": 3
}
```

# Actor output Schema

## `products` (type: `string`):

Dataset containing scraped XCOM-SHOP products, product details and review rows.

# 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 = {
    "mode": "search",
    "searchQueries": [
        "ноутбук"
    ],
    "category": "kompyutery_i_noytbyki",
    "categoryUrls": [],
    "productUrls": [],
    "sortBy": "popularity",
    "inStockOnly": false,
    "includeImages": true,
    "maxReviewsPerProduct": 10,
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("vexaloom-labs/x-com-shop-electronics-price-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 = {
    "mode": "search",
    "searchQueries": ["ноутбук"],
    "category": "kompyutery_i_noytbyki",
    "categoryUrls": [],
    "productUrls": [],
    "sortBy": "popularity",
    "inStockOnly": False,
    "includeImages": True,
    "maxReviewsPerProduct": 10,
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("vexaloom-labs/x-com-shop-electronics-price-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 '{
  "mode": "search",
  "searchQueries": [
    "ноутбук"
  ],
  "category": "kompyutery_i_noytbyki",
  "categoryUrls": [],
  "productUrls": [],
  "sortBy": "popularity",
  "inStockOnly": false,
  "includeImages": true,
  "maxReviewsPerProduct": 10,
  "maxItems": 3
}' |
apify call vexaloom-labs/x-com-shop-electronics-price-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vexaloom-labs/x-com-shop-electronics-price-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/akf4Y1gbJ0kRKP2P2/builds/YQ7S2KqmejkMLVkCL/openapi.json
