DEV Community

Russell Yapp
Russell Yapp

Posted on

Look up Croatian supermarket prices by barcode

Croatian grocery chains publish price lists 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 lists are one file per store, so finding one product across several chains means opening several files. If you already have the product's barcode (EAN), you can ask for just that product and skip the rest.

This post shows how to do that with the Croatia Supermarket Prices Actor on Apify: the input, what comes back, and what a small run costs.

The input

Barcode mode is the default. You give it up to 100 13-digit barcodes and, optionally, the chains to read. The GS1 check digit is verified and only matching rows are returned.

{
  "mode": "barcode",
  "barcodes": ["5900951313592", "4028491401058"],
  "chains": ["lidl", "tommy", "metro"]
}
Enter fullscreen mode Exit fullscreen mode

Covered chains, by key: lidl (Lidl Hrvatska), tommy (Tommy), metro (Metro Cash & Carry Hrvatska), ktc (KTC) and ribola (Ribola). That was the list on 19 November 2026. Other chains publish price lists too and are not read. If you leave chains empty, every covered chain is read, one store each.

A barcode must match the code a chain's list publishes, and the same product can carry a different code in another country.

What a row looks like

One row is one product in one store's list. The fields are:

barcode, barcodeCheck, barcodeScope, productCode, productName, brand, category, unit, netQuantity, chain, storeId, locality, price, promoPrice, unitPrice, lowestPrice30Days, anchorPrice, basePrice, onPromotion, listDate, and the provenance fields source, listPage, downloadedAt, changes, licenceNote and disclaimer.

Prices are numbers in euro, or empty. A price of zero is read as absent, and a special-sale row can have a promoPrice and no price. barcodeScope tells you whether a code is global, in-store or unknown. Codes starting 20 to 29, 02, 04, 98 or 99 are the chain's own (in-store) and are not comparable across chains.

Here are three real rows from a run on the two barcodes above, showing four of those fields:

barcode chain price listDate
4028491401058 Tommy 2.15 2026-11-24
5900951313592 Tommy 1.29 2026-11-24
4028491401058 Metro Cash & Carry Hrvatska 1.83 2026-11-24

Each price is the one in that store's list. A chain publishes one list per store, so another store of the same chain may show another price. By default the Actor reads one store per chain; use town to choose stores by town. The Actor makes no claim about which store is cheapest, only what each list read shows.

What it costs

The Actor charges per event, 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

For the input above, that is three chains at one store each, so up to 3 storeFile events. With 4 rows found, that is $0.005 + 3 × $0.003 + 4 × $0.002 = $0.022. A list that cannot be read, is too large, or is not published for the date is never charged, and your spending limit stops the run cleanly when it is reached.

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.

The same input is saved as a public example Task. An owner run on 24 November 2026 returned 4 rows in about 28 seconds: Two product barcodes in Croatian chain price lists.

Two uses

Track a short list of products. The README says a weekly run of a short barcode list at named chains costs the least for tracking prices. You can run the Actor as an Apify schedule or task. Each row carries listDate, so you can see which day's list you read.

Compare one product across chains. The same barcode at several chains gives you rows side by side. In the sample, 4028491401058 is 2.15 in the Tommy list and 1.83 in the Metro list read, a difference of 0.32. This only works for codes with barcodeScope: global, and only for the stores read.

About the data

The prices are published by the chains under the Croatian price-list rule. 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). The product content in each list belongs to the retailers. The Actor passes the data on as published, with the source on every row, and gives no warranty of rights. This is not legal advice, so check your own use.

Not affiliated with or endorsed by any chain or by the Government of Croatia. We hold no agreement with, or permission from, any chain.

Try it

Croatia Supermarket Prices: Retailer Price Lists by Barcode

Top comments (0)