Notes · Automation

How we built a bot that finds underpriced LEGO on Vinted

An hourly bot reads every new LEGO listing on Vinted UK, works out what each set really sells for, and flags the few worth a look. This is how it works, and where it has to stop and ask a person.

← All notes
Written by
Rob Paddock
Published
23 November 2026
Reading time
6 minutes
Topic
Automation

Thousands of LEGO listings go up on Vinted every day. A few are priced well below what the set usually sells for, and those are gone within the hour. Nobody can watch a feed that closely, so we built a bot to do it.

It is a small project, but it has the shape of most automation we build for businesses. A machine does the reading and the arithmetic. A person makes the decision.

Plays from YouTube. Nothing is loaded from YouTube until you press play.

What it does

Once an hour, from about 8am to 10pm, the bot reads the newest LEGO listings on Vinted UK. It works out which official set each one is, compares the asking price with what that set has sold for, and estimates the profit from buying it and selling it on.

It buys nothing. Anything that looks good is sent to us as a short alert, and a person checks the photos and the description before any money moves.

The bot runs on Grok, the assistant from xAI, on an hourly schedule. We wrote the rules it follows and the checks it has to pass. It does the reading.

The five steps

  1. 01ScanRead the newest listings, going back until it reaches ones it has already seen.
  2. 02IdentifyPull the set number from the title. Drop anything that is not a complete official set.
  3. 03CompareLook up the UK retail price and what the set has sold for, in the same condition.
  4. 04EstimateWork out the profit after the buyer fee, postage and packaging. Check the listing is still there.
  5. 05DecideMark it BUY, MAYBE or skip. A person reviews every BUY and MAYBE.

1. Read back to the overlap

Each run starts at the newest listing and keeps going until it reaches listings from the last run. That way nothing posted between runs is missed, and nothing is counted twice.

2. Drop what is not a set

A search for LEGO returns a lot that is not a set: wall mounts, display cases, light kits, single minifigures, bags of loose parts, puzzles, custom builds and copies. All of these are filtered out before any price is looked at.

One listing shows why. It matched a current Ferrari set and looked like a strong buy against what that set sells for. The title said it was not LEGO. It was dropped as a copy.

3. Compare like with like

A sealed set and a used one are different products at different prices. So the bot keeps its own record of completed eBay UK sales and matches by condition: new against new, used against used. Retail prices come from Brickset.

When a set has few recorded sales, the bot also looks at what similar listings went for on Vinted itself, and it trusts the answer less.

Each listing is judged against what the set usually sells for. Green is a find, with its margin drawn in. Ember is too cheap to trust.

4. Estimate the profit

The sum is deliberately plain.

Part How it is worked out
Cost The Vinted total, which includes the buyer fee, plus postage to us
Resale The typical sold price in the same condition, less a discount because Vinted buyers expect to pay a little less than on eBay, less packaging
Profit Resale minus cost
Return Profit divided by cost

Obvious outliers are trimmed from the sold prices first, so one odd sale cannot move the answer. Before anything is flagged, the bot checks the listing has not already sold.

5. A person decides

A listing that clears a minimum profit and return, with enough sales behind the estimate, is marked BUY. A close call, or one with only a couple of sales to go on, is marked MAYBE. Everything else is skipped.

What it found

These are listings the bot flagged on 22 and 23 November 2026. They are flags, not purchases.

Set Condition Vinted price Sold on eBay Estimated profit
75290 Mos Eisley Cantina Very good, used £86.05 £174.20 over 5 sales £66.23 (74%)
71741 Ninjago City Gardens Very good, used £86.16 £172.30 over 4 sales £64.41 (72%)
42110 Land Rover Defender Good, used £59.70 £97.58 over 14 sales £23.62 (37%)
42096 Porsche 911 RSR New, no tags £74.82 £115.10 over 19 sales £24.27 (31%)
75955 Hogwarts Express Very good, used £16.50 £37.10 over 11 sales £12.39 (62%)

The Porsche was listed as new and sealed, and it sold soon after. The Hogwarts Express needs a second look: at that price it may be missing its box or instructions.

When a flag is too good to be true

On the evening of 23 November, four of the largest sets on the market appeared at almost the same price.

Set Vinted price Sold on eBay
76269 Avengers Tower £86.70 £481.59
75192 Millennium Falcon £85.73 £363.70
10305 Lion Knights' Castle £86.70 £361.34
76218 Sanctum Sanctorum £86.70 £322.90

On paper these are the best deals the bot has ever seen. In practice, a run of near-identical low prices on big sets is a scam, a placeholder price or an incomplete set. The bot holds them back for a person to check.

The bot finds the signal. A person still decides.

This is the part that takes the most care in any automation. The sums are easy. Knowing when not to trust them is the work.

Three days in numbers

In its first three days the bot made 43 hourly runs and built its own price record as it went.

  1. Listings stored20,738Every LEGO listing the bot has seen on Vinted UK.
  2. With a set number6,856About a third name a set the bot can read.
  3. With a UK retail price4,679Matched to a retail price from Brickset.
  4. Passed the price filter1,592Looked cheap against retail or the used market.

BUY and MAYBE flags are a further cut of that last bar: a handful each hour. Behind them sit 4,880 recorded eBay sales across 368 sets, and that record grows with every run, so the estimates get better the longer the bot runs.

What we would tell anyone building one

  1. Let the machine read and the person decide. The bot looked at more than twenty thousand listings. A person looked at a few dozen.
  2. Compare like with like. A price means nothing until the condition matches.
  3. Build your own record. Every run adds sold prices, and the bot's judgement improves without anyone touching it.
  4. Treat the best results as the most suspect. The checks that hold a flag back matter more than the ones that raise it.
  5. Check it is still true. A deal that sold ten minutes ago is not a deal.

The same shape, in a business

Swap LEGO for supplier prices, tender notices, stock levels or incoming enquiries and the pattern is the same: read everything, compare it with what you already know, and put the few that matter in front of the right person.

That is the automation work we take on. If something in your business gets checked by hand every morning, tell us about it.

Related

Where to read next

Next note · Vibe-coded appsIs my Lovable app secure? Five things to check before launch →
Book a call