# Sainsbury's Scraper – UK Grocery Prices (`unnoted/sainsburys-grocery-search`) Actor

Search Sainsbury's groceries by keyword: product name, shelf price, Nectar price, unit price, offers, availability, EAN barcodes, categories, rating and image. Sort by price or rating, or keep only products on offer. Export JSON, CSV or Excel. No login needed. Unofficial.

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

## Pricing

from $4.75 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

### What does Sainsbury's Scraper – UK Grocery Prices do?

Sainsbury's Scraper collects the products Sainsbury's online groceries shows for your search terms: name, shelf price, Nectar price, unit price, current offers, availability, EAN barcodes, categories, customer rating and image, as clean rows you can export or call by API.

Unofficial, not affiliated with Sainsbury's.

**Main features:** search by keyword, up to 100,000 products per run, no login needed, export to JSON, CSV or Excel, and full API and scheduling support on Apify.

### What data can you get from Sainsbury's?

Each product is one row with these fields:

| Field | Description |
|---|---|
| `productUid` | Sainsbury's product id (always filled) |
| `name` | Product name, with pack size (always filled) |
| `url` | Link to the product page on sainsburys.co.uk (always filled) |
| `retailPrice` | Shelf price in pounds, what you pay without a Nectar card |
| `nectarPrice` | Price with a Nectar card, when a Nectar price applies |
| `wasPrice` | Price before a price cut, when the product is reduced for everyone |
| `currency` | Always GBP |
| `unitPrice` | Shelf price per unit of measure, in pounds (e.g. per litre) |
| `unitMeasure` | The unit the unit price is per: litre, kg or each |
| `isAvailable` | Whether the product can be ordered |
| `promotions` | Current offers as the site words them (e.g. Save 25% with Nectar, Buy any 2 for £1.50) |
| `eans` | EAN barcodes of the product |
| `categories` | Sainsbury's categories the product is listed in (e.g. Fresh milk) |
| `imageUrl` | Product image |
| `ratingAverage` | Average customer rating, 1 to 5 stars; empty when there are no ratings |
| `ratingCount` | Number of customer ratings |
| `isAlcoholic` | Whether the product contains alcohol |
| `badges` | Product labels shown on the site (e.g. New, BRITISH, ORGANIC, ALDI PRICE MATCH\*) |
| `isFeatured` | Whether the product sits in a promoted "Featured" slot at the top of the results |
| `position` | Position in the results (1 = first result) |
| `searchQuery` | The search term that found it |
| `scrapedAt` | When the product was collected (ISO 8601) |

### How to scrape Sainsbury's with Sainsbury's Scraper – UK Grocery Prices

1. Open Sainsbury's Scraper – UK Grocery Prices on Apify and go to the **Input** tab.
2. In **Search terms**, enter `milk`.
3. In **Max products**, enter `20`.
4. Click **Start** and wait for the run to finish. A small run like this one takes under a minute.
5. Open the **Output** tab to see the results, or download them as JSON, CSV, Excel or HTML.

### Input

See the **Input** tab for every option. The fields:

| Field | Name | What it does | Default |
|---|---|---|---|
| `searchQueries` | Search terms | What to search for on Sainsbury's groceries, one per line, as you would type it in the search box (e.g. milk, chocolate, nappies, red wine). |  |
| `sort` | Sort by | The order of the results, as on the Sainsbury's search page. Options: `relevance` (Relevance), `priceAsc` (Price (low to high)), `priceDesc` (Price (high to low)), `rating` (Rating (high to low)). | `"relevance"` |
| `offersOnly` | Only products on offer | Return only products with an offer or a Nectar price (the site's own filter). | `false` |
| `maxItems` | Max products | Maximum number of products in total, across all searches. You pay only for products saved. | `100` |

Example input:

```json
{
  "searchQueries": [
    "milk"
  ],
  "maxItems": 20
}
```

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. One real result:

```json
{
  "productUid": "8172497",
  "name": "Sainsbury’s 1L Fresher For longer Filtered Semi Skimmed Milk",
  "url": "https://www.sainsburys.co.uk/gol-ui/product/sainsbury-s-1l-fresher-for-longer-filtered-semi-skimmed-milk",
  "retailPrice": 1.5,
  "nectarPrice": null,
  "wasPrice": null,
  "unitPrice": 1.5,
  "currency": "GBP",
  "unitMeasure": "litre",
  "isAvailable": true,
  "promotions": [],
  "eans": [
    "0000000514828"
  ],
  "categories": [
    "Fresh milk"
  ],
  "imageUrl": "https://assets.sainsburys-groceries.co.uk/gol/8172497/image.jpg",
  "ratingAverage": null,
  "ratingCount": 0,
  "isAlcoholic": false,
  "badges": [
    "New"
  ],
  "isFeatured": true,
  "position": 1,
  "searchQuery": "milk",
  "scrapedAt": "2026-10-08T20:45:05.413Z"
}
```

### How much does it cost to scrape Sainsbury's?

Sainsbury's Scraper – UK Grocery Prices uses pay-per-event pricing: **$4.75 per 1,000 products** (Product). You pay only for products saved to the dataset; platform usage is included in the price. Each run also has Apify's standard start fee of a fraction of a cent.

| Products | Price |
|---|---|
| 100 | $0.47 |
| 1,000 | $4.75 |
| 10,000 | $47.50 |

Set **Max items** (and the run's maximum cost in the run options) to cap what a run can spend. The run stops when either limit is reached.

### Use cases

- **Grocery price monitoring:** track the shelf and Nectar prices of the products you follow every day.
- **Competitor pricing:** compare Sainsbury's prices and unit prices with other UK supermarkets for the same EANs.
- **Promotions research:** list every product on offer for a search and how the offers are worded.
- **Brand and category analysis:** see which products and brands a search returns, their ratings and price bands.
- **Inflation and basket tracking:** price a fixed basket of groceries on a schedule and chart it over time.

### Tips

- Turn on **Only products on offer** to get just the deals; it is the site's own filter, so you don't pay for the rest.
- Use **Sort by price** with a small Max products to get the cheapest (or dearest) items for a search.
- Match products across shops by their EAN barcodes; many products list more than one.
- Products found by more than one search are saved once, so overlapping searches don't cost twice.
- Schedule the Actor daily to build a price history, then send it to Google Sheets or your database.

### FAQ

#### Is it legal to scrape Sainsbury's?

Sainsbury's Scraper – UK Grocery Prices collects only data that Sainsbury's shows publicly to every visitor, and it leaves out personal data such as private profiles and contact details. Our Actors are ethical and do not extract private user data. Results could still contain personal data in titles or descriptions written by uploaders. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. You are responsible for how you use the data.

#### Can I use it through an API?

Yes. Every Apify Actor has an API: start runs, pass input and read results over HTTP, or use the JavaScript and Python clients. See the **API** tab on the Actor page for ready-made examples.

#### Can I schedule runs and connect other apps?

Yes. Use Apify **Schedules** to run Sainsbury's Scraper – UK Grocery Prices every hour, day or week, and integrations (Make, Zapier, Google Sheets, webhooks and more) to send the results where you need them.

#### Why did I get fewer results than expected?

The run stops at **Max items** or at the run's maximum cost, whichever comes first. Sainsbury's may also return fewer results for rare search terms. Duplicates across search terms are saved once. Check the run's `RUN_SUMMARY` record in the key-value store for the inputs that returned nothing.

#### What if it stops working?

Sites change. We run a daily check of our own and fix breakages quickly. If something looks wrong, open an issue in the **Issues** tab with the run link and we'll look at it.

#### What is the difference between retailPrice and nectarPrice?

retailPrice is the shelf price anyone pays. When a product has a Nectar price, nectarPrice is the lower price for Nectar card holders. wasPrice is filled when the product is reduced for everyone. A few products are listed without a price at a given moment; their retailPrice is empty.

#### Are the prices for my local store?

They are the prices of Sainsbury's online groceries, for a delivery with no postcode set. Prices in a given store can differ.

#### How many products can one search return?

As many as the site finds: a broad search such as chocolate gives over 1,500 products. The Actor stops at your Max products.

#### Why are the first results marked isFeatured?

Sainsbury's shows a few promoted products at the top of a search. They are real products and are saved like the others, with isFeatured set to true.

### Not included

No personal data: customer reviews and reviewer names are not collected, only the average rating and the number of ratings. Store stock levels, delivery slots and full product pages (ingredients, nutrition) are not included.

### More Actors from us

- [AliExpress Search Scraper – Products & Prices](https://apify.com/unnoted/aliexpress-product-search)
- [BBB Scraper – Business Ratings & Accreditation](https://apify.com/unnoted/bbb-business-search)
- [Bilibili Scraper – Video Search & Stats API](https://apify.com/unnoted/bilibili-video-scraper)
- [Bumeran Jobs Scraper – LATAM Job Listings](https://apify.com/unnoted/bumeran-job-listings)
- [Foundit Jobs Scraper – India Job Listings API](https://apify.com/unnoted/foundit-job-listings)
- [Google Jobs Scraper – Job Listings API](https://apify.com/unnoted/google-jobs-listings)
- [Google Play Reviews Scraper – App Reviews API](https://apify.com/unnoted/google-play-reviews-scraper)
- [Google Trends Scraper – Interest & Related Queries](https://apify.com/unnoted/google-trends-data)
- [Idealo Scraper – Price Comparison Data](https://apify.com/unnoted/idealo-price-search)
- [Kleinanzeigen Scraper – Listings & Prices](https://apify.com/unnoted/kleinanzeigen-listings-scraper)
- [Mercari Japan Scraper – Listings & Prices API](https://apify.com/unnoted/mercari-japan-search)
- [Resident Advisor Scraper – RA Event Listings](https://apify.com/unnoted/resident-advisor-events)
- [Tokopedia Scraper – Product Search & Prices](https://apify.com/unnoted/tokopedia-product-search)
- [Workday Jobs Scraper – Any Careers Site](https://apify.com/unnoted/workday-jobs-scraper)
- [Yandex Maps Scraper – Places & Business Data](https://apify.com/unnoted/yandex-maps-places)

# Actor input Schema

## `searchQueries` (type: `array`):

What to search for on Sainsbury's groceries, one per line, as you would type it in the search box (e.g. milk, chocolate, nappies, red wine).

## `sort` (type: `string`):

The order of the results, as on the Sainsbury's search page.

## `offersOnly` (type: `boolean`):

Return only products with an offer or a Nectar price (the site's own filter).

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

Maximum number of products in total, across all searches. You pay only for products saved.

## Actor input object example

```json
{
  "searchQueries": [
    "milk"
  ],
  "sort": "relevance",
  "offersOnly": false,
  "maxItems": 20
}
```

# Actor output Schema

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

One item per product.

## `runSummary` (type: `string`):

Items saved, inputs done, and how complete each field was.

# 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 = {
    "searchQueries": [
        "milk"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("unnoted/sainsburys-grocery-search").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 = {
    "searchQueries": ["milk"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("unnoted/sainsburys-grocery-search").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 '{
  "searchQueries": [
    "milk"
  ],
  "maxItems": 20
}' |
apify call unnoted/sainsburys-grocery-search --silent --output-dataset

```

## MCP server setup

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

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/JiylQyLcaodOaDLbg/builds/JIxST7cnJQViUAxUE/openapi.json
