Autoscraping the price tags, as the sibling suggested, would be nice. However, in real retail the codes on the tags are regularly as small as possible and sometimes do not even correspond with the one on the product (don't know how this works). Means you need to scan them really close, individually. You also can't rely on placement for augmenting missing/trimmed textual data on tags with identifying the actual item on the shelf as in many places it's consistently messed up (as if on purpose).
The computer in the store that drives the POS scanners then can print out the shelf label stickers and a poor sod goes and replaces the stickers on the shelves.
This is all a big secret of course, so asking a grocery store for their prices is going to get you nowhere.
You could try scraping the websites, but often the price for online shopping is different to what is in store.
Best bet would be to offer an incentive for people to scan their receipts into your app. I don't know what kind of incentive you could build to do that, maybe for every 5 receipts you could offer a coupon or something. Not much of an idea and a massive PITA, it would also only give prices on those things that people bought.
edit: also gets complicated for multi-item discounts or combination discounts
These are typically used to mass-import your competitors prices just by walking through the shop with a camera mounted on your shoulder. Or phone in a shirt pocket with the camera facing forward.
There’s a few white-label companies that offer these apps. Many of the barcode companies offer their own version of this app. They’re not usually available on the AppStores.
The reason for this is that each competitor requires slight customisation (font, price location relative to each barcode, etc) to get the best results.
Incentivize the behavior... somehow... and hope for the best.
You can skirt laws like Uber did and sometimes change them. But be aware of the how far you can skirt them. If you're making a political statement, be extra careful.
In our case, shops were unhappy because of the business model. They overcharged on some things and made others look cheap, but to whomever they targeted, they wanted to look cheap. When we compared a grocery list between multiple shops, it turns out most had similar totals. It would have encouraged user behavior where they buy chicken in this shop, salmon there, diapers in another shop. And because all of these were loss leaders, it would have been bad for the stores overall. Also consider the protectionist environment that brings about tariffs and the current hostile climate against "tech bros", and it's a doubly bad idea - if the law doesn't get you, the mob will.
But if they share it with you willingly, it's normally legal and less work. We had a phase when implementing GST where companies would advertise that they were not raising prices. All you have to do is verify this. You can even charge an advertising fee.
Your grocery store would have significant data that it feeds its e-ink displays with. Capturing those updates could be fun if you’re looking for a project…