DEV Community

Russell Yapp
Russell Yapp

Posted on

Croatian supermarket prices from five chains

In an earlier article I described the Croatia Supermarket Prices Actor, which looks up prices by barcode from the price lists that chains publish on their own websites. Version 0.1.6 covers five chains: Lidl Hrvatska, Tommy, Metro Cash & Carry Hrvatska, KTC and Ribola. This post covers the 2026 price-list rule, how the Actor now handles empty store lists, the input, what the data does not have, and what a run costs.

The 2026 price-list rule

Croatia's rule on publishing price lists (Pravilnik o načinu objave cjenika proizvoda, NN 132/2026) has been in force since 17 November 2026. The README says it requires traders to publish price lists and to allow automated collection tools. It does not cover re-use. A second rule published the same day (Pravilnik o isticanju bazne cijene proizvoda, NN 132/2026, also in force from 17 November 2026) sets reference dates for the base price (Article 3): 2 May 2025 for food, drink, cosmetics, cleaning, toiletries and household goods, and 10 September 2026 for other goods. Goods first offered later use the day they were first offered. The Actor returns these as basePrice (Lidl's base-price column now fills it), and fills anchorPrice only from a column the chain labels as an anchor ("sidrena") price.

Empty store lists

Some store lists have a header but no product rows. The Actor skips such a list and reads the next store instead, passing over at most 3 empty lists for one store number, so at most 4 stores are checked. Empty lists are never charged, and RUN_SUMMARY shows emptyListsSkipped for each chain.

The input

{
  "mode": "barcode",
  "barcodes": ["5900951313592"],
  "chains": ["lidl", "tommy", "metro", "ktc", "ribola"],
  "stores": 1
}
Enter fullscreen mode Exit fullscreen mode

mode is barcode (default), search or category. barcodes takes up to 100 13-digit codes, with the GS1 check digit verified. chains takes lidl, tommy, metro, ktc and ribola; empty (the default) reads all five. stores is 1 to 3 store lists per chain (default 1), town reads stores whose list name contains a town, and listDate is YYYY-MM-DD from 14 days ago to today in Croatian time. maxItems (1 to 10,000) applies to search and category modes; barcode mode returns every match.

What a row looks like

Each row is one product in one store's list: barcode, barcodeCheck, barcodeScope, productCode, productName, brand, category, unit, netQuantity, chain, storeId, locality, price, promoPrice, unitPrice, lowestPrice30Days, anchorPrice, basePrice, onPromotion, listDate, source, listPage, downloadedAt, changes, licenceNote and disclaimer. Prices are euro numbers or empty; a zero price is treated as absent.

An owner run on 25 November 2026 with that input (one barcode, all five chains, one store list each) returned 4 rows. The first three:

Field Row 1 Row 2 Row 3
barcode 5900951313592 5900951313592 5900951313592
chain Lidl Hrvatska Tommy Metro Cash & Carry Hrvatska
productName Twix, 50g-PK ČOKOLADNI SNACK TWIX 50 g 50G TWIX
price 0.79 1.29 1.05
unitPrice 15.8 25.8 21
basePrice 0.75 null 1.05
anchorPrice null 1.15 null
promoPrice null null null
onPromotion false false false
listDate 2026-11-25 2026-11-25 2026-11-25
storeId e8b2582f7f 8c251dc076 9f9a84c4de

What the data does not have

  • Other chains. Only the five above, as of 19 November 2026.
  • Store identity. storeId is opaque; the list name, street address and trader number are never output. The Actor does not rank stores by price.
  • Comparable internal barcodes. Codes starting 20 to 29, 02, 04, 98 or 99 are chain-internal.
  • Lists it cannot read. Lists that cannot be read, are over 12 MB or 150,000 rows, take over a minute, or are not published for the date are skipped; RUN_SUMMARY names them.
  • Settled morning data. A list can change up to 11:00 on the day, so a run before 11:00 Croatian time may read a list replaced later.
  • History. The Actor stores nothing between runs.

What it costs

Event Price When
run $0.005 once per run, with the first store list read
storeFile $0.003 each store list read and checked, even with no matches
row $0.002 each row in your dataset

Worked examples: the owner run above (one barcode at all five chains, 4 rows found) is $0.005 + 5 × $0.003 + 4 × $0.002 = $0.028. One barcode at two named chains with 2 rows is $0.005 + 2 × $0.003 + 2 × $0.002 = $0.015. With chains empty, up to five storeFile events are charged even if the barcode matches nothing, so name the chains you need. Barcode mode has no maxItems cap, so start with a short list.

About the data

The data comes from the price lists each chain publishes on its own website. No reuse licence was found on the chains' price-list pages (read 19 November 2026), and the chains' general site terms were not read. Product content belongs to the retailers. The Actor passes the data on as published, with the source on each row, and gives no warranty of rights. This is not legal advice.

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

Try it

Croatia Supermarket Prices: Grocery Price Lists by Barcode

Top comments (0)