# Compari.ro Scraper - Romania Price Comparison (`studio-amba/compari-ro-scraper`) Actor

Scrape product prices and merchant offers from Compari.ro, Romania's leading price comparison engine. Compare prices across hundreds of Romanian online stores. Extract product names, price ranges, merchant lists, ratings, reviews, and more. No login required.

- **URL**: https://apify.com/studio-amba/compari-ro-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 result 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Compari.ro Scraper

Scrape product prices and merchant offers from [Compari.ro](https://www.compari.ro), Romania's leading price comparison engine with millions of products across hundreds of online stores.

Extract product names, price ranges, merchant offers, ratings, reviews, images, and more. No login or cookies required.

### How to scrape Compari.ro data

1. Go to the [Compari.ro Scraper](https://apify.com/studio-amba/compari-ro-scraper) on Apify Store.
2. Click **Try for free** to open the actor in Apify Console.
3. Enter your search query (e.g., "telefon", "laptop", "Samsung Galaxy") or paste a Compari.ro category URL.
4. Set the maximum number of results you want.
5. Optionally enable **Include Merchant Offers** to get full price comparison data from all stores.
6. Click **Start** and wait for the run to finish.
7. Download your data in JSON, CSV, Excel, or connect via API.

### Input parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `searchQuery` | string | Search term for products (default: "telefon") |
| `categoryUrl` | string | Direct Compari.ro category URL to scrape |
| `maxResults` | integer | Maximum products to return (default: 100) |
| `includeOffers` | boolean | Extract individual merchant offers per product (default: false) |
| `proxyConfiguration` | object | Proxy settings (residential Romanian IP recommended) |

### Output data

Each product in the output dataset contains:

| Field | Type | Description |
|-------|------|-------------|
| `productName` | string | Full product name |
| `lowestPrice` | number | Lowest price across all merchants |
| `highestPrice` | number | Highest price across all merchants |
| `currency` | string | Currency code (RON) |
| `numberOfOffers` | integer | Number of stores offering this product |
| `category` | string | Product category |
| `brand` | string | Brand or manufacturer |
| `rating` | number | Average user rating |
| `reviewCount` | integer | Number of user reviews |
| `imageUrl` | string | Product image URL |
| `url` | string | Full Compari.ro product page URL |
| `merchants` | array | Individual merchant offers (when enabled) |
| `scrapedAt` | string | ISO 8601 timestamp |

### Example output

```json
{
    "productName": "Samsung Galaxy S24 Ultra 256GB",
    "lowestPrice": 4599.99,
    "highestPrice": 5299.00,
    "currency": "RON",
    "numberOfOffers": 12,
    "category": "Telefoane mobile",
    "brand": "Samsung",
    "rating": 4.7,
    "reviewCount": 89,
    "imageUrl": "https://www.compari.ro/images/products/samsung-galaxy-s24-ultra.jpg",
    "url": "https://www.compari.ro/telefoane-mobile-c3277/samsung/galaxy-s24-ultra-256gb-p123456789/",
    "merchants": [
        {
            "merchantName": "eMAG",
            "price": 4599.99,
            "merchantUrl": "https://www.emag.ro/..."
        },
        {
            "merchantName": "Altex",
            "price": 4799.00,
            "merchantUrl": "https://www.altex.ro/..."
        }
    ],
    "scrapedAt": "2026-06-09T12:00:00.000Z"
}
```

### Use cases

- **Price monitoring** — Track product prices across Romanian online stores over time.
- **Competitor analysis** — Compare your prices against hundreds of Romanian retailers.
- **Market research** — Analyze product availability, pricing trends, and brand presence in Romania.
- **Deal finding** — Identify the lowest prices for specific products across all stores.
- **E-commerce intelligence** — Monitor merchant activity, new product launches, and pricing strategies.

### Supported categories

Compari.ro covers all major product categories including:

- Electronics (phones, laptops, TVs, tablets)
- Home appliances (washing machines, fridges, ovens)
- IT & peripherals (monitors, printers, networking)
- Fashion (clothing, shoes, accessories)
- Home & garden (furniture, tools, decor)
- Beauty & health (cosmetics, personal care)
- Sports & outdoors
- Auto parts & accessories
- Books, toys, and more

### Tips for best results

- **Use Romanian search terms** for best results (e.g., "telefon mobil" instead of "mobile phone").
- **Category URLs** are more reliable than search queries for large-scale scraping.
- **Residential proxies** with Romanian IP addresses are recommended for consistent access.
- **Enable merchant offers** only when you need individual store prices — it's slower but gives complete comparison data.
- **Start with a small maxResults** (10-20) to test your query before scaling up.

### How scraping Compari.ro works

This actor uses Playwright to render Compari.ro pages in a headless browser. It extracts data through multiple strategies:

1. **JSON-LD structured data** — Preferred method, extracts clean structured product data.
2. **DOM extraction** — Parses product cards from the HTML when structured data isn't available.
3. **Embedded JavaScript data** — Extracts product data from inline scripts as a fallback.

The actor handles pagination automatically and can navigate both search results and category listings.

### Proxy configuration

Compari.ro is a Romanian website that may block non-Romanian traffic. For best results:

- Use Apify residential proxies with Romanian IP (`apifyProxyCountry: "RO"`).
- The default proxy configuration is pre-filled with optimal settings.
- Datacenter proxies may work for small-scale scraping but are less reliable.

### Integrations

Connect this actor to your workflow:

- Export to **Google Sheets**, **Airtable**, or **Snowflake**
- Send results to **Slack**, **Email**, or **Webhooks**
- Schedule runs via **Apify Scheduler** for regular price monitoring
- Access data via **Apify API** for programmatic use
- Use with **Zapier**, **Make**, or **n8n** for automation

### Legal notice

This actor is designed for legitimate data collection purposes such as price comparison, market research, and competitive analysis. Always comply with applicable laws and the website's terms of service when using scraped data. No login or authentication is required — the actor only accesses publicly available information.

# Actor input Schema

## `searchQuery` (type: `string`):

Product keyword in Romanian (e.g. 'telefon', 'laptop', 'televizor'). Mapped to the matching Compari.ro category listing. Leave empty when using a category URL.

## `categoryUrl` (type: `string`):

Full Compari.ro category URL (e.g. 'https://www.compari.ro/telefoane-mobile-c3277/'). Overrides the search query when provided.

## `maxResults` (type: `integer`):

Maximum number of products to scrape.

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

Proxy settings. Romanian residential proxies are recommended as a fallback.

## Actor input object example

```json
{
  "searchQuery": "telefon",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "RO"
  }
}
```

# 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 = {
    "searchQuery": "telefon",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "RO"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/compari-ro-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 = {
    "searchQuery": "telefon",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "RO",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/compari-ro-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 '{
  "searchQuery": "telefon",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "RO"
  }
}' |
apify call studio-amba/compari-ro-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio-amba/compari-ro-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/JixW7UidScLaH9u90/builds/jSwDjnk88K4MTA93K/openapi.json
