# Sainsbury's Scraper - UK Grocery Prices, Nectar Offers & EAN (`scrapewise/sainsburys-scraper`) Actor

Scrape Sainsbury's groceries by search, category or product link: name, price, unit price, Nectar price and offers with dates, was price, EAN barcode, availability, rating, reviews, categories and images. Optional description and category path. Price and offer filters.

- **URL**: https://apify.com/scrapewise/sainsburys-scraper.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.90 / 1,000 product delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Sainsbury's Scraper - UK Grocery Prices, Nectar Offers & EAN

**Scrape Sainsbury's online groceries (UK) without a login: product name, price, unit price with measure, Nectar price and every offer with its start and end date, was price, EAN barcode, availability, customer rating and reviews count, categories, labels such as Chilled or New, and the product image. Search by keyword, read whole categories, or paste product links. Turn on details for the description, important information, full category path and all product images.**

For price-monitoring and price-comparison tools, FMCG brands and category managers tracking shelf prices and promotions, retail analysts following UK grocery inflation, and anyone who needs Sainsbury's prices with barcodes as clean rows.

### Sainsbury's scraper at a glance

- **Price:** US$ 2.50 per 1,000 products on the Free plan, plus US$ 0.003 per run; product details US$ 1.00 per 1,000 extra
- **Search, category or product link:** keywords, any category page (`/c:<number>`) and single product pages
- **Offers done properly:** Nectar price flag, offer text, type, start and end dates, the was price, and the original unit price
- **EAN barcodes** on every product, ready to match against other retailers
- **Filters:** price range, only products on offer, and the site's sort orders (relevance, price, rating)
- **Fast:** 60 products per page, about 120 products with full details in under a minute
- **No login, no browser.** Wrong links and empty searches return free error rows

### Quick start

```json
{
  "searchQuery": ["oat milk"],
  "maxItems": 50
}
```

A whole category, cheapest first, offers only:

```json
{
  "startUrls": ["https://www.sainsburys.co.uk/gol-ui/groceries/hot-drinks-soft-drinks-and-water/c:1019463"],
  "sortBy": "price-asc",
  "onlyOnPromotion": true,
  "maxItems": 0
}
```

Product links with details:

```json
{
  "startUrls": ["https://www.sainsburys.co.uk/gol-ui/product/cravendale-filtered-fresh-semi-skimmed-milk-2l-fresher-for-longer"],
  "includeDetails": true
}
```

### Input

| Field | What it does |
|---|---|
| `searchQuery` | Search terms, one per line. |
| `startUrls` | Category pages (`/c:<number>`), product pages or search result pages on sainsburys.co.uk. |
| `maxItems` | Cap per search term or category (60 per page). 0 = all. Default 50. |
| `sortBy` | relevance, price-asc, price-desc or rating. |
| `minPrice`, `maxPrice` | Price range in GBP. |
| `onlyOnPromotion` | Only products with a current offer. |
| `includeDetails` | Also read each product page (description, category path, images). |
| `proxyConfiguration` | Apify Proxy by default. |

Field names used by other Sainsbury's tools (`queries`, `maxResultsPerQuery`, `categoryUrls`, `productUrls`) are accepted too, so an existing Task or integration keeps working after you switch.

### Example output

A real row from a run of 23 Oct 2026 with details on (important information shortened):

```json
{
  "type": "product",
  "productId": "3216620",
  "name": "Cravendale Filtered Fresh Semi Skimmed Milk 2L Fresher for Longer",
  "url": "https://www.sainsburys.co.uk/gol-ui/product/cravendale-filtered-fresh-semi-skimmed-milk-2l-fresher-for-longer",
  "price": 2.0,
  "currency": "GBP",
  "unitPrice": 1.0,
  "unitMeasure": "1ltr",
  "originalUnitPrice": 1.33,
  "wasPrice": 2.65,
  "onPromotion": true,
  "nectarPrice": true,
  "promotions": [
    {
      "text": "Buy 1 for 2",
      "type": "SIMPLE_FIXED_PRICE",
      "group": "simple",
      "nectar": true,
      "startsAt": "2026-10-08T23:00:00Z",
      "endsAt": "2026-10-27T00:00:00Z",
      "originalPrice": 2.65,
      "url": "https://www.sainsburys.co.uk/gol-ui/promo-lister/10771663"
    }
  ],
  "available": true,
  "eans": ["5000181024043"],
  "rating": 4.6879,
  "reviewsCount": 330,
  "categories": [{"id": "12431", "name": "Fresh milk"}, {"id": "461873", "name": "Dairy"}],
  "category": "Fresh milk",
  "labels": ["Chilled"],
  "imageUrl": "https://assets.sainsburys-groceries.co.uk/gol/3216620/image.jpg",
  "description": "Pasteurised, homogenised, semi-skimmed, fresh filtered milk",
  "categoryPath": ["Hot drinks, soft drinks & water", "Milk & milk drinks", "Fresh milk"],
  "images": ["https://assets.sainsburys-groceries.co.uk/gol/3216620/1/2365x2365.jpg"],
  "sourceUrl": "https://www.sainsburys.co.uk/gol-ui/groceries/hot-drinks-soft-drinks-and-water/c:1019463",
  "scrapedAt": "2026-10-23T13:46:05Z"
}
```

### What data the Sainsbury's scraper returns

| Field | What it is |
|---|---|
| `productId`, `sainId`, `name`, `url` | The product and its page |
| `price`, `currency` | Shelf price in GBP |
| `unitPrice`, `unitMeasure`, `originalUnitPrice` | Price per unit (litre, kg, each) and the unit price before the offer |
| `wasPrice`, `onPromotion`, `nectarPrice`, `promotions` | Offer details: text, type, Nectar, start and end, original price, offer page |
| `available` | In stock online |
| `eans` | EAN barcodes |
| `rating`, `reviewsCount` | Customer rating and number of reviews |
| `categories`, `category`, `labels`, `badges` | Categories and labels (Chilled, New, Frozen...) |
| `isAlcoholic`, `isSponsored`, `productType`, `searchRank` | Flags and position in the list |
| `imageUrl` | Main image |
| `description`, `details`, `importantInformation`, `categoryPath`, `images` | With `includeDetails` on |
| `sourceUrl` | The search, category or link that found the product |

Fields that are empty for a product are left out of its row.

### Pricing

Pay per event, no monthly fee.

| Event | Free plan price |
|---|---|
| Product delivered | US$ 0.0025 (US$ 2.50 per 1,000) |
| Product details (only with `includeDetails`) | US$ 0.001 (US$ 1.00 per 1,000) |
| Actor start | US$ 0.003 per run |

| Job | Cost at the Free plan price |
|---|---|
| 50 products for one search | about US$ 0.13 |
| A category of 1,000 products | about US$ 2.50 |
| 1,000 products with details | about US$ 3.50 |

Error rows, duplicates and products removed by your filters are never charged.

### Errors

| `errorCode` | Meaning |
|---|---|
| `INVALID_URL` | The link is not a Sainsbury's product, category or search page |
| `NOT_FOUND` | The product does not exist or is no longer sold |
| `NO_RESULTS` | No products for this search or category |
| `INVALID_INPUT` | A value in the input is not valid |
| `BLOCKED` | The site did not answer after several tries; run again |
| `NOT_REACHED` | The run stopped (time, spending limit) before this source |

### Integrations, scheduling and AI agents

- **Schedules:** run a Task daily on your categories to track price changes and when Nectar offers start and end.
- **Export** to JSON, CSV, Excel or HTML from the dataset, or read it through the Apify API.
- **Make, n8n, Zapier** and webhooks: push price drops to Google Sheets, Slack or your pricing tool.
- **AI agents:** the Actor works through the Apify MCP server, so an agent can ask "which oat milks are on Nectar offer at Sainsbury's this week and what is the price per litre?" and get structured rows back.

### FAQ

**Which links work?** Category pages (the link ends in `/c:` and a number), product pages (`/gol-ui/product/...`) and search result pages.

**Are prices for a specific store?** They are the online groceries prices Sainsbury's shows to a visitor without a postcode.

**What is the Nectar price?** A lower price for Nectar card holders. `nectarPrice` is true when the offer is a Nectar offer, and the offer row has its dates.

**Does it need a Sainsbury's account?** No.

**Is it legal to scrape Sainsbury's?** The Actor reads public product listings without logging in and collects no personal data. You are responsible for how you use the data.

### Limitations

- Nutrition tables and ingredients that the site shows only as images are not collected.
- Delivery slots and store stock by postcode are not collected.

If this Actor saves you time, a short review on the Store page helps other people find it.

### Related scrapers

- [Tesco Scraper](https://apify.com/scrapewise/tesco-scraper): Tesco groceries with Clubcard prices.
- [Google Shopping Scraper](https://apify.com/scrapewise/google-shopping): product prices across stores.
- [Pepper Deals Scraper](https://apify.com/scrapewise/pepper-deals-scraper): hotukdeals and other deal sites.

### Changelog

- **23 Oct 2026, 0.1:** first release. Search, categories and product links, Nectar offers with dates, EAN, rating, details.

This Actor collects only publicly available data. Independent tool, not affiliated with J Sainsbury plc.

# Actor input Schema

## `searchQuery` (type: `array`):

Words to search on Sainsbury's groceries, one per line, for example oat milk, coffee pods or dog food.

## `startUrls` (type: `array`):

Optional: sainsburys.co.uk category pages (links with /c:<number>), product pages or search result pages, one per line.

## `maxItems` (type: `integer`):

Cap for each search term or category, following the site's pages (60 per page). 0 = all. Default 50.

## `sortBy` (type: `string`):

Order of the results, as on the site.

## `minPrice` (type: `string`):

Optional: only products at or above this price, for example 1.50.

## `maxPrice` (type: `string`):

Optional: only products at or below this price.

## `onlyOnPromotion` (type: `boolean`):

On: only products with a current offer or Nectar price. The rest are free.

## `includeDetails` (type: `boolean`):

On: also read each product page for the description, important information, full category path and all images. Adds the 'Product details' charge per product.

## `proxyConfiguration` (type: `object`):

Apify Proxy by default. Change it only if you know you need to.

## Actor input object example

```json
{
  "searchQuery": [
    "oat milk"
  ],
  "maxItems": 50,
  "sortBy": "relevance",
  "onlyOnPromotion": false,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `resultsCsv` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQuery": [
        "oat milk"
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/sainsburys-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQuery": ["oat milk"],
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/sainsburys-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQuery": [
    "oat milk"
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapewise/sainsburys-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapewise/sainsburys-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/frJEinBD9UyxlxbIZ/builds/XGx2gdhvFPjIQ4kEl/openapi.json
