Live data from Hacker News

Show HN: CLI to order groceries via reverse-engineered REWE API (Haskell)

github.com

61–70 of 94 posts

Re: Show HN: CLI to order groceries via reverse-engineered REWE API (Haskell)

#61
post #53

Earlier quoted context omitted.

> B2C: Is it really surprising that a busines has no interest in providing more price transparency to their customers? Might I suggest you remove your tin-foil hat and consider that: - 99% of REWE customers almost certainly have no clue what an API is - 99% of the remaining 1% know what an API is, but their day-job involves messing with APIs, so they don't want to spend their weekend-time messing with the REWE API, t…

> Might I suggest you remove your tin-foil hat and consider that: First up: Read and follow the rules. No need to insult me. Especially considering what you said shows that you both misunderstood AND misrepresented what I've said. And frankly, my reasoning was simply saying "Company won't publicize internal info if they don't get an advantage from doing so". It's literally the same reason Google doesn't publish all o…

> Opening an API to the public allows third parties to develop apps that can then be consumed by end-consumers. Not trying to be offensive here, but do you know what an API is? To conclude I meant every single end-consumers building their own app is at best disingenuously twisting my words.

Here you are wrong too.

If you want to develop an app via an API that is only offered B2B, what do you do ?

Yes, that's right ...

You phone up REWE and negotiate a license to access to the B2B API to develop your application. B2B2C if you want to put it in simpler terms.

My original point stands. REWE clearly do not want to officially expose the API B2C, almost certainly for the exact reasons I already spelled out in my original post.

But no, its easier for you just to spread FUD, claiming "busines has no interest in providing more price transparency to their customers" just because they will not let you have access to the API as direct B2C.

Re: Show HN: CLI to order groceries via reverse-engineered REWE API (Haskell)

#62
post #23

Surprised how little the B2C and even B2B e-commerce segment is providing API access for automation and agentic coding. One could easily set up rate limits, fraud detection and KYC checks upfront initial access.

Normal customers are not paying for APIs, so there is little value in offering them for free, especially when it can be harmful. B2B sometimes does pay for them, but not always is it obvious from the outside that they even exist. Much commerce is also on tight numbers and thus kinda secretive about their stuff.

Re: Show HN: CLI to order groceries via reverse-engineered REWE API (Haskell)

#63

Serious good use of an AI. Just let them do the grey area (like repeated purchase). I'd even let an algo pick better groceries for me. Cools tuff!

Absolutely. For example, I want to ask it: Suggest me some vegetables I haven't ordered in recent weeks or stuff like this, and this is all possible.

Ideally it should also look up if they are currently in season in your location, so many possibilities!

Re: Show HN: CLI to order groceries via reverse-engineered REWE API (Haskell)

#64
post #38
post #28

Earlier quoted context omitted.

When Amazon launches an API everyone cries. Same story over and over. Even better example: TakeAway-Group. The perfect MITM.

Think it's context dependent whether it's a good or bad thing. The owners of German supermarket and car companies are really the richest of the rich in Germany (okay and maybe the SAP guy on top). It would definitely be a net positive if someone manages to scrape and compare their prices. In the restaurant market it's one player abusing many small players. And honestly, I think the reason everyone cries when "Amazon…

> It would definitely be a net positive if someone manages to scrape and compare their prices.

There's a few projects doing that for DE / AT at least.

Re: Show HN: CLI to order groceries via reverse-engineered REWE API (Haskell)

#65
post #63

Earlier quoted context omitted.

Absolutely. For example, I want to ask it: Suggest me some vegetables I haven't ordered in recent weeks or stuff like this, and this is all possible.

Ideally it should also look up if they are currently in season in your location, so many possibilities!

You can already filter by `isRegional`. That's maybe close enough.

Re: Show HN: CLI to order groceries via reverse-engineered REWE API (Haskell)

#67

  > The suggestion engine (korb suggestion threshold) is re-implemented in Lean 4 with five mathematically proven properties: suggestions have positive frequency, are sorted descending, come from ordered and available products, exclude basket items, and respect the count limit.
This is amazing. I mean this literally in that I am amazed, but also figuratively in that I am delighted to watch the type-safe-mad build cool shit.

Re: Show HN: CLI to order groceries via reverse-engineered REWE API (Haskell)

#68

> The suggestion engine (korb suggestion threshold) is re-implemented in Lean 4 with five mathematically proven properties: suggestions have positive frequency, are sorted descending, come from ordered and available products, exclude basket items, and respect the count limit. This is amazing. I mean this literally in that I am amazed, but also figuratively in that I am delighted to watch the type-safe-mad build cool…

Thank you. Though I have to say I'm really not an expert in that domain and just starting to explore it myself.

Re: Show HN: CLI to order groceries via reverse-engineered REWE API (Haskell)

#69
post #56

I hope REWE is seeing this and offers an official MCP server. In the end we pay real money there. :D I wrote a skill some time ago to support me with "agentic groceries" on my own - it's the future of shopping I would say. My workflow: - I paste in urls or text for receipts I will cook this week - agent extracts the ingredients, calculates cups to ml and such, replaces meat with vegi ingredients, replaces some other…

This is also my exact workflow here. Thank you. I'm adding things that should be in the basket via Siri to my Obsidian notes. I also add recipes to that list or anything else. Then Claude checks that list once I want to do the shopping, looks through my favorites, and fills the baskets with all the items needed. I also use Claude to list the most frequently bought items for a template that always gets filled in.

Awesome. Are you exposing the api to Claude or just copy pasting the data for it to analyze? How are you feeding it the data?

Re: Show HN: CLI to order groceries via reverse-engineered REWE API (Haskell)

#70
post #69

Earlier quoted context omitted.

This is also my exact workflow here. Thank you. I'm adding things that should be in the basket via Siri to my Obsidian notes. I also add recipes to that list or anything else. Then Claude checks that list once I want to do the shopping, looks through my favorites, and fills the baskets with all the items needed. I also use Claude to list the most frequently bought items for a template that always gets filled in.

Awesome. Are you exposing the api to Claude or just copy pasting the data for it to analyze? How are you feeding it the data?

It is extremely simple. I just tell Claude: "Use korb to look at my order history and create a table with my most frequently bought items. Next time, fill my basket with the items I always buy." So something of that variation works.
Post reply on HN