API Reference

The Irish grocery shelf, as an API.

Aldi, Tesco, SuperValu, Dunnes and Lidl: catalogue, shelf prices, daily movers, promotions and category analytics. JSON or CSV, refreshed every morning, one key.

5retailers
~56kSKUs / day
15datasets
JSON · CSVformats
 GET /api/tesco/products
{
  "store": "tesco",
  "scrape_date": "2026-06-29",
  "products": [
    {
      "name": "Avonmore Super Milk 1L",
      "price": 1.49,
      "unit_price": 1.49,
      "unit_basis": "per L"
    }
  ]
}

Authenticating

Send your key on every request as an X-API-Key header (preferred) or an ?api_key= query parameter. Keep it private. A request without a key is refused (401).

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/tesco/products?limit=5"
How access is priced. API access is metered per record returned, against prepaid credit. Price on request. One record returned costs one credit (a barcode lookup is one credit per barcode found), requests that return no rows are free, and every response reports what it cost (X-Credits-Charged) and what is left (X-Credits-Remaining). Credits are valid for 30 days from purchase and the soonest to expire are spent first; check your balance, and what expires when, any time with GET /api/credits. For access and pricing, contact us or book a demo.

Using BasketWatch from an AI assistant (MCP)

Ask about Irish grocery prices in plain English inside ChatGPT, Claude or any assistant that supports remote MCP servers. There is nothing to install and no key to paste: add one link and sign in with your BasketWatch email.

Connector address
https://basketwatchireland.com/mcp
  • ChatGPT: open Plugins, select + and then Add custom MCP server, paste the address and choose OAuth. Custom MCP servers need developer mode, on Pro, Business or Enterprise.
  • Claude: open Settings, then Connectors, add a custom connector and paste the address.
  • Any other assistant that supports remote MCP servers: add the same address.
  • When asked, sign in with your email and the 6-digit code we send. Assistants that cannot sign in can use https://basketwatchireland.com/mcp/YOUR_KEY instead.

Then just ask, or hand it a photo of a receipt:

  • “Here’s my Dunnes receipt. Where would this shop have been cheapest?”
  • “What would the same receipt have cost on 6 August?”
  • “Which biscuits at Tesco have no palm oil?”
  • “Which drinks prices really rose since July, and which were just offers ending?”

Free without signing in: compare_prices (where a product is cheapest) and status. With an account: price_basket (a list or receipt, by names, the retailer’s item numbers or barcodes), price_basket_over_time (the same basket on two dates), price_movements (a whole category’s price moves between two dates, with real changes kept apart from promotions and loyalty prices), find_products (ingredients, nutrition, country of origin and offers, such as no palm oil, least sugar or Irish honey), get_product_details, get_price_history, search_products, lookup_barcode, get_promotions, recent_price_changes, newly_added_products, removed_products, compare_price_across_stores and check_credits.

One balance. With API access, the credits on your account are the same balance whether the records are pulled by curl, your own code or your assistant calling a tool. One record returned costs one credit, calls that return no rows are free, and GET /api/credits shows the balance and ledger at no charge. Connector credits bought on the pricing page are different: they work in the connector only.
Limits. Each tool returns what the assistant asks for, up to 50 rows a call for most tools, which keeps answers fast and spend predictable; it can always ask again for more. A signed-in assistant can make up to 600 tool calls a minute, far more than any conversation needs; the ceiling is only there to stop a runaway loop. For bulk work, use the HTTP API directly, where limit and offset page the full dataset.
Client only runs local servers? Reach the hosted connector through a bridge such as mcp-remote: npx mcp-remote https://basketwatchireland.com/mcp/<your-api-key>.

Conventions

  • One path shape: per store. Every dataset is /api/{store}/<dataset>, where {store} is aldi, tesco, supervalu, dunnes or lidl: the same path shape for all five. A few datasets are specific to some retailers (promotions: all but Aldi; out-of-stock: Tesco and Lidl; specialbuys: Aldi); these are flagged on the cards below.
  • CSV. Append .csv to any dataset for a CSV download (e.g. /api/dunnes/products.csv), ready for Excel, Power Query or pandas.
  • Snapshot date. Every response includes scrape_date (the daily snapshot the values come from).
  • Money. Prices are euro decimals; unit_price is per kg or per litre with unit_basis naming the unit.
  • Pagination. limit + offset page large results (default limit 100); q free-text filters name/brand. limit is clamped, not validated: an over-large value returns the cap rather than an error, so when paging, compare against your effective page size rather than assuming a short page means the end of the data.
  • Search. ?q= is a relevance-ranked full-text search over product name and brand, best match first. It is token-based rather than a literal substring, so word order does not matter and hyphens and accents are folded: coca cola finds Coca-Cola, and Moët and Moet are the same query. Pack sizes in the query are normalised too, so 2l, 2 litre and 2ltr all match the same products however the retailer spelled it. Adding ?sort=, ?category= or a historical ?on= switches to a filtered scan instead, because those override relevance ordering.
  • Shelf. Every product carries category_path, the department it is filed under, and shelf_path, the retailer's own shelf every level down, e.g. Fresh Food > Yoghurts > Kefir > Kefir Drinks. Both are read from each retailer's own listing every morning; Aldi's tree has two levels, so its shelf is its category. ?category= matches either one: part of the department name, or a whole level of the shelf. So category=Kefir is Tesco's Kefir aisle, while category=Milk does not pick up the Milk Chocolate Bars shelf.
  • What counts as a row. The unit limit counts depends on the request. Plain /products: one row per SKU, cap 100,000. With ?fields=: one row per SKU, cap 25,000. With ?from=/to=: one row per SKU per collection day, cap 50,000. So limit=1000 on a month-long range may return 33 products across 30 days, not 1,000 products.
  • Dates. Three ways to ask. on=YYYY-MM-DD is a single snapshot day. days=N is a lookback ending today. from=YYYY-MM-DD&to=YYYY-MM-DD is an explicit range, both ends inclusive, and either bound may be given alone. Ranges are capped at 400 days, and a malformed or inverted range returns 400 rather than being silently ignored.
  • A range on the catalogue returns a series. Without dates, /api/{store}/products is one row per SKU. With from=/to= it is one row per SKU per collection day, ordered by id then date so each SKU stays contiguous and pages cannot skip rows. Filters, ?fields= and the CSV form all still apply. A month of Tesco is roughly 675,000 rows, so page it: with a range the limit caps at 50,000.
  • Product copy and identity. Catalogue endpoints return prices by default. Add ?fields= to attach the rest of what we hold per SKU: ingredients (with its ingredients_source), regulated_name, abv (with its abv_source), nutrition (with its nutrition_source), origin (with origin_text and origin_source), product_type, pack, own_label, match_id, brand_canonical, pmp. Comma-separated, any combination; an unrecognised name returns 400 rather than being ignored. Retailers' own product descriptions are not supplied: description is accepted for older integrations and is always null (an empty column in CSV). Barcodes are not supplied either: every row keeps its barcodes key for older integrations, always [] (an empty column in CSV). We serve facts only: prices, pack size, unit price, numeric nutrition, ingredients and allergens as data.
  • pack: structured size. Pack size arrives from retailers as free text, and the same size is spelled many ways: Coca-Cola at one retailer alone appears as 2ltr, 2 Litre and 2L. Multipacks frequently state the volume only in the product name (24 x 330ml) while pack_size says 12 Pack. ?fields=pack returns a parsed object: unit_count, unit_size, unit_measure, total_ml, total_g, so you can compute €/litre or €/kg without writing your own parser. A size we cannot read returns nulls rather than a guess: a wrong volume silently corrupts every derived figure, so we would rather tell you we do not know.
  • match_id: the same product across retailers. The identifier of the cross-retailer match group this SKU belongs to, or null if it is unmatched. Join on it to line the same product up across banners instead of rebuilding the matching yourself. About half of the live catalogue is matched; most groups are joined on barcode, and match_id is how that work reaches you.
  • brand_canonical: a grouping key for the brand. The same brand reaches us spelled several ways because each retailer types it its own way: JACOB'S / JACOBS / Jacob's, NESTLE / NESTLÉ, Dr. Oetker / DR OETKER. Across the live catalogue 1,092 brands carry two or more spellings, so brand-level aggregation is wrong until they are folded together. This field is a normalised KEY for that (lower case, accents stripped, punctuation and spaces removed), not a display name: choosing a prettiest spelling would mean deciding which retailer's rendering is correct, so brand keeps the raw string exactly as published. It folds typography, not identity, so it will not merge Coke with Coca-Cola; that needs a curated synonym table rather than a rule.
  • pmp: price-marked packs. A pack printed with a price on the wrapper. Retailers put it in the product name rather than any structured field (Lucozade Sport 750ml PMP€2.50), so this parses it into is_pmp and marked_price. Small but real: 27 products live, and only 12 state the amount. The rest are a bare PMP with the figure dropped, so marked_price is null while is_pmp stays true; they are price-marked, we simply do not know at what.
  • own_label: a floor, not a census. True when the product's brand is a known retailer own-label brand, checked against the same curated list our matcher uses. Read it as a lower bound: it is accurate where a retailer brands own label under its own name, and it under-reports where a retailer runs many separate house marques. Measured against the live catalogue it flags 23.6% of Tesco and 28.3% of Dunnes, but only 33.9% of Aldi, whose true own-label share is far higher, because most of its marques are not on the list. We would rather understate it than infer true for every brand we do not recognise.
  • Lidl (tracked from 17 October 2026). Lidl's shelf price leaves out the drinks container deposit, as every store's does. A Lidl Plus price (Lidl's member scheme, applied at the till) is a member price: it is in clubcard_price, with Lidl's own wording in offer_text and its dates in offer_valid. A Lidl Plus multibuy (2 for €5) is offer_text only, never a member price, as a Tesco "Any 3 for €5" is. Its barcodes find it in the barcode lookup, apart from Lidl's own 8-digit pack codes, printed on some of its own-label packs, which the lookup does not cover. A product Lidl also lists on lidl.ie has that page as its url; otherwise url is empty. Ingredients are captured; nutrition, allergy advice and origin are not yet. Stock is Lidl's own flag at its reference store, so /api/lidl/out-of-stock works as Tesco's does.
  • Barcodes: a lookup, not a field. Since 18 November 2026 catalogue rows no longer carry the codes we hold. Every row keeps its barcodes key, so older integrations do not break, and it is always [] (an empty column in CSV); the row count and paging are unchanged. The codes still do their work: our cross-retailer matcher joins on them (match_id), and the barcode lookup takes a code you already hold and returns its products at every retailer. Share of each retailer's current range we hold a code for: Dunnes 99.7%, SuperValu 98.4%, Tesco 96.9%, Aldi 79.0%, Lidl 70.6%. Aldi's and Lidl's codes are mostly for their own brands, which no other retailer sells, so they identify the product rather than bridge it to a rival.

Stores: alditescosupervaludunneslidl

Catalogue & search

GET /api/{store}/products

Full catalogue with the current shelf price per SKU. Add ?q= to filter, ?limit=&offset= to page, ?fields= to attach product copy, and ?from=&to= to get every day in a range rather than a single snapshot.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/tesco/products?limit=1"
Response
[
  {
    "id": "tesco:320395135",
    "name": "Biona Organic Rye Sesame Crispbread 200g",
    "brand": "BIONA",
    "category_path": "Food Cupboard > Crackers, Rice Cakes & Breadsticks",
    "url": "https://www.tesco.ie/shop/en-IE/products/320395135",
    "pack_size": "200g",
    "first_seen": "2026-05-27",
    "last_seen": "2026-06-29",
    "scrape_date": "2026-06-29",
    "price": 2.75,
    "unit_price": 13.75,
    "unit_basis": "1 KG",
    "clubcard_price": null,
    "offer_text": null,
    "shelf_path": "Food Cupboard > Crackers, Rice Cakes & Breadsticks > Crackers > Crisp Bread, Cracker Bread & Rye Bread",
    "available": 1,
    "removed": 0
  }
]
GET /api/{store}/products?fields=pack,own_label,match_id

Structured pack size, own-label flag and the cross-retailer match id, for building a comparable panel.

Response
[
  {
    "id": "tesco:315853194",
    "name": "Coca-Cola Zero Sugar Soft Drink 2 Litre",
    "price": 2.85,
    "pack": {
      "unit_count": null, "unit_size": 2000.0, "unit_measure": "ml",
      "total_ml": 2000.0, "total_g": null
    },
    "own_label": false,
    "match_id": 1454102
  },
  {
    "id": "tesco:315469891",
    "name": "Coca-Cola Original Taste Soft Drink 24 x 330ml",
    "price": 15.00,
    "pack": {
      "unit_count": 24, "unit_size": 330.0, "unit_measure": "ml",
      "total_ml": 7920.0, "total_g": null
    },
    "own_label": false,
    "match_id": null
  }
]
GET /api/{store}/products?fields=ingredients,nutrition

Product data in bulk: ingredient declarations, the EU-1169 regulated name, ABV, per-100g nutrition and our product type, attached to the catalogue rows rather than fetched one SKU at a time. This is the catalogue route with a query string, not a separate endpoint, so every catalogue parameter still applies: q, category, on, from/to, paging and the CSV form.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/tesco/products?fields=ingredients,nutrition&limit=1"
Response
[
  {
    "id": "tesco:320395135",
    "name": "Biona Organic Rye Sesame Crispbread 200g",
    "price": 2.75,
    "ingredients": "Wholegrain Rye Flour*(86.5%), Sesame Seeds* (8.7%), Sea Salt, *= Certified Organic Ingredients",
    "nutrition": { "energy": 1566.0, "fat": 6.3, "carbs": 61.0, "sugar": 1.1, "protein": 11.0, "salt": 1.31 },
    "nutrition_source": "same_barcode:supervalu"
  }
]
  • One request per store. A whole catalogue comes back in a single call: the page cap with fields= is 25,000 rows and the largest store is about 22,000 SKUs. Ingredient lists are heavy, so size the request accordingly; limit and offset page it down if you would rather pull in chunks.
  • Add a date range for copy over time. ?fields=ingredients,nutrition&from=2026-08-01&to=2026-08-31 returns each SKU once per collection day with its label data attached, so you can track a price series and the label together. The label data itself is static and repeats on every row of a SKU; only the price fields move.
  • Coverage is not 100%. Retailers publish this data unevenly. Ingredients: roughly two thirds of the catalogue, about 92% of Lidl and only ~21% of Aldi. Nutrition, of food products: SuperValu and Dunnes about 78%; Tesco most products, from Tesco's own product data and filling in daily; Aldi about half; Lidl not yet. Non-food carries none. ABV: SuperValu and Dunnes drinks from their own listings, about 7 in 10 Tesco drinks (see below) and a handful of Aldi rows; none yet for Lidl. Absent values come back as null, never as an error.
  • Nutrition is a per-100g/ml object (energy in kJ, fat, carbs, sugar, protein, salt in g). It always arrives with nutrition_source: retailer (the retailer's own data), same_barcode:supervalu or same_barcode:dunnes (taken from another retailer's product with the identical barcode, the same manufacturer product), aldi_uk (Aldi's own table from its UK range for the same product, used only where the UK and Irish ingredient lists are identical), or openfoodfacts. A retailer's own values always come first; Open Food Facts is used only where the retailer and the other sources here publish none, at any of the five retailers. Open Food Facts values are © Open Food Facts contributors, available under the Open Database License.
  • Ingredients always arrive with ingredients_source: retailer, same_barcode:tesco, same_barcode:supervalu or same_barcode:dunnes (the list of that retailer's product with the identical barcode, used where a retailer gives none or Aldi's stops short), or openfoodfacts. A list from Open Food Facts is never used by find_products to show that a product is free from something. Open Food Facts lists are © Open Food Facts contributors, available under the Open Database License.
  • Alcohol strength (abv, percent by volume) always arrives with abv_source: retailer (stated on the product's own listing), units (worked out from the alcohol units per bottle or can the retailer states, which is how Tesco mostly gives it: 9.0 UK units in a 75cl bottle is 12%; units are rounded to a tenth, so a strength worked out this way can be a little off) or same_barcode:supervalu / same_barcode:dunnes (the identical barcode's strength at that retailer, used where Tesco states none or its units do not add up). A strength is given only when it is plausible for the drink and its sources do not contradict each other; otherwise it is null.
  • Origin lists every country the product's label states, where it was made and where its main ingredient is from, normalised to country names: Ireland, or Ireland, EU, non-EU for chicken goujons produced in Ireland using EU and non-EU chicken, or China, Spain, Argentina for a honey blend. origin_text keeps the statement in its own words ("Slaughtered in Ireland, Prepared in Ireland", "China (71%), Spain (21%) & Argentina (8%)") and origin_source says where it came from: tesco, supervalu or dunnes (the retailer's own statement, including its regulated product name, such as "A Blend of EU and Non-EU Honeys"), aldi (Aldi's own product description), packshot (printed on Aldi's pack, read from its product photo), same_barcode:<store> (another retailer's statement for the identical barcode), label_claim (a claim in the product's own description or ingredients, such as "Irish reared Hereford beef" or "sourced only from EU bee hive apiaries") or name_claim (an origin word in a product name, such as "Irish Diced Lamb"). One barcode is one label: where retailers publish different parts of it, a product's origin lists every country any of them states. Packing locations, company addresses and SuperValu's yes/no "source in Ireland" flag (which marks an Irish supplier, not where the food is from) are not origin and are left out. null where nothing is stated. Filtering by origin in find_products keeps a product only when every country its label names is the one asked for: "Made in Ireland" from "EU chicken" is not Irish chicken, and is counted separately rather than returned. Northern Ireland counts as Irish.
  • Allergy advice (allergy_advice) is what the retailer states a product contains or may contain, kept apart from the ingredient list: Contains: Milk. May contain: Nuts, Wheat. It comes from each retailer's own allergy field (SuperValu, Tesco, Aldi) or the Allergy Advice section of a Dunnes description; Lidl's is not captured yet. A filter that excludes an ingredient in find_products also leaves out a product whose allergy advice names it, and counts those in left_out_may_contain. null where the retailer publishes none: check the pack.
GET /api/{store}/price-history

Every price observation per SKU across a date range: one row per product per collection day. This is the time series behind the single-day snapshot that on= returns, and the endpoint to use for trend, elasticity or promo-cadence work.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/tesco/price-history?from=2026-08-01&to=2026-08-31&q=milk"
Response
[
  {
    "id": "tesco:320395135",
    "name": "Biona Organic Rye Sesame Crispbread 200g",
    "brand": "BIONA",
    "category_path": "Food Cupboard > Crackers, Rice Cakes & Breadsticks",
    "pack_size": "200g",
    "scrape_date": "2026-08-01",
    "price": 2.79,
    "unit_price": 13.95,
    "unit_basis": "1 KG",
    "clubcard_price": null,
    "offer_text": null,
    "was_price": null,
    "offer_valid": null,
    "available": 1
  },
  { "id": "tesco:320395135", "scrape_date": "2026-08-02", "price": 2.75 }
]
  • Narrow it. q= (name or brand), category=, or ids= with a comma-separated list of product ids. Unfiltered, a month of Tesco is around 675,000 rows, so page it with limit (default 1,000, maximum 50,000) and offset.
  • Ordering. Rows come back ordered by product id, then date, so each SKU's series stays contiguous and paging cannot skip or repeat a row.
  • Default span. With no from, the last 30 days ending at to (or today).
  • The label, day by day. Add fields= with any of nutrition, ingredients, allergy_advice, origin and abv to give every row the value as the retailer's own product data stated it that day: ?ids=tesco:320395135&fields=nutrition,ingredients shows whether a product's sugar or recipe changed, and on which day. Each value is the one last read on or before that day. Every product is read daily at Tesco, daily for Dunnes ingredients, allergy advice and origin, and at least monthly elsewhere; a new value is kept only when the retailer's data changes. Kept from 16 October 2026 (Aldi's origin and allergy advice from 15 October 2026), so earlier days are null; only each retailer's own data is used, never a value copied from another store. Aldi has no nutrition or ingredients here: it publishes no nutrition of its own and cuts its ingredient lists short. Rows cost the same with or without it.
GET /api/{store}/products/count

Fast catalogue size for a store, without returning rows.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/dunnes/products/count"
Response
{ "total": 15069 }
GET /api/product/{product_id}

A single product: current price, unit price, pack, plus its full price history. The row also carries the product data (ingredients, regulated_name, abv, nutrition, product_type). For copy across many SKUs use ?fields= on the catalogue route rather than looping here.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/product/tesco:320395135"
Response
{
  "product": {
    "id": "tesco:320395135",
    "name": "Biona Organic Rye Sesame Crispbread 200g",
    "brand": "BIONA",
    "url": "https://www.tesco.ie/shop/en-IE/products/320395135",
    "image_url": "https://digitalcontent.api.tesco.com/v2/media/ghs/.../1014470272.jpeg",
    "category_path": "Food Cupboard > Crackers, Rice Cakes & Breadsticks",
    "pack_size": "200g",
    "pack_qty": 200.0,
    "pack_unit": "G",
    "first_seen": "2026-05-27",
    "last_seen": "2026-06-29",
    "ingredients": "Wholegrain Rye Flour*(86.5%), Sesame Seeds* (8.7%), Sea Salt, *= Certified Organic Ingredients",
    "regulated_name": "Organic Rye Sesame Crispbread",
    "abv": null,
    "abv_source": null,
    "nutrition": { "energy": 1566.0, "fat": 6.3, "carbs": 61.0, "sugar": 1.1, "protein": 11.0, "salt": 1.31 },
    "nutrition_source": "same_barcode:supervalu",
    "product_type": "other"
  },
  "history": [
    { "scrape_date": "2026-05-27", "price": 2.79 },
    { "scrape_date": "2026-06-29", "price": 2.75 }
  ]
}
GET /api/barcode/{code}

Look a barcode up: every product carrying that GTIN, EAN or UPC code, across Aldi, Tesco, SuperValu, Dunnes and Lidl in one call, in the same row shape as the catalogue. Send the code as printed or scanned: spaces, hyphens and leading zeros are ignored, so 05000127014084, 5000127014084 and the 12-digit UPC-A form of a code all find the same products. ?store= narrows the search to one retailer and ?fields= attaches the product copy exactly as on the catalogue (ingredients, nutrition and the rest; nutrition comes with its nutrition_source, and is null where we do not hold it). Live listings come first, in store order. A product its retailer has since delisted is still returned, flagged removed: 1, because its identity data still stands. Each row's matched_barcodes says which code found it. Billed per barcode found, not per row: a lookup costs one credit whether the product is listed at one retailer or several, and a code we do not hold returns found: false and costs nothing.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/barcode/5000127014084?fields=ingredients,nutrition"
Response
{
  "barcode": "5000127014084",
  "found": true,
  "products": [
    {
      "store": "tesco",
      "id": "tesco:253158380",
      "matched_barcodes": ["5000127014084"],
      "name": "Kellogg's Corn Flakes Breakfast Cereal 1kg",
      "brand": "Kellogg's",
      "pack_size": "1kg",
      "price": 4.99,
      "removed": 0,
      "barcodes": [],
      "ingredients": "Maize, Barley Malt Extract, Sugar, Salt, Niacin, Iron, Vitamin B6, Riboflavin, Thiamin, Folic Acid, Vitamin D, Vitamin B12",
      "nutrition": { "energy": 1604.0, "fat": 0.9, "carbs": 84.0, "sugar": 8.0, "protein": 7.0, "salt": 1.1 },
      "nutrition_source": "retailer"
    },
    {
      "store": "supervalu",
      "id": "supervalu:1011636000",
      "matched_barcodes": ["5000127014084"],
      "name": "Kellogg's Corn Flakes Cereal (1 kg)",
      "brand": "Corn Flakes",
      "pack_size": "1 kg",
      "price": 5.25,
      "removed": 0,
      "barcodes": [],
      "ingredients": "Maize, BARLEY Malt Extract, Sugar, Salt, Niacin, Iron, Vitamin B6, Riboflavin, Thiamin, Folic Acid, Vitamin D, Vitamin B12",
      "nutrition": { "energy": 1604.0, "fat": 0.9, "carbs": 84.0, "sugar": 8.0, "protein": 7.0, "salt": 1.1 },
      "nutrition_source": "retailer"
    },
    {
      "store": "dunnes",
      "id": "dunnes:100114495",
      "matched_barcodes": ["5000127014084"],
      "name": "Kellogg's Corn Flakes Breakfast Cereal 1kg",
      "price": 4.99,
      "removed": 0
    }
  ]
}

Rows carry the catalogue's other fields too (unit_price, offer_text, clubcard_price, url, scrape_date and so on); the example is trimmed for length.

GET /api/barcodes?codes={code},{code},...

The same lookup for a list: up to 100 codes per request, comma-separated. Every product found comes back once in products, with matched_barcodes listing the codes it carries; codes we do not hold are listed in not_found and anything that is not a barcode in invalid, so a list can be checked for coverage in one call. ?store= and ?fields= work as above. Billing is one credit per code found (the matched count), however many retailers list each product; the misses and invalid codes in a list are free.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/barcodes?codes=5000127014084,5000157024671,5099999999990"
Response
{
  "requested": 3,
  "valid": 3,
  "matched": 2,
  "products": [
    { "store": "tesco", "id": "tesco:252261477", "matched_barcodes": ["5000157024671"], "name": "Heinz Beans in Tomato Sauce 415g" },
    { "store": "tesco", "id": "tesco:253158380", "matched_barcodes": ["5000127014084"], "name": "Kellogg's Corn Flakes Breakfast Cereal 1kg" },
    { "store": "supervalu", "id": "supervalu:1011892000", "matched_barcodes": ["5000157024671"], "name": "Heinz Baked Beans (415 g)" },
    { "store": "supervalu", "id": "supervalu:1011636000", "matched_barcodes": ["5000127014084"], "name": "Kellogg's Corn Flakes Cereal (1 kg)" },
    { "store": "dunnes", "id": "dunnes:100111378", "matched_barcodes": ["5000157024671"], "name": "Heinz Baked Beans 415g" },
    { "store": "dunnes", "id": "dunnes:100114495", "matched_barcodes": ["5000127014084"], "name": "Kellogg's Corn Flakes Breakfast Cereal 1kg" }
  ],
  "not_found": ["5099999999990"],
  "invalid": []
}
GET /api/compare?q={query}

Cross-retailer comparison: each matched product with its price and unit price in every store where we found it online that day, plus how many stores it spans (coverage).

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/compare?q=heinz%20ketchup"
Response
{
  "as_of": "2026-06-29",
  "matches": [
    {
      "match_id": 561961,
      "brand": "Heinz",
      "pack": "910g",
      "category": "Food Cupboard",
      "display_name": "Heinz Tomato Ketchup 910g",
      "coverage": 4,
      "stores": {
        "aldi": {
          "id": "000000000000336799",
          "name": "Tomato Ketchup 910g",
          "price": 3.99,
          "unit_price": 4.38,
          "unit_basis": "1 KG",
          "was_price": null,
          "clubcard_price": null,
          "scrape_date": "2026-06-29"
        },
        "tesco": {
          "id": "tesco:254722768",
          "name": "Heinz Top Down Squeezy Tomato Ketchup 910g",
          "price": 5.50,
          "unit_price": 6.04,
          "unit_basis": "1 KG",
          "was_price": null,
          "clubcard_price": 4.50,
          "scrape_date": "2026-06-29"
        },
        "supervalu": {
          "id": "supervalu:1003041000",
          "name": "Heinz Tomato Ketchup (910 g)",
          "price": 5.50,
          "unit_price": 6.04,
          "unit_basis": "1 KG",
          "was_price": null,
          "clubcard_price": null,
          "scrape_date": "2026-06-29"
        },
        "dunnes": {
          "id": "dunnes:100684285",
          "name": "Heinz Tomato Ketchup 910g",
          "price": 5.50,
          "unit_price": 6.04,
          "unit_basis": "1 KG",
          "was_price": null,
          "clubcard_price": null,
          "scrape_date": "2026-06-29"
        }
      }
    }
  ]
}
GET /api/aldi/specialbuys

Aldi Specialbuys, the rotating middle-aisle range: active lines grouped by category, plus recently ended and newly listed buys. Aldi-only.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/aldi/specialbuys?limit=1"
Response
{
  "active_by_category": [
    { "category_path": "SpecialBuys > Clothing", "count": 54, "avg_price": 6.63 }
  ],
  "recently_ended": [
    { "id": "000000000708833001", "name": "Bottle with Carabiner", "brand": "CROFTON", "category_path": "SpecialBuys > Kitchen", "last_seen": "2026-06-26", "last_price": 3.99 }
  ],
  "newly_listed": [
    { "id": "000000000738367001", "name": "Adult Fiction", "brand": "HACHETTE", "category_path": "SpecialBuys > Hobbies and Crafts", "first_seen": "2026-06-28", "launch_price": 3.99 }
  ]
}

Changes & lifecycle

GET /api/{store}/changes

Day-over-day movements in three separate buckets: shelf-price increases / decreases, promotion changes (started / ended / changed), and loyalty-price changes. The loyalty bucket (clubcard_changes) reflects each retailer's own scheme: Tesco Clubcard, SuperValu Real Rewards, Lidl Plus; Dunnes and Aldi have no loyalty pricing, so it stays empty. Each response covers a single retailer (the example below is Tesco). Accepts ?on=YYYY-MM-DD.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/tesco/changes"
Response
{
  "date": "2026-06-29",
  "prev_date": "2026-06-28",
  "shelf_increases": [
    {
      "id": "tesco:254656789",
      "name": "Flora Original Spread 500g",
      "brand": "FLORA",
      "category_path": "Fresh Food > Butter, Spreads & Margarine",
      "url": "https://www.tesco.ie/shop/en-IE/products/254656789",
      "pack_size": "500g",
      "prev_price": 2.50,
      "price_now": 2.75,
      "delta": 0.25,
      "pct": 10.0,
      "promo": null
    }
  ],
  "shelf_decreases": [],
  "promotions": [
    {
      "id": "tesco:317990690",
      "name": "Cuisine de France Lye Pretzel 85g",
      "brand": "CUISINE DE FRANCE",
      "kind": "started",
      "offer_now": "Any 3 for €3 Clubcard Price",
      "was_price": null,
      "shelf_price": 1.75
    }
  ],
  "clubcard_changes": [
    {
      "id": "tesco:313603753",
      "name": "Garnier Ambre Solaire Bronze Oil 150ml",
      "brand": "GARNIER",
      "kind": "added",
      "clubcard_now": 8.50,
      "clubcard_prev": null,
      "shelf_price": 17.00,
      "offer_text": "€8.50 Half Price Clubcard Price"
    }
  ]
}
GET /api/{store}/new-products

Newly listed SKUs first seen in the latest snapshot. Use days=N for a lookback, or from=/to= for an explicit range (both ends inclusive).

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/tesco/new-products"
Response
[
  { "id": "tesco:324436415", "name": "Adams Polishes Detail Spray 473ml", "brand": "ADAM'S POLISHES", "category_path": "Home & Living > DIY & Car Care", "first_seen": "2026-06-29", "launch_price": 13.00 }
]
GET /api/{store}/removed

Delisted SKUs absent from the latest snapshot (two-snapshot confirmed).

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/dunnes/removed"
Response
[
  { "id": "dunnes:100221987", "name": "Dunnes My Family Fabric Conditioner 3L", "brand": "Dunnes Stores", "category_path": "Dunnes > Household & Cleaning > Laundry", "first_seen": "2026-05-30", "last_seen": "2026-06-27", "last_price": 3.50 }
]
GET /api/tesco/out-of-stock

Present-but-unavailable lines (the retailer's availability flag), distinct from removed. Tesco and Lidl both publish a per-SKU availability flag; the other retailers don't.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/tesco/out-of-stock"
Response
{
  "date": "2026-06-29",
  "count": 882,
  "items": [
    { "id": "tesco:317208754", "name": "Sheep Hill Sauvignon Blanc 75cl", "brand": "A GABB FAMILY WINE", "category_path": "Drinks > Wine", "url": "https://www.tesco.ie/shop/en-IE/products/317208754", "pack_size": "75cl", "price": 18.00, "clubcard_price": 9.00 }
  ]
}
GET /api/{store}/shrinkflation

Pack-size reductions: same product, smaller pack, with the old and new size and the change in price per kg, litre or item. Prices are regular shelf prices (the was-price while an offer runs). A reduction is listed only when the records confirm it: each size held for at least three days, the retailer's own unit price agrees, and changes in how the retailer spells, rounds or counts a pack are ignored. Returns an empty array until a pack-size reduction is detected; the example below shows the shape.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/tesco/shrinkflation"
Response
[
  {
    "id": "tesco:250114433",
    "name": "Cadbury Dairy Milk",
    "brand": "CADBURY",
    "category_path": "Food Cupboard > Confectionery",
    "pack_size": "180g",
    "start_date": "2026-04-01",
    "end_date": "2026-06-29",
    "start_price": 2.50,
    "end_price": 2.50,
    "start_pack_qty": 200.0,
    "start_pack_unit": "G",
    "end_pack_qty": 180.0,
    "end_pack_unit": "G",
    "pack_shrink_pct": 10.0,
    "start_unit_price": 12.50,
    "end_unit_price": 13.89,
    "unit_basis": "1 KG",
    "unit_price_pct": 11.1,
    "headline_pct": 11.1
  }
]
GET /api/{store}/volatile

Most volatile SKUs: products whose price has changed most often over the tracked window. Set the window with days=N, or bound it exactly with from=/to=.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/supervalu/volatile"
Response
[
  { "id": "supervalu:1500119003", "name": "Coca-Cola 1.75L", "brand": "Coca-Cola", "category_path": "Drinks > Minerals", "distinct_prices": 4, "observations": 24, "min_price": 1.85, "max_price": 2.95, "avg_price": 2.31, "range_pct": 59.5 }
]

Promotions

GET /api/{store}/promotions

Live deals: products on offer, with was-price, offer text and loyalty pricing (Clubcard / Real Rewards / Lidl Plus). Aldi runs no multibuys or member prices: its list is the price cuts and offers its own site shows. Add current=1 for only the products the shop still lists: without it, a product that left the range while on offer stays at the end of the list with its last offer.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/dunnes/promotions"
Response
[
  {
    "id": "dunnes:100827389",
    "name": "Vanish Oxi Action Stain Remover Spray 500ml",
    "brand": "Vanish",
    "category_path": "Dunnes > Household & Cleaning > Laundry",
    "url": "https://www.dunnesstoresgrocery.com/sm/delivery/rsid/520/product/100827389",
    "pack_size": "500ml",
    "last_seen": "2026-06-29",
    "scrape_date": "2026-06-29",
    "price": 5.00,
    "unit_price": 10.00,
    "unit_basis": "1 L",
    "offer_text": "SAVE €2.50",
    "was_price": 7.50,
    "offer_valid": "2026-06-16 23:00:00Z - 2026-07-21 22:59:59Z",
    "clubcard_price": null
  }
]

Analytics

GET /api/{store}/kpis

Headline numbers for the latest snapshot: catalogue size, active SKUs today vs yesterday, promotion share, out-of-stock count, average price, price moves and new lines.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/tesco/kpis"
Response
{
  "total_products": 21056,
  "active_today": 20518,
  "active_yesterday": 20473,
  "active_delta": 45,
  "on_promo_today": 7473,
  "promo_pct_today": 36.4,
  "out_of_stock_today": 882,
  "avg_price_today": 7.28,
  "avg_price_yesterday": 7.26,
  "prices_up_today": 0,
  "prices_down_today": 0,
  "new_today": 29
}
GET /api/{store}/category-index

Per-category average price over time, with the SKU count behind each point: the series behind the dashboard graphs.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/tesco/category-index"
Response
{
  "Food Cupboard": [
    { "date": "2026-05-27", "avg_price": 3.51, "n": 4333 },
    { "date": "2026-06-29", "avg_price": 3.52, "n": 4385 }
  ],
  "Drinks": [
    { "date": "2026-05-27", "avg_price": 11.17, "n": 1452 }
  ]
}

Every category name here works as a ?category= filter on the same store's catalogue, count, CSV and price-history routes, and returns the products counted under it. On Dunnes the index groups sub-departments into departments, so ?category=Fresh Fruit & Vegetables returns Fresh Fruit, Fresh Vegetables, Salad Vegetables, Herbs and the rest together.

GET /api/{store}/category-summary

Per-department roll-up: SKU count, average price and price churn, with the retailer browse URL.

Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://basketwatchireland.com/api/tesco/category-summary"
Response
[
  { "category": "Food Cupboard", "sku_count": 4385, "avg_price": 3.52, "changed": 0, "changed_pct": 0.0, "price_delta_pct": 0.0, "url": "https://www.tesco.ie/shop/en-IE/browse/food-cupboard/all" }
]

Errors, limits & freshness

StatusMeaning
200OK. JSON body (or CSV for .csv paths).
401Missing or invalid key on an endpoint that requires one.
404Unknown store, dataset or product id.
429Rate limit exceeded: back off and retry.

Freshness. We collect prices every morning, Irish time, and check Tesco and SuperValu again later in the morning. Every response carries scrape_date so you always know the snapshot you are reading; filled or repaired rows are listed on our Data notes page.

Beyond the API

Need historical back-catalogue, scheduled bulk CSV exports, or a natural-language / agent interface? An Agent & MCP endpoint is available, and bespoke historical pulls are available on request. Talk to us, or get an API key to start.