Scraper API
Sainsbury'ssainsburys.searchAvailable
Sainsbury’s search
A page of the shop's results: each product's id, name, price, the price before a Nectar offer, unit price, offers, rating, barcodes and picture.
Give it Words to search Sainsbury's groceries for, and optionally a page, a page size and an order.
1 unit a run, for runs that return data. Runs that fail cost nothing. How units work
- Counted
- 1 unit a run
- Inputs
- 4, 1 required
- Record
- 22 fields
- A run takes
- up to 5 minutes
- Records kept
- 7 days
- Measured
- its success, on the status page
POST/v1/scrapers/sainsburys.search/runs
sent, and answered
a record of the run22 fields
ok1 unit a run
A record this scraper returned for this input. The first 9 of its 22 fields are set down here; the whole record is below.

What it is used for
- Track grocery prices
- Search the same products on a schedule and keep each one's
price,unit_priceandprice_before_offer, to see prices and offers move. - Compare a basket
- Read the products of a shopping list and set their unit prices side by side, to cost a basket or match it to another shop's.
- Watch a category's offers
- Search a category and list the products with
offers, the Nectar prices among them, and the days each offer ends.
What you send
Words to search Sainsbury's groceries for, and optionally a page, a page size and an order. These are its 4 inputs, as its schema has them.
querystring Required- What to search for, as typed into the shop's search box (
semi skimmed milk). pageinteger Optional- Which page of the results, from 1.Default
1 max_resultsinteger Optional- How many products a page holds: 30 (default) or 60.Default
30 sortstring Optional- The order: relevance (default), price low to high, price high to low, or customer rating.Default
relevance
A request, ready to send
It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/sainsburys.search/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"query":"semi skimmed milk"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("sainsburys.search", {"query": "semi skimmed milk"})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("sainsburys.search", { query: "semi skimmed milk" });
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "sainsburys.search", map[string]any{"query": "semi skimmed milk"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("sainsburys.search", Map.of("query", "semi skimmed milk"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run sainsburys.search --input 'query=semi skimmed milk'Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
What comes back
A page of the shop's results: each product's id, name, price, the price before a Nectar offer, unit price, offers, rating, barcodes and picture. A record has 22 fields. One we could not read is null, never an empty string or a zero.
{
"product_id": "1208450",
"url": "https://www.sainsburys.co.uk/gol-ui/product/sainsburys-british-semi-skimmed-milk-so-organic-2-27l-4-pint",
"name": "Sainsbury's British Semi Skimmed Milk, SO Organic 2.27L (4 pint)",
"price": 2.55,
"price_before_offer": null,
"currency": "GBP",
"sold_by": null,
"weights": [],
"unit_price": 1.12,
"unit": "ltr",
"unit_amount": 1,
"available": true,
"offers": [],
"rating": 4.5352,
"review_count": 284,
"barcodes": [
"0000001208450"
],
"categories": [
"Fresh milk",
"Dairy",
"Dairy & chilled essentials"
],
"labels": [
"ORGANIC",
"BRITISH"
],
"image": "https://assets.sainsburys-groceries.co.uk/gol/1208450/image.jpg",
"fetched_at": "2026-11-19T18:23:57.387139Z",
"position": 1,
"total_results": 26
}The scraper returned this record for the input above, reading a saved copy of the page, not the live site.
The fields of a record
product_idstring- Sainsbury's id of the product (
357937).sainsburys.producttakes it. urlstring or null- The product's page on sainsburys.co.uk.
namestring- The product's name as the shop writes it, with its size.
pricenumber or null- The price the shop shows first, in pounds. Where an offer for Nectar members sets the price of one item, this is that price, and
price_before_offeris the price without it. Null for an item priced by its band of weight (seeweights). price_before_offernumber or null- The price without the offer that sets
price, in pounds; null when no such offer applies. currencystring- The currency of the prices: always
GBP. sold_bystring or nullkgfor a product priced by weight (loose fruit and vegetables); null for one sold by the item.weightslist of objects- For an item whose weight varies (a joint, a pack of chicken fillets), the bands of weight it comes in and the price of each;
priceis then null. Empty for any other product. unit_pricenumber or null- The price per
unit_amountunit, in pounds, as the shop compares products. unitstring or null- The unit of
unit_priceas the shop writes it:kg,ltr,ea(each),100g... unit_amountnumber or null- How many
unitthe unit price is for, usually 1. availableboolean or null- Whether the shop offers the product for delivery now.
offerslist of objects- The offers on the product now.Each holds
text,nectar,starts_at,ends_at. ratingnumber or null- The average customer rating, out of 5.
review_countinteger or null- How many customer reviews the rating is from.
barcodeslist of strings- The product's barcodes (EAN-13), as the shop lists them.
categorieslist of strings- The shop's categories the product is placed in.
labelslist of strings- The labels on the product's tile:
BRITISH,ALDI PRICE MATCH*... imagestring or null- The address of the product's main picture.
fetched_atdatetime- When the shop answered, in UTC.
positioninteger- The product's place in the whole list of results, from 1.
total_resultsinteger or null- How many products the shop says match the search.
Units and limits
- Counted per request
- Billed per request: a run that returns data costs 1 unit, however many records it returns.
- A miss costs nothing
- A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
- What bounds a run
- A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.
What it does not do
- One run reads one page: 30 or 60 products.
- Prices are the ones the shop shows a visitor who is not signed in, for delivery in the United Kingdom.
- A row carries what the results list shows. The description, the shelf and every picture are on sainsburys.product.
The bounds its schema sets
page- 1 to 100; 1 unless you say otherwise
max_results- 30, 60; 30 unless you say otherwise
sort- relevance, price_low, price_high, rating; relevance unless you say otherwise
Questions
What does Sainsbury’s search return?
A page of the shop's results: each product's id, name, price, the price before a Nectar offer, unit price, offers, rating, barcodes and picture. A record has 22 fields, among them product_id, url, name, price, price_before_offer and currency. A value that could not be read is null, never an empty string or a zero.
What do I send?
Words to search Sainsbury's groceries for, and optionally a page, a page size and an order. The input query is required. Optional: page, max_results and sort.
How is it counted?
Billed per request: a run that returns data costs 1 unit, however many records it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.
How much does one run return?
Its schema sets these bounds: page 1 to 100 (1 unless you say otherwise); max_results 30, 60 (30 unless you say otherwise); sort relevance, price_low, price_high, rating (relevance unless you say otherwise). A run may take up to 5 minutes.
What does it not do?
One run reads one page: 30 or 60 products. Prices are the ones the shop shows a visitor who is not signed in, for delivery in the United Kingdom. A row carries what the results list shows. The description, the shelf and every picture are on sainsburys.product.
How long are the records kept, and in what format do they come?
Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.
Can an AI assistant call it?
Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id sainsburys.search and the same input. It costs what the same API call costs.
Sainsbury's
Sainsbury's online grocery shop in the United Kingdom: its search results and a product's page, with prices, Nectar offers, unit prices and ratings.
Sainsbury’s product
sainsburys.productA product's id at Sainsbury's, or the address of its page. The product: name, brand, price, the price before a Nectar offer, unit price, offers, rating, barcodes, description, the shelves it sits on and every picture.
- Industry
- Shopping and retail
- Where
- United Kingdom
- For
- E-commerce
Run it on an input of your own.
Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.