Jumbo product data without an API

Name, price, unit price, barcode, product number and category from jumbo.com product and category pages, as one tidy row per product. Learned from real pages, split prices and promotions included.

Jumbo product data

jumbo.com/producten/campina-appel-kaneel-vla-1l-…
name
Campina Appel Kaneel Vla 1L
price
2,69
unit price
€ 2,69 per liter
barcode (GTIN)
8712800003076
product number
761032PAK
main category
Zuivel, boter en eieren
category
Meer smaken vla

Nederlands

What comes out of Jumbo pages

Tested on 7 real Jumbo pages: 27 of 31 values exactly right, 0 wrong. When it isn't sure, it says so instead of guessing. Fields it pulls:

  • category
  • main category
  • barcode (GTIN)
  • name
  • price
  • product number
  • unit price

Left empty on some test pages, not filled in wrong. A few more example pages with these values, and the rules for them get learned too:

  • brand · 4 empty

Is there an Jumbo API for product data?

Not an open, documented one you can sign up for. What people use instead: the JSON the shop's own app or site loads (undocumented, it changes without notice, and the terms may not allow it), the structured data in the product pages themselves, or the visible text. An extraction script reads the pages you are allowed to fetch, the same way a browser does, and says when the layout changed.

How to scrape Jumbo product pages without an AI

  1. Check the page source first. Product pages often carry name, price and stock as JSON-LD. If view source shows the price, a plain HTTP request is enough: no headless browser.

  2. Fetch only what changed. Read the sitemap and skip every page whose lastmod hasn't moved since the last run.

  3. Go slow. One request every second or two, a clear User-Agent, and nothing behind a login. A supermarket site is not a test server.

  4. Learn the rules once. Every product page of one shop shares a structure. Send a few and get a rule per field, tested on all of them: price, unit price, size, category.

The traps on supermarket pages

  1. Split prices. The euros and the cents sit in two elements (2 and 69), so a simple selector reads "2" or "269".

  2. The old price next to the new one. A promotion shows both. The rule has to pick the price you pay, not the struck-through one.

  3. Related products. The page lists other products with their own prices. The first price on the page is often not this product's.

  4. Class names that change every deploy. Hashed CSS classes break hand-written selectors after each release. Rules learned from several pages lean on what stays.

More on this

Try it on your own pages

Paste a few links and a couple of values. The look is free, and you hear the price before anything is due.

Try it on your pages