# Hungary Grocery Price Comparison: 9 Chains (`saffo/hungary-grocery-price-compare`) Actor

Shelf, sale and loyalty prices of about 16,000 grocery and drugstore products across Spar, Tesco, Aldi, Lidl, Penny, Auchan, dm, Rossmann and Müller in Hungary, one row per product with the cheapest chain.

- **URL**: https://apify.com/saffo/hungary-grocery-price-compare.md
- **Developed by:** [Saffo](https://apify.com/saffo) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 1,000 products

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?

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

## Hungary Grocery Prices: Spar, Tesco, Aldi, Lidl and 5 more chains compared

Shelf, sale and loyalty prices of about 16,000 grocery and drugstore products across Spar, Tesco, Aldi, Lidl, Penny, Auchan, dm, Rossmann and Müller in Hungary, one row per product with the cheapest chain.

### What it does

This actor reads Hungarian supermarket prices from [Árfigyelő](https://arfigyelo.gvh.hu/), the public price monitor of the Hungarian Competition Authority (GVH), to which the large grocery and drugstore chains must report their prices every day. Each result is one product with the regular, sale and loyalty-card price of every chain that lists it (Spar, Tesco, Aldi, Lidl, Penny, Auchan, dm, Rossmann and Müller), plus the cheapest chain, the lowest unit price and the price spread between chains: a ready-made price comparison of Hungary grocery prices, keyed by barcode where the product has one. You choose categories, search terms or the whole catalogue (about 16,000 products), and can limit the chains and keep only products that two or more chains sell.

The actor is independent of GVH and of the retailers. Product, brand and chain names and trademarks belong to their owners and are used only to identify products and chains in price information, which is the use the Árfigyelő visitor terms allow (ÁFF XIV.2). The prices are what the retailers report to the monitor for the current day, and GVH gives no warranty on them.

### Who it is for

- Price-comparison and shopping-list apps that need each chain's shelf, sale and loyalty price for the same product.
- FMCG brands and retail analysts who track how the Hungarian chains price their goods against each other and against own-label products.
- Inflation researchers and journalists who collect daily shelf prices across chains by category.

### How to use it

1. Open the actor on [Apify Store](https://apify.com/saffo/hungary-grocery-price-compare) and go to its Input tab.
2. Change the fields you need; every field has a default (see Input below).
3. Click **Start**. The run ends at the limits below, or earlier at the "Maximum cost per run" you set.
4. When the run ends, open the Output tab: view the results as a table, or export them as JSON, CSV or Excel.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `categories` | array | `[]` | Categories to read, each given as an id ("2001"), a path ("tejtermek_sajt_tojas/tej") or a category page URL ("https://arfigyelo.gvh.hu/k/tejtermek_sajt_tojas/tej"). A top-level category is expanded into its sub-categories. When both categories and searchTerms are empty, every category is read. |
| `searchTerms` | array | `[]` | Product searches, each 3 to 50 characters, run through the site's search (Hungarian words work best, e.g. "kávé", "pelenka"). |
| `chains` | array | `[]` | Keep only these chains (any of spar, tesco, aldi, lidl, penny, auchan, dm, rossmann, mueller). Empty means all nine. Prices of other chains are dropped and a product left with no chain is skipped and not charged. |
| `minChains` | integer | `1` | Save only products listed by at least this many of the selected chains (1 to 9); set 2 to get only products you can compare across chains. |
| `includePriceRange` | boolean | `false` | Also read each product's detail record to add every chain's highest store price and the number of its stores that sell the product (one extra request per product, slower). |
| `maxItems` | integer | `500` | Stop after saving this many products (1 to 20,000); the whole catalogue is about 16,000 products. |

Example input:

```json
{
  "categories": [
    "tejtermek_sajt_tojas/tej"
  ],
  "maxItems": 5
}
```

To compare coffee at Spar, Tesco, Aldi and Lidl and keep only products that at least two of them sell:

```json
{
  "searchTerms": ["kávé"],
  "chains": ["spar", "tesco", "aldi", "lidl"],
  "minChains": 2,
  "maxItems": 50
}
```

To pick a category, open it on [arfigyelo.gvh.hu](https://arfigyelo.gvh.hu/) and copy the page URL (for example `https://arfigyelo.gvh.hu/k/tejtermek_sajt_tojas/tej`), or give its path (`tejtermek_sajt_tojas/tej`) or id (`2001`). A top-level category such as `pekaru` is read as all of its sub-categories. With no categories and no search terms the actor reads every category.

### Output

Each result is one dataset item:

| Field | Type | Description |
|---|---|---|
| `url` | string | Web address of the item: its own page, or the page it was read from. |
| `productId` | string | Product id on the price monitor, either the barcode or a chain-prefixed id for own-label and loose products. |
| `ean` | string or null | Barcode (EAN/GTIN) when the product id is an 8, 12, 13 or 14 digit code; null for chain-prefixed ids. |
| `title` | string | Title of the item as shown on the page. |
| `packageSize` | number or null | Package size in the unit given in the unit field; null when the record has none. |
| `unit` | string | Unit of packageSize and of all unit prices, as published (l, kg, db and similar). |
| `saleUnit` | string or null | What one price buys, as published (db for one piece, csomag for one pack). |
| `soldLoose` | boolean | True when the product is sold loose by weight or volume rather than in a package. |
| `depositFee` | number | Deposit charged on top of the price in HUF (bottle and can return scheme); 0 when none. |
| `depositType` | string or null | Deposit scheme as published, e.g. one-way-return-fee; null when no deposit applies. |
| `categoryPath` | string | Category path of the product on the price monitor, top level first, separated by slashes. |
| `categoryName` | string or null | Hungarian name of the lowest category in categoryPath; null when the path is not in the category tree. |
| `price` | number or null | Price as a number, in `currency`; null when the page shows none. |
| `currency` | string or null | ISO 4217 currency code of `price`, for example USD. |
| `cheapestChain` | string | Chain that has the lowest shelf price; the first in API order on a tie. |
| `lowestUnitPrice` | number | Lowest shelf unit price across the selected chains, in HUF per unit. |
| `highestPrice` | number | Highest of the chains' lowest shelf prices, in HUF; equals price when one chain lists the product. |
| `priceSpreadPercent` | number or null | (highestPrice - price) / price x 100, rounded to one decimal; null when fewer than two chains list the product. |
| `lowestLoyaltyPrice` | number or null | Lowest loyalty-card price across the selected chains in HUF; null when no chain publishes one. |
| `chainCount` | integer | Number of selected chains that list the product. |
| `chainPrices` | array | One entry per selected chain that lists the product, cheapest first. |
| `foundBy` | string | Category path or search term that first returned the product in this run, prefixed with category or search. |
| `fetchedAt` | string | When the page was read (ISO 8601, UTC). |

Example output (real items from a test run):

```json
[
  {
    "url": "https://arfigyelo.gvh.hu/k/tejtermek_sajt_tojas/tej/uht_15/t/5998200423925",
    "productId": "5998200423925",
    "ean": "5998200423925",
    "title": "Farmer UHT zsírszegény tej 1,5% 1 l",
    "packageSize": 1,
    "unit": "l",
    "saleUnit": "db",
    "soldLoose": false,
    "depositFee": 0,
    "depositType": null,
    "categoryPath": "tejtermek_sajt_tojas/tej/uht_15",
    "categoryName": "UHT tej dobozban, 1,5% zsírtart.",
    "price": 155,
    "currency": "HUF",
    "cheapestChain": "Spar",
    "lowestUnitPrice": 155,
    "highestPrice": 155,
    "priceSpreadPercent": null,
    "lowestLoyaltyPrice": null,
    "chainCount": 1,
    "chainPrices": [
      {
        "chain": "Spar",
        "chainKey": "spar",
        "lowestPrice": 155,
        "lowestUnitPrice": 155,
        "normalPrice": 155,
        "normalUnitPrice": 155,
        "discountedPrice": null,
        "discountedUnitPrice": null,
        "loyaltyPrice": null,
        "loyaltyUnitPrice": null,
        "sameEverywhere": true,
        "maxPrice": null,
        "storeCount": null
      }
    ],
    "foundBy": "category:tejtermek_sajt_tojas/tej",
    "fetchedAt": "2026-11-13T20:55:12.917Z"
  },
  {
    "url": "https://arfigyelo.gvh.hu/k/tejtermek_sajt_tojas/tej/uht_28/t/5998200564338",
    "productId": "5998200564338",
    "ean": "5998200564338",
    "title": "Riska UHT tej 2,8% 1 l",
    "packageSize": 1,
    "unit": "l",
    "saleUnit": "db",
    "soldLoose": false,
    "depositFee": 0,
    "depositType": null,
    "categoryPath": "tejtermek_sajt_tojas/tej/uht_28",
    "categoryName": "UHT tej dobozban, 2,8% zsírtart.",
    "price": 199,
    "currency": "HUF",
    "cheapestChain": "Spar",
    "lowestUnitPrice": 199,
    "highestPrice": 289,
    "priceSpreadPercent": 45.2,
    "lowestLoyaltyPrice": null,
    "chainCount": 3,
    "chainPrices": [
      {
        "chain": "Spar",
        "chainKey": "spar",
        "lowestPrice": 199,
        "lowestUnitPrice": 199,
        "normalPrice": 199,
        "normalUnitPrice": 199,
        "discountedPrice": null,
        "discountedUnitPrice": null,
        "loyaltyPrice": null,
        "loyaltyUnitPrice": null,
        "sameEverywhere": true,
        "maxPrice": null,
        "storeCount": null
      },
      {
        "chain": "Auchan",
        "chainKey": "auchan",
        "lowestPrice": 204,
        "lowestUnitPrice": 204,
        "normalPrice": 204,
        "normalUnitPrice": 204,
        "discountedPrice": null,
        "discountedUnitPrice": null,
        "loyaltyPrice": null,
        "loyaltyUnitPrice": null,
        "sameEverywhere": true,
        "maxPrice": null,
        "storeCount": null
      },
      {
        "chain": "Tesco",
        "chainKey": "tesco",
        "lowestPrice": 289,
        "lowestUnitPrice": 289,
        "normalPrice": 289,
        "normalUnitPrice": 289,
        "discountedPrice": null,
        "discountedUnitPrice": null,
        "loyaltyPrice": null,
        "loyaltyUnitPrice": null,
        "sameEverywhere": true,
        "maxPrice": null,
        "storeCount": null
      }
    ],
    "foundBy": "category:tejtermek_sajt_tojas/tej",
    "fetchedAt": "2026-11-13T20:55:12.917Z"
  }
]
```

Download the dataset as JSON, CSV or Excel, or read it through the Apify API.

### Pricing

Pay per event: a small fee per run plus a fee per result saved. Platform usage is included in these prices.

| Event | When it is charged | Free plan | Bronze plan | Silver plan | Gold plan | Platinum plan | Diamond plan |
|---|---|---|---|---|---|---|---|
| Run started (`run-started`) | Flat fee once per run; covers starting the run and reading the category tree and chain list. | $0.0125 | $0.01 | $0.009 | $0.008 | $0.008 | $0.008 |
| Product (`product`) | One product with its prices across the selected chains saved to the dataset. | $0.0037 | $0.003 | $0.0027 | $0.0024 | $0.0024 | $0.0024 |

Example (lowest plan price): a run that saves 100 results costs $0.008 + 100 × $0.0024 = **$0.248**. That is $2.40 per 1,000 results plus $0.008 per run. You pay only for results saved to the dataset; set "Maximum cost per run" in the run options and the actor stops there.

At the base price, 500 products cost $0.01 + 500 × $0.003 = $1.51, and the whole catalogue of about 16,000 products costs about $48. Products dropped by the `chains` or `minChains` filters, and products already saved from another category or search in the same run, are never charged.

### Limits

- One run saves at most 20,000 results and loads at most 400 pages. Larger jobs: split the start URLs over several runs.

- Default memory 256 MB; no proxy.

- When a limit is reached, the run ends normally and keeps every result saved so far; the status message says which limit it was.

- Prices are what the retailers report to Árfigyelő for the current day. The actor keeps no price history: each row holds the price of the day it was read (`fetchedAt`), and the monitor does not publish earlier days.

- When a chain's price differs between its stores (`sameEverywhere` is false), the row shows the chain's lowest store price. Turn on `includePriceRange` to add the highest regular store price and the number of stores.

- With `includePriceRange` each product needs one more request and the actor sends at most two requests per second, so 1,000 products take at least 8 minutes; raise the run timeout (default 10 minutes) for larger runs.

- Only the nine chains above are reported. Product images, chain logos, store names, store addresses and store lists are not copied; `storeCount` is only a number.

### Use with AI agents

AI agents can call this actor as a tool through the Apify MCP server. Add it to an MCP client (Claude Desktop, Cursor, VS Code and others):

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?tools=saffo/hungary-grocery-price-compare"
    }
  }
}
```

Or call it over HTTP and get the results in the response:

```sh
curl -X POST "https://api.apify.com/v2/acts/saffo~hungary-grocery-price-compare/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"categories":["tejtermek_sajt_tojas/tej"],"maxItems":5}'
```

To answer a question such as "which chain sells this coffee cheapest?", an agent runs the actor with a search term and a small limit, for example `{"searchTerms": ["kávé"], "minChains": 2, "maxItems": 10}`, and reads `cheapestChain`, `price` and `chainPrices` of the matching row. A small `maxItems` keeps the run short and cheap.

### FAQ

#### How much does it cost?

You pay per event: from $0.0024 per product plus $0.008 per run. The Pricing section lists the price on every Apify plan. Platform usage is included, and the run stops at the maximum cost per run you set.

#### Can I use it from an AI agent or my own code?

Yes. Add it to any MCP client through the Apify MCP server, or call the Apify API; the examples under Use with AI agents show both. Results come back as JSON.

#### How many results can one run return?

Up to 20,000 results from at most 400 pages. For more, split the input over several runs.

#### Does it collect personal data?

No. It saves only the fields listed under Output and leaves out names, e-mail addresses, phone numbers and profiles of private persons.

#### Why does a product show only one chain?

Own-label goods (product ids such as `lidl-0001586` or `aldi-320991`) and products that only one chain stocks are reported by that chain alone. Set `minChains` to 2 to keep only products you can compare across chains.

#### How fresh are the prices?

The chains report their prices to Árfigyelő every day, and the actor reads the prices published at the time of the run. Each row carries `fetchedAt`, the time it was read.

### Related actors

More actors by the same author on Apify Store:

- [Argentina Supermarket Prices by Chain and Store](https://apify.com/saffo/argentina-supermarket-prices): Daily list prices and promotions of every supermarket chain and branch in Argentina's official SEPA open dataset, filtered by EAN, keyword, brand, chain or area.
- [bike-components Prices, Ratings & Stock](https://apify.com/saffo/bike-components-prices): Prices for 13 delivery countries, RRP and discount, star rating, review count and stock of every product on bike-components.de category, brand and deal pages, one row per product variant.
- [Books Fixture](https://apify.com/saffo/books-fixture): Book titles, prices, stock and ratings from the category pages of books.toscrape.com, a public sandbox site made for scraping practice.

### Support

Open an issue on the actor's Issues tab.

### Changelog

#### 0.1 (2026-11-13)

- First release: shelf, sale and loyalty prices of Spar, Tesco, Aldi, Lidl, Penny, Auchan, dm, Rossmann and Müller from the Árfigyelő price monitor, one row per product with the cheapest chain and the price spread. Reads categories (by id, path or page URL), search terms or the whole catalogue; filters by chain and by the number of chains (`minChains`); `includePriceRange` adds each chain's highest store price and store count.

# Changelog

This Actor's version history is a separate document: https://apify.com/saffo/hungary-grocery-price-compare/changelog.md

# Actor input Schema

## `categories` (type: `array`):

Categories to read, each given as an id ("2001"), a path ("tejtermek_sajt_tojas/tej") or a category page URL ("https://arfigyelo.gvh.hu/k/tejtermek_sajt_tojas/tej"). A top-level category is expanded into its sub-categories. When both categories and searchTerms are empty, every category is read.

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

Product searches, each 3 to 50 characters, run through the site's search (Hungarian words work best, e.g. "kávé", "pelenka").

## `chains` (type: `array`):

Keep only these chains (any of spar, tesco, aldi, lidl, penny, auchan, dm, rossmann, mueller). Empty means all nine. Prices of other chains are dropped and a product left with no chain is skipped and not charged.

## `minChains` (type: `integer`):

Save only products listed by at least this many of the selected chains (1 to 9); set 2 to get only products you can compare across chains.

## `includePriceRange` (type: `boolean`):

Also read each product's detail record to add every chain's highest store price and the number of its stores that sell the product (one extra request per product, slower).

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

Stop after saving this many products (1 to 20,000); the whole catalogue is about 16,000 products.

## Actor input object example

```json
{
  "categories": [
    "tejtermek_sajt_tojas/tej"
  ],
  "searchTerms": [],
  "chains": [],
  "minChains": 1,
  "includePriceRange": false,
  "maxItems": 500
}
```

# 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 = {
    "categories": [
        "tejtermek_sajt_tojas/tej"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("saffo/hungary-grocery-price-compare").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 = { "categories": ["tejtermek_sajt_tojas/tej"] }

# Run the Actor and wait for it to finish
run = client.actor("saffo/hungary-grocery-price-compare").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 '{
  "categories": [
    "tejtermek_sajt_tojas/tej"
  ]
}' |
apify call saffo/hungary-grocery-price-compare --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,saffo/hungary-grocery-price-compare"
        }
    }
}
```

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/u8gGptOD7fq1BhFrZ/builds/GIFhaJAHEnQJrsngD/openapi.json
