# Compare milk prices: Aldi vs Sainsbury's

**Use case:** 

Semi-skimmed milk priced at Aldi and Sainsbury's side by side, with unit price, pack size and the Nectar price where published. Up to 10 rows for about $0.03. Change the query, or add Tesco, Asda and Morrisons, to compare anything on the shelf.

## Input

```json
{
  "retailers": [
    "aldi",
    "sainsburys"
  ],
  "mode": "search",
  "queries": [
    "semi skimmed milk"
  ],
  "categoryUrls": [
    "https://www.tesco.com/shop/en-GB/browse/groceries-and-essentials/fresh-food/milk-butter-and-eggs/milk/all",
    "https://www.asda.com/groceries/food-cupboard/cereals-cereal-bars"
  ],
  "productUrls": [
    "https://www.tesco.com/shop/en-GB/products/254656543",
    "https://www.asda.com/groceries/product/semi-skimmed-milk/asda-british-milk-semi-skimmed-2-pints/538241"
  ],
  "maxItems": 10,
  "asdaStoreId": "4565",
  "outputDataset": "my-uk-grocery-prices",
  "datasetName": "snapshot-{retailer}-{isoWeek}"
}
```

## Output

```json
{
  "retailer": {
    "label": "Retailer",
    "format": "string"
  },
  "name": {
    "label": "Name",
    "format": "string"
  },
  "brand": {
    "label": "Brand",
    "format": "string"
  },
  "packSize": {
    "label": "Pack size",
    "format": "string"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "wasPrice": {
    "label": "Was price",
    "format": "number"
  },
  "loyaltyPrice": {
    "label": "Loyalty price",
    "format": "number"
  },
  "unitPrice": {
    "label": "Unit price",
    "format": "object"
  },
  "promotionText": {
    "label": "Promotion",
    "format": "string"
  },
  "inStock": {
    "label": "In stock",
    "format": "boolean"
  },
  "ean": {
    "label": "EAN",
    "format": "array"
  },
  "url": {
    "label": "URL",
    "format": "string"
  },
  "imageUrl": {
    "label": "Image",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The UK Grocery Prices: Tesco, Sainsbury's, Asda, Aldi, Morrisons Actor is ready to run with the inputs already set for "Compare milk prices: Aldi vs Sainsbury's". [Sign up or log in](https://console.apify.com/create-task-from-example/Ybow6rhhI9HX9pEgg) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compare milk prices: Aldi vs Sainsbury's" task

The UK Grocery Prices: Tesco, Sainsbury's, Asda, Aldi, Morrisons Actor will start running based on the input automatically. You can also change all the input fields, like retailers, mode, and more, to match your specific use case.

### 3. Receive the "Compare milk prices: Aldi vs Sainsbury's" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as retailer, name, brand, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Compare milk prices: Aldi vs Sainsbury's" task via API](https://apify.com/yappman/uk-supermarket-price-scraper.md).

## About this Actor

This example demonstrates how to use [UK Grocery Prices: Tesco, Sainsbury's, Asda, Aldi, Morrisons](https://apify.com/yappman/uk-supermarket-price-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/yappman/uk-supermarket-price-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/yappman/uk-supermarket-price-scraper.md

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`).
