Grocery price API
Download the OpenAPI 3.1 specification
Create a key in your account and keep it on your server. All endpoints return JSON. The same key works across search, comparisons and your credit balance.
Get a free API keySearch the catalogue
curl "https://grocerystats.com/api/v1/products?q=hellmann" -H "Authorization: Bearer $GROCERY_API_KEY"
One credit per successful page, including an empty result. The response has a data array with up to 20 retailer listings. For another page, pass the returned next_offset as offset. A null value marks the last page.
Compare a pack
curl "https://grocerystats.com/api/v1/products/305756/prices" -H "Authorization: Bearer $GROCERY_API_KEY"
Use a listing ID from search. This example starts with Morrisons’ 430 ml Hellmann’s Real Squeezy Mayonnaise. One credit returns the selected listing and available matches across supermarkets. Matching uses brand, product name and pack size. Some comparisons have one shop.
Each row includes a stable retailer listing ID, pack size and unit, shelf price in GBP, a separate offer price where recorded, the last verified price date and the retailer listing URL. A null offer means we have no separate offer recorded. Dates can vary between shops.
Scan a barcode for prices and food labels
curl "https://grocerystats.com/api/v1/products/barcode/5000169150191" -H "Authorization: Bearer $GROCERY_API_KEY"
One credit returns every matching shop. In MCP, use lookup_barcode with the same barcode. Send it as text to keep leading zeroes.
Some Asda and Morrisons matches come from a barcode read on the retailer’s pack image. Those rows include barcode_evidence.method set to retailer_pack_image and a barcode_evidence.source_url for the photo. barcode_observed_at dates the barcode check. observed_on dates the price.
For a shop-specific barcode, add ?retailer=sainsburys (or the issuing supermarket) to the URL. In MCP, pass retailer alongside barcode. If several listings share the same local code, the API returns 409 and uses zero credits. For packs without a known barcode, search by name and use the listing ID with /products/{id}/prices to get its available food label.
Each shop has a food_label. Its nutrition panels keep the retailer’s preparation and serving labels. Each column gives a basis, such as per_100_g, per_100_ml or per_serving, and nutrient amounts with units, including vitamins and minerals where recorded. A value such as “less than 0.5 g” includes a comparator. For the frozen blueberries above, Waitrose lists 45 kcal per 100 g and 36 kcal per 80 g serving.
Checked on 1 December 2026. 10,683 distinct cross-shop barcodes returned both energy and protein per 100 g or 100 ml. Across our six current supermarkets, 105,215 of 164,980 active, priced listings could be scanned when the shop was known. Barcode coverage is sparse for Asda and Morrisons; Aldi currently relies on listing-ID lookup.
Ingredients, allergen advice and dietary statements carry the retailer’s wording. Each available field has a source URL and observation time. A null field means unknown. A missing allergy statement tells you nothing about whether an allergen is present. Compare prices alongside pack_size_check, which flags conflicting or unverified pack sizes.
Credits and limits
curl "https://grocerystats.com/api/v1/credits" -H "Authorization: Bearer $GROCERY_API_KEY"
Balance checks are free. Successful catalogue calls include X-Credits-Used and X-Credits-Remaining. Your account can attempt 60 lookups per minute. A 401 means the key was rejected, 402 means credits are exhausted and 429 means retry after the interval in Retry-After. Failed lookups use zero credits.
See API pricing · Current dated coverage audit · Python walkthrough · Connect an assistant