# eMAG Products & Seller Offers Scraper (`automation-lab/emag-scraper`) Actor

Search eMAG Romania and extract products, prices, stock, ratings, specifications, categories, and visible marketplace seller offers.

- **URL**: https://apify.com/automation-lab/emag-scraper.md
- **Developed by:** [Stas Persiianenko](https://apify.com/automation-lab) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.07 / 1,000 detailed product extracteds

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

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

## eMAG Products & Seller Offers Scraper

Extract **eMAG products** from Romania's public marketplace catalog for price monitoring, assortment research, seller comparison, and product enrichment.

The Actor accepts search terms plus public eMAG.ro search, category, and product URLs. It returns structured product titles, canonical URLs, prices, availability, ratings, categories, specifications, primary sellers, and visible marketplace seller offers.

### What can eMAG Products & Seller Offers Scraper do?

- Search the public eMAG Romania catalog by product keyword.
- Crawl public eMAG search and category URLs with bounded pagination.
- Enrich each accepted result from its product page.
- Extract current product and seller-offer prices in RON.
- Capture stock or delivery signals shown on the page.
- Return ratings, review counts, category paths, and specification maps.
- Deduplicate repeated and sponsored product cards.
- Stop exactly at your `maxItems` limit.
- Produce stable JSON records in the default Apify dataset.

The Actor uses a sticky Romanian residential browser session because anonymous HTTP and datacenter routes commonly return an error or challenge instead of catalog data. Non-document browser resources are blocked to control transfer cost.

### Who is it for?

**Marketplace analysts** can compare products, prices, stock signals, and sellers across repeated catalog snapshots.

**Retail and pricing teams** can export eMAG offers into spreadsheets, warehouses, or business-intelligence tools.

**Brand teams** can inspect category placement, product specifications, ratings, and visible marketplace sellers.

**Developers and data engineers** can integrate structured eMAG product records into monitoring pipelines through the Apify API, webhooks, Make, Zapier, or MCP.

### What eMAG product data is extracted?

| Field | Meaning |
| --- | --- |
| `productId` | Internal eMAG product identifier |
| `partNumberKey` | Public product key from the `/pd/` URL |
| `title` | Product title |
| `url` | Canonical product URL without tracking parameters |
| `imageUrl` | Main product image URL when available |
| `categoryId` | eMAG category identifier |
| `categoryName` | Most specific category name |
| `categoryPath` | Category breadcrumb array |
| `price` | Current displayed or primary-offer price |
| `currency` | `RON` for eMAG Romania prices |
| `availability` | Displayed stock or delivery signal |
| `rating` | Product rating on a five-point scale |
| `reviewCount` | Displayed review count |
| `sellerName` | Primary visible seller |
| `sellerOffers` | Visible seller IDs, names, ratings, prices, and availability |
| `specifications` | Product specification label/value map |
| `sourceUrl` | Input or resolved listing URL that produced the record |
| `scrapedAt` | UTC collection timestamp |

A field can be `null`, an empty array, or an empty object when eMAG does not display that value for a particular product.

### How to scrape eMAG products

1. Open the Actor in Apify Console.
2. Enter one or more search terms, such as `laptop` or `aspirator robot`.
3. Optionally add public eMAG.ro product, category, or search URLs.
4. Set the maximum number of unique products.
5. Click **Start**.
6. Open the default dataset to preview or export the detailed records.

A small first run of one to five products is recommended before scheduling larger recurring jobs.

### Input parameters

#### `searchTerms`

An array of product searches. Each term is sent to the public eMAG.ro search flow.

```json
{
  "searchTerms": ["laptop", "aspirator robot"]
}
```

#### `startUrls`

Optional public HTTPS URLs on `emag.ro`. Supported URL types are:

- product detail URLs containing `/pd/`;
- category listing URLs;
- search listing URLs.

```json
{
  "startUrls": [
    { "url": "https://www.emag.ro/laptopuri/c" }
  ]
}
```

Account pages, orders, checkout, and buyer data are not supported.

#### `maxItems`

Maximum unique product records across all inputs. The range is 1–1,000 and the default is 20.

#### `maxRequestRetries`

Retries transient browser, challenge, and unexpected-page failures from 0 to 5 times. The default is 5. Each retry retires the challenged proxy/browser session before continuing. Permanent invalid inputs are not retried.

### Input examples

Search for and enrich two laptop products:

```json
{
  "searchTerms": ["laptop"],
  "maxItems": 2
}
```

Extract one exact public product page with details and offers:

```json
{
  "startUrls": [
    {
      "url": "https://www.emag.ro/laptop-gaming-hp-omen-16-ap0060nn-cu-procesor-amd-ryzentm-ai-5-340-pana-la-4-80-ghz-16-0-2k-16gb-ddr5-ram-512gb-ssd-nvidiar-geforce-rtxtm-4050-6gb-gddr6-free-dos-shadow-black-c57czea/pd/DT9B543BM/"
    }
  ],
  "maxItems": 1
}
```

Create a repeatable offer-monitoring snapshot:

```json
{
  "searchTerms": ["aspirator robot"],
  "maxItems": 25
}
```

### Output example

A detailed product record looks like this:

```json
{
  "productId": "104209359",
  "partNumberKey": "DT9B543BM",
  "title": "Laptop Gaming HP OMEN 16-ap0060nn ...",
  "url": "https://www.emag.ro/laptop-gaming-hp-omen-16-ap0060nn-.../pd/DT9B543BM/",
  "imageUrl": "https://s13emagst.akamaized.net/products/example.png",
  "categoryId": "91",
  "categoryName": "Laptop / Notebook",
  "categoryPath": ["Laptop, Tablete & Telefoane", "Laptopuri si accesorii", "Laptop / Notebook"],
  "price": 5099.99,
  "currency": "RON",
  "availability": "Maine",
  "rating": 5,
  "reviewCount": 3,
  "sellerName": "eMAG",
  "sellerOffers": [
    {
      "offerId": "277771671",
      "sellerId": "1",
      "sellerName": "eMAG",
      "sellerRating": 4.8,
      "price": 5099.99,
      "currency": "RON",
      "availability": "Maine"
    }
  ],
  "specifications": {
    "Capacitate memorie": "16 GB",
    "Tip memorie": "DDR5"
  },
  "sourceUrl": "https://www.emag.ro/.../pd/DT9B543BM/",
  "scrapedAt": "2026-01-15T12:00:00.000Z"
}
```

Prices and availability are snapshots of what the public page displayed at collection time.

### How much does it cost to scrape eMAG products?

The Actor uses pay-per-event pricing:

- a one-time **Actor start** event per run;
- one **Detailed product extracted** event for each record saved to the default dataset. This event includes product-page specifications and visible seller offers.

The source package currently declares a $0.005 start price and this six-tier product curve:

| Apify tier | Price per detailed product |
| --- | ---: |
| Free | $0.0039765 |
| Bronze | $0.0034578 |
| Silver | $0.0026971 |
| Gold | $0.0020747 |
| Platinum | $0.0013831 |
| Diamond | $0.00096819 |

At the Bronze rate, one detailed product is about $0.00846 including the run start, while 100 detailed products are about $0.35078. Actual Apify plan tier, browser runtime, and residential transfer may affect your total platform bill. Specifications and seller offers inside a product record do not trigger separate events.

### Price and seller monitoring workflow

The Actor returns a current snapshot rather than storing price history or calculating changes itself.

For recurring monitoring:

1. Create an Apify Task with fixed searches or category URLs.
2. Schedule it daily, weekly, or at another suitable interval.
3. Export each dataset to your database or spreadsheet.
4. Match records by `productId` or `partNumberKey`.
5. Compare `price`, `availability`, `sellerName`, and `sellerOffers` with the prior snapshot.
6. Trigger your own alert when a meaningful change appears.

This preserves transparent source snapshots and lets you choose your own change rules.

### Export and integrations

The default dataset supports JSON, CSV, Excel, XML, and RSS exports through Apify.

Common workflows include:

- sending records to Google Sheets with an Apify integration;
- loading product snapshots into BigQuery, Snowflake, or PostgreSQL;
- using webhooks after successful scheduled runs;
- connecting the Actor to Make or Zapier;
- querying results from JavaScript or Python services;
- using MCP from an AI coding or research assistant.

### Run with the Apify API

Replace `APIFY_TOKEN` with your token.

#### cURL

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/automation-lab~emag-scraper/runs?token=APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms":["aspirator robot"],"maxItems":3}'
```

#### JavaScript

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation-lab/emag-scraper').call({
    searchTerms: ['aspirator robot'],
    maxItems: 3,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("APIFY_TOKEN")
run = client.actor("automation-lab/emag-scraper").call(run_input={
    "searchTerms": ["aspirator robot"],
    "maxItems": 3,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)
```

### Use with MCP and AI assistants

Add this Actor to Claude Code:

```bash
claude mcp add --transport http apify \
  "https://mcp.apify.com?tools=automation-lab/emag-scraper"
```

Claude Desktop, Cursor, and VS Code can use the same HTTP MCP server configuration:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=automation-lab/emag-scraper"
    }
  }
}
```

Example prompts:

- “Search eMAG Romania for three robot vacuum products and summarize their prices and sellers.”
- “Extract this public eMAG product URL and return its specification map.”
- “Collect laptop listing records from eMAG and format the results for spreadsheet import.”

### Performance and limits

Every accepted product is enriched from its public product page, so larger runs use more browser runtime and residential transfer.

The Actor runs conservatively with one browser context and one sticky Romanian residential session. This favors stable page delivery over aggressive concurrency.

The maximum supported run input is 1,000 products. Very large detailed runs can approach the Actor timeout if eMAG responds slowly.

The Actor supports public `emag.ro` pages only. It does not claim coverage for eMAG Bulgaria, Hungary, Poland, account-only pages, checkout, order data, or buyer data.

### Failure behavior and troubleshooting

A CAPTCHA, eMAG error page, missing expected product structure, or exhausted retry limit fails the run instead of returning a misleading empty success.

**The run says the input is invalid.** Provide at least one non-empty `searchTerms` value or a public HTTPS eMAG.ro URL. Other domains and non-HTTPS URLs are rejected.

**The run returns fewer records than requested.** The listing may contain fewer unique products, eMAG may redirect to a narrower category, or repeated sponsored cards may have been deduplicated.

**A product has no seller offers.** eMAG may show no alternative public offer for that item. The product record remains useful and `sellerOffers` can be empty.

**The run is slow.** Reduce `maxItems` for faster runs. Every saved product is enriched from its product page to preserve the advertised output contract.

### Responsible use and legality

This Actor accesses public catalog and product pages. You are responsible for ensuring that your collection and use comply with eMAG's terms, applicable laws, intellectual-property rights, and data-protection requirements.

Use reasonable limits and schedules. Do not use the Actor to access accounts, orders, checkout flows, buyer information, or other non-public data. Avoid republishing protected content without permission.

### Related Actors

This Actor is a standalone eMAG Romania marketplace tool. No other Automation Lab Actor currently provides the same source-specific product and seller-offer workflow.

Browse the [Automation Lab profile](https://apify.com/automation-lab) for other public marketplace, retail, and data-export Actors.

### FAQ

#### Does the Actor need my eMAG account?

No. It uses public catalog, listing, and product pages only.

#### Does it use a proxy?

Yes. It automatically uses an Apify residential proxy in Romania with a sticky browser session. There is no user-selectable direct mode because direct and datacenter requests have not produced reliable catalog data.

#### Are all marketplace offers guaranteed?

No. The Actor returns seller offers visible to the public Romanian session. Offers can vary by locality, availability, experiment, or time, and some products expose only one seller.

#### Can I monitor historical price changes?

Schedule repeat runs and compare datasets by `productId` or `partNumberKey`. The Actor emits snapshots; it does not maintain or alert on history itself.

#### Can I scrape only one product?

Yes. Pass one public product URL in `startUrls` and set `maxItems` to 1.

#### Can I scrape eMAG Bulgaria or Hungary?

Not in this release. The supported source is `emag.ro` with Romanian proxy geography and RON pricing.

# Actor input Schema

## `searchTerms` (type: `array`):

Product queries to search on eMAG.ro, such as laptop, telefon Samsung, or aspirator robot.

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

Optional public eMAG.ro product, category, or search URLs. Product URLs return one detailed record; listing URLs are paginated up to the item limit.

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

Maximum number of unique product records saved across all searches and URLs.

## `maxRequestRetries` (type: `integer`):

Retries for transient navigation, challenge, or page-shape failures. Retries keep the same sticky browser session.

## Actor input object example

```json
{
  "searchTerms": [
    "laptop"
  ],
  "startUrls": [],
  "maxItems": 20,
  "maxRequestRetries": 5
}
```

# Actor output Schema

## `dataset` (type: `string`):

Default dataset containing all scraped product records.

# 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 = {
    "searchTerms": [
        "laptop"
    ],
    "startUrls": [],
    "maxItems": 20,
    "maxRequestRetries": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation-lab/emag-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 = {
    "searchTerms": ["laptop"],
    "startUrls": [],
    "maxItems": 20,
    "maxRequestRetries": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("automation-lab/emag-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "searchTerms": [
    "laptop"
  ],
  "startUrls": [],
  "maxItems": 20,
  "maxRequestRetries": 5
}' |
apify call automation-lab/emag-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=automation-lab/emag-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/V499fZGaETR49nbTy/builds/FgEW3RyXIKcs2wBeH/openapi.json
