# Mercator.si Scraper — Mercator Slovenia Grocery Products (`studio-amba/mercator-si-scraper`) Actor

Scrape grocery products from mercatoronline.si, Mercator Slovenia's webshop. Get product names, brands, prices (incl. promo and Pika card prices), units, categories, EAN codes and images by search keyword. No login required.

- **URL**: https://apify.com/studio-amba/mercator-si-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 $1.20 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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

## Mercator.si Scraper

Extract **grocery products from [mercatoronline.si](https://mercatoronline.si/)**, the webshop of Mercator, Slovenia's largest grocery chain. Search by keyword and get product names, brands, prices (including active promos and Pika loyalty card prices), package units, categories, EAN barcodes, ratings and images — all in structured, ready-to-use data.

This Actor pulls data directly from the site's own product-search JSON API. No login, no session, no browser automation. It reads the same data the site's search grid renders for every visitor, so runs are fast and stable.

### What does Mercator.si Scraper do?

Give it a Slovenian keyword (for example `mleko`, `kruh`, `jogurt`, or `kava`) and the Actor pages through mercatoronline.si's search results, extracting the full product listing for every match: name, brand, current price, original price when discounted, unit price, category, product code, EAN codes, rating, image, and product URL.

Because it runs on the Apify platform, you also get scheduling, monitoring, proxy rotation, and integrations (webhooks, Make, Zapier, Google Sheets) out of the box.

### Why use Mercator.si Scraper?

- **Price monitoring.** Track Mercator's prices and active promotions over time.
- **Market research.** Compare product ranges and pricing against other Slovenian grocery retailers.
- **Assortment tracking.** See which brands and products are listed under a given category or keyword.
- **Barcode/EAN mapping.** Pull EAN codes alongside Mercator's internal product code for catalogue matching.
- **No anti-bot headaches.** The product-search API is a plain JSON endpoint — no CAPTCHAs, no browser fingerprinting to work around.

### How to scrape Mercator.si data

1. Open the Actor and go to the **Input** tab.
2. Enter a **Search Query** in Slovenian (e.g., `mleko`, `kruh`, `sir`, `jogurt`, `kava`).
3. Set **Max Results** to control how many products you want (the site's API serves up to 200 products per request).
4. Click **Start**. When the run finishes, open the **Output** tab and download your data as JSON, CSV, Excel, or HTML.
5. To track prices over time, schedule the Actor to run daily or weekly and compare exports.

That's it — no account, no API key, no store or delivery address needed.

### Input

| Field | Type | Description |
| --- | --- | --- |
| `searchQuery` | string | Slovenian search keyword. Defaults to `mleko` if left empty. |
| `maxResults` | integer | Maximum number of products to return. Default `100`. |
| `proxyConfiguration` | object | Apify Proxy settings. Automatic proxy works fine — the search API has no anti-bot protection. |

Example input:

```json
{
  "searchQuery": "mleko",
  "maxResults": 20,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

### Output

Each item in the dataset looks like this:

```json
{
  "productName": "Maslo, Mercator, 250 g",
  "brand": "MERCATOR",
  "price": 2.19,
  "priceBeforeDiscount": 2.89,
  "currency": "EUR",
  "requiresLoyaltyCard": true,
  "unitPrice": 8.76,
  "unitPriceUnit": "KG",
  "category": "MASLO",
  "sku": "00612345",
  "ean": ["3838900123456"],
  "imageUrl": "https://mercatoronline.si/img/cache/products/1234/product_small_image/00612345.jpg",
  "url": "https://mercatoronline.si/izdelek/1234567/maslo-mercator-250-g",
  "isAvailable": null,
  "rating": 4.2,
  "scrapedAt": "2026-09-13T14:21:04.250Z"
}
```

| Field | Description |
| --- | --- |
| `productName` | Full product name as listed on the site |
| `brand` | Brand name, when provided |
| `price` | Current selling price as shown on the site |
| `priceBeforeDiscount` | Original price, only present when a promotion is active |
| `currency` | Always `EUR` |
| `requiresLoyaltyCard` | `true` when the price shown only applies to holders of a Pika loyalty card |
| `unitPrice` | Price per `unitPriceUnit` (e.g. per KG or per L) |
| `unitPriceUnit` | Unit the unit price is expressed in |
| `category` | Most specific product category on the site |
| `sku` | Mercator's internal product code |
| `ean` | EAN/barcode(s), when present |
| `imageUrl` | Main product photo URL |
| `url` | Direct product page link |
| `isAvailable` | Always `null` — the site's search API doesn't expose live stock status |
| `isOrganic` | `true` when the site flags the product as organic (eko) |
| `rating` | Average customer rating (0-5), when the product has any ratings |
| `scrapedAt` | ISO 8601 timestamp of when the item was collected |

### How it works

`mercatoronline.si` is a server-rendered jQuery storefront. Its product grid stores active filters (search term, category, promotions) in the URL hash — `#search=mleko`, `#categories=123` — and mirrors them into one AJAX call:

```
GET https://mercatoronline.si/products/browseProducts/getProducts
    ?limit=200&offset=0&from=0&filterData[search]=mleko
```

This Actor calls that same endpoint directly with a plain HTTP GET, no cookies or session required. The response mixes real product rows with promotional banner rows in the same list — the Actor filters those out before mapping. Found via a full network capture with `agent-browser` plus reading the site's own `grid.min.js` and `filters.min.js` (Sep 2026 recon).

A note on pricing: Mercator, like most Slovenian retailers, sometimes shows a lower price that only applies to holders of its "Pika" loyalty card. When that's the active discount, the `requiresLoyaltyCard` field is set to `true` and `priceBeforeDiscount` carries the regular price, so you can tell the two apart instead of assuming every visitor pays the lower number.

### Is it legal to scrape Mercator.si?

This Actor only collects publicly available product listing data (names, prices, categories) that anyone can see by browsing mercatoronline.si. It doesn't access any account data, doesn't bypass paywalls or logins, and doesn't collect personal information. Always check the target site's terms of service and applicable law (e.g. GDPR if you plan to process personal data) before scraping, and use the data responsibly.

### How much does it cost?

This actor is billed $0.02 per run plus $0.002 per result:

- **100 products**: ~$0.22
- **1,000 products**: ~$2.02

Your run's usage cost only settles after the run reports SUCCEEDED — reading a mid-run dataset understates the eventual cost.

### Tips

- Slovenian keywords return the most results — try `mleko`, `kruh`, `sir`, `jajca`, `kava`, `čokolada`.
- A broader keyword returns more matches; a narrow one is faster if you only need a specific product line.
- Promotions are time-boxed — re-run periodically if you're tracking price changes, since `priceBeforeDiscount` only appears while a promo is active.
- Check `requiresLoyaltyCard` before treating `price` as the walk-in price everyone pays online.

### Related Scrapers

- [Spar.si Scraper](https://apify.com/studio-amba/spar-si-scraper) — SPAR Slovenia grocery products
- [Notino.si Scraper](https://apify.com/studio-amba/notino-si-scraper) — Slovenian cosmetics and perfume marketplace
- [Interspar.at Scraper](https://apify.com/studio-amba/interspar-at-scraper) — SPAR Austria grocery products
- [Spar.dk Scraper](https://apify.com/studio-amba/spar-dk-scraper) — SPAR Denmark grocery products

### Support

Found a product field missing or a page that doesn't scrape correctly? Open an issue on the Actor's Apify Store page and we'll take a look.

# Actor input Schema

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

Keyword to search for on mercatoronline.si, in Slovenian. Examples: 'mleko' (milk), 'kruh' (bread), 'jogurt' (yoghurt), 'kava' (coffee).

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

Maximum number of products to return. The site's search API serves up to 200 products per request.

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

Proxy settings. The product-search API is a plain JSON endpoint with no anti-bot protection and works well through Apify's automatic proxy.

## Actor input object example

```json
{
  "searchQuery": "mleko",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `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 = {
    "searchQuery": "mleko",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/mercator-si-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": "mleko",
    "maxResults": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/mercator-si-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": "mleko",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call studio-amba/mercator-si-scraper --silent --output-dataset

```

## MCP server setup

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