# Onliner Catalog Scraper: Belarus Prices, Shops & Reviews (`discreet_watermelon/onliner-catalog-scraper`) Actor

Export products from catalog.onliner.by: search or category results, min/max prices in BYN, shop offers, stock and customer reviews.

- **URL**: https://apify.com/discreet_watermelon/onliner-catalog-scraper.md
- **Developed by:** [Ekaterina Vlasova](https://apify.com/discreet_watermelon) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 product scrapeds

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

## Onliner Catalog Scraper: Belarus Prices, Shops & Reviews

Export products from [catalog.onliner.by](https://catalog.onliner.by), the main price-comparison catalog in Belarus. Give the Actor a search query, a category link or a product link and get a table of titles, brands, min/max prices in BYN, the number of shop offers, ratings and (optionally) every shop's price or customer reviews.

Use it for price monitoring, assortment research or a scheduled snapshot of a niche. It reads the same public catalog endpoints a shopper's browser uses. It does not log in, and it does not collect private account data.

### What you get

- Search the catalog or walk a category (phones, laptops, appliances and the rest of the Onliner tree).
- Open a single product URL when you already know the item.
- Min and max price in BYN, how many shops list the product, rating and review count.
- Optional shop offers: shop name, city, rating, price, stock, warranty, pickup and courier notes.
- Optional customer reviews: stars, text, pros, cons and date.

### How to use

1. Enter one or more search queries (`iphone`, `холодильник`) or paste Onliner URLs.
2. Set a maximum number of products (start with 50 while you test).
3. Turn on shop offers or reviews only if you need them; they add extra requests.
4. Run the Actor and download JSON, CSV or Excel, or read the dataset through the Apify API.

#### Input example

```json
{
  "searchQueries": ["iphone"],
  "startUrls": [{ "url": "https://catalog.onliner.by/mobile" }],
  "maxItems": 50,
  "includeOffers": true,
  "maxOffersPerProduct": 10,
  "includeReviews": false,
  "requestDelayMs": 300
}
```

Supported URLs:

- Search: `https://catalog.onliner.by/search?q=iphone`
- Category: `https://catalog.onliner.by/mobile`
- Product: `https://catalog.onliner.by/mobile/apple/ip18pro256bu`

#### Output example

```json
{
  "id": 5356720,
  "key": "ip18pro256bu",
  "title": "Apple iPhone 18 Pro 256GB (бургунди)",
  "brand": "Apple",
  "category": "Мобильные телефоны",
  "url": "https://catalog.onliner.by/mobile/apple/ip18pro256bu",
  "priceMin": 4597.66,
  "priceMax": 6894.50,
  "currency": "BYN",
  "offersCount": 37,
  "rating": 5,
  "reviewsCount": 2,
  "inStock": true,
  "offers": [
    {
      "shopId": 936,
      "shopName": "ТехноМир",
      "shopCity": "Минск",
      "shopRating": 4.8,
      "price": 4799,
      "currency": "BYN",
      "stockStatus": "in_stock"
    }
  ]
}
```

### Pricing

This Actor uses pay-per-event pricing. You pay only for the rows you receive. Apify platform usage is included in the event price. There is no start fee.

| Event | When it is charged | Price |
| --- | --- | --- |
| Product row (`product-scraped`) | Once per product written to the dataset | $2.50 per 1,000 ($0.0025 each) |
| Shop offers (`product-offers`) | Once per product that was enriched with shop offers | $2.00 per 1,000 products |
| Review (`review-scraped`) | Once per review attached to a product | $1.00 per 1,000 reviews |

Examples: 1,000 search rows cost $2.50. The same 1,000 rows with shop offers cost $4.50. 200 products plus 10 reviews each cost $2.50. Empty searches, failed products and duplicates are not charged. Set a maximum number of products, or a max total charge on the run, to cap spending.

Search is capped by Onliner at 1,000 products per query (100 pages of 10). Category listings paginate further (30 products per page).

### Local development

```bash
npm install
## small live run against the public catalog
echo '{"searchQueries":["iphone"],"maxItems":5,"includeOffers":true,"maxReviewsPerProduct":2,"includeReviews":true}' > storage/key_value_stores/default/INPUT.json
npm run test:local
```

Results are written to `storage/datasets/default`.

### Limits and fair use

- Only public catalog data is collected. Shop legal addresses, emails and phone numbers are not stored.
- Requests are spaced (`requestDelayMs`, 300 ms by default). Keep this on for scheduled jobs.
- A proxy is optional. The catalog API was reachable without one during development; enable Apify Proxy only if blocks appear.
- Onliner may change endpoints or add protection at any time. Open an issue if a run starts failing.

### Changelog

- 0.1.1 — Pay-per-event charging for products, shop offers and reviews, with run spending limits honored.
- 0.1.0 — First version: search, category and product URLs, optional offers and reviews.

# Actor input Schema

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

Words you would type in the Onliner catalog search box, for example iphone or холодильник.

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

Category pages (https://catalog.onliner.by/mobile), search pages (https://catalog.onliner.by/search?q=iphone) or product pages (https://catalog.onliner.by/mobile/apple/ip18pro256bu).

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

Stop after this many products across all queries and URLs. Use 0 for no limit.

## `includeOffers` (type: `boolean`):

For each product, fetch every shop offer with price, stock, warranty and shop rating.

## `maxOffersPerProduct` (type: `integer`):

Keep the cheapest N offers. Use 0 to keep all.

## `includeReviews` (type: `boolean`):

Fetch customer reviews (rating, text, pros, cons, date).

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

Newest reviews to keep for each product.

## `requestDelayMs` (type: `integer`):

Pause between catalog requests to avoid overloading the site.

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

Optional. The public catalog API currently responds without a proxy from many networks. Enable a proxy only if you start seeing blocks.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone"
  ],
  "startUrls": [],
  "maxItems": 50,
  "includeOffers": false,
  "maxOffersPerProduct": 0,
  "includeReviews": false,
  "maxReviewsPerProduct": 10,
  "requestDelayMs": 300,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `results` (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 = {
    "startUrls": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("discreet_watermelon/onliner-catalog-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 = { "startUrls": [] }

# Run the Actor and wait for it to finish
run = client.actor("discreet_watermelon/onliner-catalog-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 '{
  "startUrls": []
}' |
apify call discreet_watermelon/onliner-catalog-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,discreet_watermelon/onliner-catalog-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/3u21dDMF6RtDvkK5v/builds/1LmZTIpdN86bezqjc/openapi.json
