# Croatia Supermarket Prices: Grocery Price Lists by Barcode (`yappman/croatia-grocery-prices`) Actor

Croatia supermarket and grocery prices by barcode, product name or category, from price lists Lidl, Tommy, Metro, KTC and Ribola publish on their own websites. One row per product per store: euro price, promotion, unit price, lowest 30-day price, list date, source. Not affiliated with any chain.

- **URL**: https://apify.com/yappman/croatia-grocery-prices.md
- **Developed by:** [Russell Yapp](https://apify.com/yappman) (community)
- **Categories:** E-commerce, Business
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 66.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 rows

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

## Croatia Grocery Prices

**Na hrvatskom** (jezik provjeren 25. 11. 2026.): Ovaj Actor traži cijene u hrvatskim trgovinama prema barkodu (EAN-u), prema riječima iz naziva proizvoda ili prema kategoriji. Čita cjenike koje trgovački lanci (Lidl, Tommy, Metro, KTC i Ribola) objavljuju na svojim mrežnim stranicama u skladu s Pravilnikom o načinu objave cjenika proizvoda (NN 132/2026). Svaki redak predstavlja jedan proizvod iz cjenika pojedine trgovine: cijena u eurima, akcijska cijena, cijena za jedinicu mjere, najniža cijena u posljednjih 30 dana, bazna cijena (cijena na referentni datum: za hranu, piće, kozmetiku, sredstva za čišćenje i kućanstvo 2. svibnja 2025., za ostalu robu 10. rujna 2026.), datum cjenika i izvor. Svaka trgovina ima svoj cjenik pa se cijene iste robe mogu razlikovati. Plaćanje se obračunava po događaju: pokretanje 0,005 USD, svaki pročitani cjenik pojedine trgovine 0,003 USD i svaki redak 0,002 USD. Cjenik koji se ne može pročitati ne naplaćuje se.

Look up Croatia supermarket prices by barcode (EAN), by words in the product name, or by category. The Actor reads the price lists that grocery chains publish on their own websites. A Croatian rule on publishing price lists (Pravilnik o načinu objave cjenika proizvoda, NN 132/2026, in force from 17 November 2026) requires traders to publish them; the rule (Article 5) requires traders to enable software tools and automated programs for collecting these lists, which is still no licence to re-use them; the rule does not cover re-use, and no reuse licence was found on the chains' price-list pages (read 19 November 2026; the chains' general site terms were not read). Each row is one product in one store's list, with the listed price in euro, any special-sale price, the unit price, the lowest price of the last 30 days and the anchor price where the file has them, the list date, and the source. **A chain publishes one list per store; the price is the one in that store's list, and another store of the same chain may show another price.**

### What it costs

You pay per event (pay per event pricing; prices in US dollars):

| Event | Price | When |
| --- | --- | --- |
| `run` | $0.005 | once per run, with the first store list read |
| `storeFile` | $0.003 | for each store list read and checked, even if nothing in it matches |
| `row` | $0.002 | for each row in your dataset |

Example: one barcode at all 5 covered chains with the default one store each, 5 rows found: $0.005 + 5 × $0.003 + 5 × $0.002 = **$0.030**. One barcode at two named chains, 2 rows: $0.005 + 2 × $0.003 + 2 × $0.002 = **$0.015**.

- The default `chains` (empty) reads every covered chain, one store each: up to 5 `storeFile` events, even for one barcode that matches nothing. Name the chains you need to pay for fewer. `stores` (1 to 3) reads more stores per chain.
- A list that cannot be read, is too large, or is not published for the date is **never charged**. If no selected store can be read, the run fails and nothing is charged.
- Your spending limit stops the run cleanly when it is reached.
- In search and category mode, `maxItems` counts rows across all the stores read. Barcode mode has no `maxItems`: it returns every listed match for up to 100 barcodes at every store read, bounded only by your spending limit, so start with a short barcode list.
- If the platform restarts a run part way, the run compares the platform's own count of charged rows with its progress record, so a row is normally stored and charged once. In the unlikely case that the platform also loses the run's own key-value store during a restart, you are not charged for more store lists than were read, but a list already paid for may be charged again, and rows already stored may be stored and charged again.
- A list larger than 12 MB is skipped and never charged; so is a list with more than 150,000 rows, or one that takes more than a minute to read.

### Example input

```json
{
  "mode": "barcode",
  "barcodes": ["5900951313592", "4028491401058"],
  "chains": ["lidl", "tommy", "metro"]
}
```

```json
{
  "mode": "search",
  "query": "mlijeko 1 l",
  "brand": "Dukat",
  "maxItems": 50
}
```

- **barcode** (default): up to 100 13-digit barcodes; the GS1 check digit is verified and only matching rows are returned. A barcode must match the code a chain's list publishes, and the same product can carry a different code in another country.
- **search**: words in the product name (accents and case ignored), optionally a brand; `maxItems` rows at most.
- **category**: words in the chain's own category text; `maxItems` rows at most.
- `town`: reads the stores whose list name contains this town (letters only). Empty reads the first store of each chain in a fixed order. The store is returned only as an opaque `storeId`; the list name, street address and trader number are never output.
- `listDate`: `YYYY-MM-DD`, from 14 days ago up to today (Croatian time); empty means today.

### Chains covered

A chain is read when its price lists are published on one fixed address of the chain's own that this Actor has been built for. On 19 November 2026 that was true for 5 chains:

| Key | Chain (as its page names it) |
| --- | --- |
| `lidl` | Lidl Hrvatska |
| `tommy` | Tommy |
| `metro` | Metro Cash & Carry Hrvatska |
| `ktc` | KTC |
| `ribola` | Ribola |

Other chains publish price lists too and are not read. The Actor reads no other address, follows no redirect, and stops reading a chain at its first refusal. Each run's `RUN_SUMMARY` names every store skipped and why, and every chain stopped.

### Output

One row per product per store list: `barcode`, `barcodeCheck` (`valid` or `invalid`), `barcodeScope` (`global`, `in-store` or `unknown`), `productCode`, `productName`, `brand`, `category`, `unit`, `netQuantity`, `chain`, `storeId`, `locality`, `price`, `promoPrice`, `unitPrice`, `lowestPrice30Days`, `anchorPrice`, `basePrice`, `onPromotion`, `listDate`, and the source fields `source`, `listPage`, `downloadedAt`, `changes`, `licenceNote`, `disclaimer`.

- `basePrice` and `anchorPrice` are reference-date prices. Under the Croatian rule on showing the base price (Pravilnik o isticanju bazne cijene proizvoda, NN 132/2026, item 1583, Article 3), the base price is the retail price the trader applied on 2 May 2025 for food, drink, cosmetics, cleaning products, toiletries and household goods, and on 10 September 2026 for other goods and services; for goods first offered after that date it is the price on the day they were first offered. If the goods were discounted on that day, the food group shows the lowest price of the 30 days before the discount, and the other goods show the price applied just before the discount. A chain may write the base price as a number or as text such as `MPC na 2.5.2025: 1,99€`, and the Actor returns the number. `anchorPrice` is filled only from a column the chain calls an anchor ("sidrena") price. A list may give either, both or neither.
- Prices are numbers in euro or empty. A price of zero is read as absent. A special-sale row can have a `promoPrice` and no `price`.
- Barcodes starting 20 to 29, 02, 04, 98 or 99 are the chain's own (`barcodeScope: in-store`) and are not comparable across chains.
- `locality` is the town you typed, only when you chose the store by it.
- The Actor makes no claim about which store is cheapest, only what each list read shows.
- A text value (or a barcode that fails the check) that looks like an email address or phone number is replaced by `[removed: contact-like text]` (the row and its prices are kept). A text starting with `=`, `+`, `-` or `@` gets a leading apostrophe so a spreadsheet never runs it.

### FAQ

**Is this the price in my local store?** Only if you read that store. The default reads one store per chain, chosen in a fixed order; use `town` to choose.

**How fresh is it?** Each run reads the list each chain has published for the list date at run time. The rule asks traders to publish a changed list by 11:00 on the day of the change and to keep an archived list for 15 days; `listDate` shows which day you read. A trader may change a list up to 11:00 on the day of the change, so a run before 11:00 Croatian time may read a list that is replaced later that morning.

**Why is a chain or store missing from my results?** The chain may not be covered, its list may not be published for that date, or the file could not be read. `RUN_SUMMARY` names each skipped store with the reason.

**What licence is on the data?** No reuse licence was found on the chains' price-list pages when they were read on 19 November 2026; the chains' general site terms were not read. The lists are published by the chains under the rule above, which does not give a licence. We pass the data on as published, with the source on every row, and give no warranty of rights; this is not legal advice, so check your own use.

**Does it store data between runs?** No. Each run reads the lists it needs once and writes your rows to your own dataset, plus a run summary (`RUN_SUMMARY`) and a progress record (`PROGRESS`, used only if the platform restarts the run) in the run's own key-value store. Nothing is written to disk.

**Can I schedule it?** Yes, as an Apify schedule or task. A weekly run of a short barcode list at named chains costs the least for tracking prices.

### Source

Source: each chain's price list as published on its own website, as the chain's page names it. The download date and the chain's price-list page are on every row, and the changes are listed in `changes`. The data comes with no guarantee of accuracy or suitability. Not affiliated with or endorsed by any chain or by the Government of Croatia. We hold no agreement with, or permission from, any chain.

# Changelog

This Actor's version history is a separate document: https://apify.com/yappman/croatia-grocery-prices/changelog.md

# Actor input Schema

## `mode` (type: `string`):

Barcode finds a product at every covered chain; search matches words in the product name; category matches words in the chain's category text.

## `barcodes` (type: `array`):

Up to 100 13-digit barcodes; the GS1 check digit is verified. A barcode must match the code a chain's list publishes.

## `query` (type: `string`):

Accents and case are ignored.

## `brand` (type: `string`):

Keeps only rows whose brand is exactly this name, in any mode; accents and case are ignored.

## `category` (type: `string`):

Words in the chain's own category text; accents and case are ignored.

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

Chain keys from the covered list; empty means every covered chain. Each chain read costs one storeFile event per store, even when nothing matches.

## `stores` (type: `integer`):

How many store lists to read per chain (1 to 3). A chain publishes one list per store; the default reads one store per chain, chosen in a fixed order, or the stores whose list name contains the town you type.

## `town` (type: `string`):

Reads the stores whose list name contains this town (letters only; accents and case ignored). Empty reads the first store in a fixed order.

## `listDate` (type: `string`):

YYYY-MM-DD, from 14 days ago up to today (Croatian time). Empty means today.

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

The most rows returned in search and category modes (1 to 10,000); barcode mode returns every match. Each row is one row event.

## Actor input object example

```json
{
  "mode": "barcode",
  "barcodes": [
    "5900951313592",
    "4028491401058"
  ],
  "chains": [
    "lidl",
    "tommy",
    "metro"
  ],
  "stores": 1,
  "maxItems": 100
}
```

# Actor output Schema

## `rows` (type: `string`):

No description

## `runSummary` (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 = {
    "barcodes": [
        "5900951313592",
        "4028491401058"
    ],
    "chains": [
        "lidl",
        "tommy",
        "metro"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("yappman/croatia-grocery-prices").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 = {
    "barcodes": [
        "5900951313592",
        "4028491401058",
    ],
    "chains": [
        "lidl",
        "tommy",
        "metro",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("yappman/croatia-grocery-prices").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 '{
  "barcodes": [
    "5900951313592",
    "4028491401058"
  ],
  "chains": [
    "lidl",
    "tommy",
    "metro"
  ]
}' |
apify call yappman/croatia-grocery-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yappman/croatia-grocery-prices"
        }
    }
}
```

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/i6gWAz9QYT529qt2S/builds/CnYe8q3mtggJqw4f0/openapi.json
