# Sainsbury's Scraper: Nectar Prices, Offers & Stock (`moggedhq/sainsburys-nectar-price-scraper`) Actor

Get Sainsbury's products with regular price, Nectar price, offer text with dates, unit price, pack size, brand, barcode where shown and availability. Search, categories or product links for scheduled UK grocery price checks next to Tesco Clubcard prices. About $0.004 per product. No login.

- **URL**: https://apify.com/moggedhq/sainsburys-nectar-price-scraper.md
- **Developed by:** [mogged](https://apify.com/moggedhq) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.20 / 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.
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: Nectar Prices, Offers & Stock

For retail price analysts, brands and comparison services monitoring Sainsbury's groceries. Collect ordinary and Nectar prices, dated promotions, unit prices, barcodes, brand, pack size and catalogue availability. About **$0.004 per product**: **20 products cost $0.08**, plus the minimum **$0.00005 start charge**. No login or account cookies.

Shares Tesco retail input and field names.

### Understand the prices

`price` is the ordinary online amount in GBP; `memberPrice` and `nectarPrice` hold an advertised single-item Nectar amount. For a simple Nectar offer, the source puts that member amount in `retail_price`. The Actor uses its explicit `original_price` for the ordinary amount and preserves the source amount separately. Missing ordinary amounts stay null.

`regularPrice` is the supplied before-promotion amount, or the current ordinary amount when no separate base price exists. It is not historical backfill.

Multi-buy and conditional offers keep their wording, identifiers, types and dates in `promotions`. Their basket total never becomes a single-item member price. A Nectar multi-buy can have `memberProgram: "Nectar"` with a null `memberPrice`.

`unitPrice` uses the ordinary basis; `nectarUnitPrice` preserves the member basis separately. Retain `unitOfMeasure`, `unitPriceMeasureAmount`, `priceMeasure` and `productType`, especially for loose or variable-weight products.

### Price and availability scope

Every row has `priceScope: "online"`. `catalogueInStock` is the retailer's public availability signal; physical quantities stay null.

`locations` accepts UK postcode context. One postcode is echoed in `location`, and `requestedLocations` retains them all. With no verified serving store, `storeId` and `storeName` stay null and `availabilityPostcodeVerified` is false. `inStock` is null with postcode context, otherwise it repeats the catalogue signal. Postcodes do not multiply product charges.

### What you get

The family fields follow a readable verdict. A missing value stays null. Each dataset product has `recordType: "PRODUCT"`; free explanatory rows have `recordType: "NOTE"`.

| Field | Meaning |
| --- | --- |
| `verdict` | Product, ordinary price, optional Nectar amount and catalogue availability in one readable line. |
| `retailer`, `country`, `currency` | Sainsbury's, GB and GBP. |
| `storeId`, `storeName`, `location` | No assumed serving store; the single requested postcode is retained where supplied. |
| `productId`, `sku`, `productUid`, `sainId` | Numeric product UID plus the separate internal alphanumeric identifier. These are not barcodes. |
| `gtin`, `gtins`, `gtinSource` | Source-labelled EAN values with valid check digits, excluding product-ID padding and internal padded codes. Leading zeros are retained. |
| `sourceEans` | The original retailer identifier array, which can include internal codes. Do not treat this raw array as validated GTINs. |
| `title`, `brand`, `brandSource` | Product name and explicitly labelled brand metadata where supplied. |
| `size`, `packSize`, `packSizeSource` | Package expression extracted from the product title, with that origin stated. |
| `price`, `regularPrice`, `onSale` | Ordinary online price, supplied base price and presence of a public promotion. |
| `promoText`, `promoType`, `promoStart`, `promoEnd` | Main source promotion and its source timestamps. |
| `memberPrice`, `nectarPrice`, `memberProgram` | Single-item Nectar amount and programme, independently of the ordinary price. |
| `unitPrice`, `unitOfMeasure`, `unitPriceMeasureAmount`, `nectarUnitPrice` | Ordinary unit-price basis and a separate member unit amount. |
| `inStock`, `catalogueInStock`, `stockLevel` | Scoped availability; quantities remain null. |
| `rating`, `reviewCount` | Public aggregate rating and count where supplied. Individual reviews are not delivered. |
| `category`, `categories` | Source category names and identifiers. The first supplied category is not a guessed full hierarchy. |
| `url`, `imageUrl`, `scrapedAt` | Product page, public image and UTC observation time. |
| `promotions` | All returned offer IDs, wording, start/end timestamps, original amounts, types and Nectar flags. |
| `offerText`, `offerStart`, `offerEnd` | Sainsbury-specific aliases of the main family promotion fields. |
| `aldiPriceMatch`, `labels` | True only when a source label explicitly says Aldi Price Match; other shelf labels are retained. |
| `isTasteTheDifference`, `isOwnBrand` | Explicit name or brand-based range flags. |
| `priceMeasure`, `productType`, `sourceRetailPrice` | Source price basis, product classification and original JSON amount for interpretation. |
| `details` | Optional source descriptions, attributes and returned detail sections. |
| `priceScope`, `availabilityScope`, `availabilityPostcodeVerified`, `requestedLocations` | Scope evidence that should remain attached to exports. |
| `sourceType`, `sourceInput`, `sourceUrl` | What selected this observation and the first-party data endpoint used. |

The overview and deals views display price, offer, stock-scope and postcode fields. Set `dealsOnly` for a promotion-only dataset or read the free `DEALS` JSON. Free `SUMMARY` gives product and dated-offer counts, source outcomes, duplicate exclusions, failures and spending-limit stops.

### Start in three steps

1. Enter search terms, numeric product UIDs or supported Sainsbury's page links.
2. Set `maxItems` for the run and `maxItemsPerSearch` for each source. Add postcode context or optional details if useful.
3. Run, inspect SUMMARY, then export JSON, CSV or Excel from the dataset.

The exact form prefill searches milk, retains postcode SW1A 1AA and caps the result at 20 products. A live 13 November 2026 prefill returned 20 unique priced products and two dated Nectar promotions. The default proxy object added by the form was tested with the actual built schema.

### Observed test results

On 13 November 2026, all 36 varied cloud cases passed, including five postcode contexts and spending-limit edges. Two separate runs each delivered 1,100 unique products, all with numeric ordinary prices; 365 and 482 rows carried dated promotions. One bulk run completed after a real saved-before-charge reboot with exactly 1,100 product charges. Ten independent live product-page checks matched ordinary, member and unit prices. These are observed results, not a guarantee of future source access.

A compact row from the live milk prefill:

```json
{"retailer":"Sainsbury's","productId":"357937","title":"Sainsbury's British Semi Skimmed Milk 2.27L (4 pint)","currency":"GBP","price":1.75,"memberPrice":null,"unitPrice":0.77,"unitOfMeasure":"ltr","location":"SW1A1AA","inStock":null,"priceScope":"online","availabilityPostcodeVerified":false}
```

### Inputs and examples

| Input | Behaviour |
| --- | --- |
| `searchTerms` | Array such as `["milk", "coffee"]`; every term is a separate source. |
| `startUrls` | Product, grocery search, leaf-category, Nectar or exact promotion-list links. |
| `productIds` | Numeric source UIDs such as `["357937", "3216590"]`. |
| `locations` | UK postcode context; it does not verify a serving store. |
| `storeIds` | Exact store selection is unavailable anonymously; a supplied value produces a free explanatory note. |
| `maxItemsPerSearch` | Maximum new products per source, default 20, maximum 5,000. |
| `maxItems` | Global distinct product cap, default 20, maximum 10,000. |
| `dealsOnly` | Keep products with public source promotions. |
| `includeDetails` | Add available descriptions and detail metadata, with no extra product fee. |
| `proxyConfiguration` | Default datacenter first, GB residential after refusal; explicit buyer settings are preserved. |

Only canonical inputs are supported; aliases such as `maxResults` are ignored. Invalid runtime input produces free notes; the platform can reject schema-invalid requests before a run.

Two searches return at most 40 distinct products for $0.16 base pricing plus the start charge:

```json
{
  "searchTerms": ["milk", "coffee"],
  "maxItemsPerSearch": 20,
  "maxItems": 40
}
```

A leaf-category URL includes the retailer's `c:` category identifier. The Actor resolves that identifier through the public taxonomy rather than guessing an ID from a name:

```json
{
  "startUrls": [
    "https://www.sainsburys.co.uk/gol-ui/groceries/drinks/milk-and-milk-drinks/fresh-milk/c:1019342"
  ],
  "maxItemsPerSearch": 100,
  "maxItems": 100,
  "dealsOnly": true
}
```

The equivalent `/groceries/browse/` URL also works. `categoryId=12431` selects that explicit legacy category ID. Unresolvable landing pages produce a note.

Known-product monitoring avoids search ambiguity:

```json
{
  "productIds": ["357937", "3216590"],
  "maxItems": 2,
  "includeDetails": true
}
```

Current `/groceries/product/` and legacy `/gol-ui/product/` links resolve through their matching page SKU. Exact `/gol-ui/promo-lister/` links select their published promotion list.

### Pricing and spending limits

Each distinct product UID is charged once per run. Searches, links and postcode context are deduplicated. Scheduled runs are fresh charged observations.

| Products | Base | Bronze | Silver | Gold |
| --- | --- | --- | --- | --- |
| 20 | $0.0800 | $0.0760 | $0.0720 | $0.0640 |
| 100 | $0.4000 | $0.3800 | $0.3600 | $0.3200 |
| 1,000 | $4.0000 | $3.8000 | $3.6000 | $3.2000 |

Add the minimum $0.00005 start charge. No setup or details fee applies. Failures, empty matches, duplicates, notes and SUMMARY have no product charge. Rows without a positive ordinary price or dated promotion are excluded. Empty runs can still incur the platform start charge.

Apify's maximum total charge is checked before another billable row is saved. When the remaining allowance cannot cover a product, collection stops cleanly and SUMMARY records it. Durable dataset rows, acknowledged charge receipts and authoritative run charge counts are reconciled after a reboot to avoid charging a saved product twice.

### Monitor prices every day

Save a task using product UIDs, a category shelf or repeatable searches. Create an Apify schedule, select its frequency and timezone, then attach a completion webhook to your workflow. Join snapshots on `country + productId`, retaining `scrapedAt`, currency, scope and promotion conditions.

Build history by storing completed snapshots and joining on product ID and observation time. Compare ordinary and Nectar amounts separately. Source failures are missing observations, never zero prices; empty searches are labelled `no-matches`.

Make, Zapier, n8n, Sheets and databases can consume the outputs. Preserve GTINs as text and null separately from false. Historical backfill is unavailable.

### API and automation

Use your own Apify token to start a run and retrieve its dataset and SUMMARY after completion.

```bash
curl -X POST 'https://api.apify.com/v2/acts/moggedhq~sainsburys-nectar-price-scraper/runs' \
  -H 'Authorization: Bearer YOUR_APIFY_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"searchTerms":["milk"],"maxItems":20}'
```

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("moggedhq/sainsburys-nectar-price-scraper").call(
    run_input={"searchTerms": ["coffee"], "maxItems": 20}
)
rows = list(client.dataset(run["defaultDatasetId"]).iterate_items())
summary = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("SUMMARY")
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('moggedhq/sainsburys-nectar-price-scraper').call({
  searchTerms: ['coffee'], dealsOnly: true, maxItems: 20
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

### Use with AI agents (MCP)

Connect to `https://mcp.apify.com` and request Sainsbury's ordinary prices, Nectar prices, unit prices and dated offers. Supply search terms or exact products and a sensible `maxItems` cap. Ask the agent to inspect SUMMARY, preserve null values, retain all multi-buy conditions and keep `availabilityPostcodeVerified` attached to any stock claim. The same canonical input and retail field names make a Tesco and Sainsbury's workflow easier to combine.

### Limits

This independent tool reads public signed-out catalogue information. It does not log in, accept account cookies, solve CAPTCHAs, read orders, access personal Nectar offers or establish a customer's checkout eligibility. Online amounts are observations, not a guarantee of the final delivery charge or variable-weight total. Delivery fees, substitutions and unpublished store reductions are outside coverage.

Postcodes are retained as context. Their serving store and local availability are not verified, and physical stock quantities remain null. Regional and store-specific conditions can differ from the anonymous catalogue. Several postcodes do not generate separate observations of an identical national price.

Product detail completeness varies. Some barcodes are internal retailer codes or fail validation and are excluded from `gtin`; raw identifiers remain separately labelled. Pack sizes are extracted from product titles. Brands require labelled metadata. Offer start dates can be present in the source JSON without being displayed as text on the public product page. All dates are retained as supplied rather than converted into assumed local end-of-day times.

Nectar and general offer links select the combined Offers & Nectar Prices catalogue. Filter `memberProgram` or the promotion Nectar flag for member offers. Broad landing pages can need a leaf-category link. Result caps are ceilings, not promises of that many matches. Pagination observes a changing catalogue. Source changes, refusals and outages can interrupt collection; paced retries and source outcomes make interruptions visible.

### FAQ

**Does `price` include Nectar?** It is the ordinary online amount. A qualifying single-item Nectar amount stays in `memberPrice` and `nectarPrice`.

**Why does a Nectar deal have no member price?** It can be a multi-buy or another conditional promotion. Its complete wording and dates remain in `promotions`.

**Are product UID and sainId barcodes?** No. They are retailer identifiers. GTIN comes only from source-labelled EAN data that passes the checks described above.

**Are empty searches charged?** They have no product charge and a `no-matches` outcome. The minimum platform start charge can still apply.

# Actor input Schema

## `searchTerms` (type: `array`):

Find Sainsbury products such as milk, coffee or chicken. Leave empty when using only product IDs or URLs.

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

HTTPS Sainsbury grocery search, product, category (with categoryId) or offer links. Anonymous public data only.

## `productIds` (type: `array`):

Numeric Sainsbury product UIDs, such as 357937. Product UIDs and sainId are retailer identifiers, never barcodes.

## `locations` (type: `array`):

UK postcodes retained as requested context. Anonymous access does not verify the serving store or local stock. Every row has priceScope online; postcode-specific inStock stays null.

## `storeIds` (type: `array`):

Exact store selection is unavailable anonymously. A supplied store ID produces a free note; remove storeIds to collect national online prices.

## `maxItemsPerSearch` (type: `integer`):

New product rows per search or category. A product found by multiple sources or postcodes is charged once per country.

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

Global distinct product limit. About $0.004 per product plus a minimum $0.00005 platform start fee. Twenty products cost about $0.08.

## `dealsOnly` (type: `boolean`):

Keep advertised promotions. Nectar member amounts are separate from ordinary prices; multi-buy totals remain in offer text.

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

Include product descriptions and source detail sections when present. No extra product fee.

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

Default datacenter selection first, then GB residential only after refusal. Explicit disable, country, groups or custom URLs are preserved.

## Actor input object example

```json
{
  "searchTerms": [
    "milk"
  ],
  "locations": [
    "SW1A 1AA"
  ],
  "maxItemsPerSearch": 20,
  "maxItems": 20,
  "dealsOnly": false,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `products` (type: `string`):

No description

## `deals` (type: `string`):

No description

## `summary` (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 = {
    "searchTerms": [
        "milk"
    ],
    "locations": [
        "SW1A 1AA"
    ],
    "maxItemsPerSearch": 20,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("moggedhq/sainsburys-nectar-price-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 = {
    "searchTerms": ["milk"],
    "locations": ["SW1A 1AA"],
    "maxItemsPerSearch": 20,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("moggedhq/sainsburys-nectar-price-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 '{
  "searchTerms": [
    "milk"
  ],
  "locations": [
    "SW1A 1AA"
  ],
  "maxItemsPerSearch": 20,
  "maxItems": 20
}' |
apify call moggedhq/sainsburys-nectar-price-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moggedhq/sainsburys-nectar-price-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/kjGoYFdpV6bTLpjOw/builds/LrO21kDe5xgW09kdL/openapi.json
