Independent product · Built by Joe Keene
Grocery prices your app can inspect.
Grocery Stats turns dated UK supermarket observations into a JSON API and an MCP service for AI assistants. I built it as my own product, from collection and matching through to customer access and credit metering.
This is an independent product case study. It is not commissioned client work or an official supermarket partnership.
The problem
Apps need comparable product prices, but a name alone is a weak match. Pack sizes differ, loyalty prices have conditions and yesterday’s observation is not a live quote. Collecting more rows does not resolve those distinctions.
The design needed to retain the evidence behind a record and make uncertainty visible to the developer using it.
The approach
- Keep the source listing and observation date alongside each price.
- Preserve shelf and offer prices separately, including recorded offer conditions.
- Use exact barcodes where available and flag agreeing, conflicting or unverified pack sizes.
- Retain missing fields as unknown instead of filling them from another retailer.
Making it a usable product
The service includes passkey accounts, named API keys, monthly free credits, paid top-ups and a subscription credit allowance. A successful catalogue lookup commits its debit before returning; balance checks and failed lookups do not spend a credit.
The same catalogue is available through authenticated MCP tools. A public sample lets someone try the service without an API key, and the documentation distinguishes the sample from the commercial catalogue.
Engineering decisions
Cloudflare Workers serves the app and API, with D1 for account and catalogue data. Scheduled collection and downstream imports remain distinct from the customer-facing service. Capture dates and coverage audits expose where data is old or incomplete.
Database work is bounded and coalesced under bursts, while account quotas and credit balances remain committed in the database. The public site measures consenting visits, and private conversion counts help identify which pages lead to a new account and a first successful lookup.
Inspect the result
- Coverage and matching methodology
- Tesco price API example
- A 50-pack price comparison with source records
- Runnable Python example
- Claude and ChatGPT connection guide
The public comparison is a dated sample, not a claim about the cheapest supermarket overall. The product makes that boundary explicit.
Working on a similar data problem?
I help teams assess integrations, data architecture and applied AI workflows, then test the important assumptions. Email [email protected] with what you are building.