# AU Grocery Price Comparison (Woolworths, ALDI, Harris Farm) (`resourceful_playbook/au-grocery-price-compare`) Actor

One search, three supermarkets. Returns matching products from Woolworths, ALDI and Harris Farm side by side with price, pack size, normalised price per litre/kg/each and specials, plus a cheapest-per-store summary for each search. For shopping apps, price tracking and AI agents.

- **URL**: https://apify.com/resourceful_playbook/au-grocery-price-compare.md
- **Developed by:** [AU Data Tools](https://apify.com/resourceful_playbook) (community)
- **Categories:** E-commerce, Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 records

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

## Australian Grocery Price Comparison (Woolworths, ALDI, Harris Farm)

Type a grocery item once and get matching products from **Woolworths, ALDI and Harris Farm Markets** side by side — with price, pack size, a normalised **price per litre / kg / each**, specials, and a summary row naming the cheapest option per store and overall.

**Who it's for:** budget and shopping-list apps, cost-of-living journalists and researchers, meal-planning tools, and AI assistants answering "where's milk cheapest this week?"

### Use cases

- **Weekly shop optimiser** — feed your shopping list, read the `summary` rows, split the trip
- **Cost-of-living tracking** — run a fixed basket daily and chart `pricePerUnit` per store over time
- **Specials radar** — `specialsOnly: true` across all three stores in one call
- **Agent tool** — a single call gives an LLM comparable, unit-normalised prices to reason over

### Example input

```json
{ "searchTerms": ["full cream milk 2l", "free range eggs"], "stores": ["woolworths", "aldi", "harrisfarm"], "maxPerStore": 5 }
```

### Example output

Product rows (sorted cheapest per unit first):

| searchTerm | store | name | size | price | pricePerUnit | unitLabel | isOnSpecial |
|---|---|---|---|---|---|---|---|
| full cream milk 2l | ALDI | Farmdale Full Cream Milk 2L | 2L | 3.09 | 1.55 | per L | false |
| full cream milk 2l | Harris Farm | Harris Farm Farmer Friendly Full Cream Milk 2L | — | 3.10 | 1.55 | per L | false |
| full cream milk 2l | Woolworths | Woolworths Full Cream Milk 2L | 2L | 3.10 | 1.55 | per L | false |

Then one `summary` row per search term with `cheapestOverall` and `cheapestPerStore`.

Each product row also has `brand`, `wasPrice`, `storeUnitPrice` (the store's own unit price label), `barcode` (Woolworths only), `storeId`, `url`, `imageUrl` and `scrapedAt`.

### Input

| Field | Notes |
|---|---|
| `searchTerms` | Items to compare |
| `stores` | Any of `woolworths`, `aldi`, `harrisfarm` |
| `maxPerStore` | Top N per store per search (Harris Farm max 10) |
| `specialsOnly` | Only current specials |
| `includeSummary` | Add the cheapest-per-store summary row (default on) |

### Notes

Matching is by each store's own search relevance, so always check `name` and `size` — "milk" will surface flavoured and long-life milks too; a specific term like "full cream milk 2l" gives tighter results. `pricePerUnit` is derived from the pack size in the product name or size field and is `null` when no size could be read. Coles is not included because it blocks automated access. Prices are national online prices. Reads public search endpoints; no login, no personal data. Not affiliated with Woolworths Group, ALDI Stores or Harris Farm Markets.

# Actor input Schema

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

Products to compare, e.g. 'full cream milk 2l', 'free range eggs 12', 'weet-bix'.

## `stores` (type: `array`):

Which stores to include.

## `maxPerStore` (type: `integer`):

Keep the top N matches from each store (Harris Farm returns at most 10).

## `specialsOnly` (type: `boolean`):

Only products currently on special.

## `includeSummary` (type: `boolean`):

Add one summary record per search term with the cheapest option per store and overall.

## Actor input object example

```json
{
  "searchTerms": [
    "full cream milk 2l",
    "free range eggs"
  ],
  "stores": [
    "woolworths",
    "aldi",
    "harrisfarm"
  ],
  "maxPerStore": 5,
  "specialsOnly": false,
  "includeSummary": true
}
```

# Actor output Schema

## `results` (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": [
        "full cream milk 2l",
        "free range eggs"
    ],
    "stores": [
        "woolworths",
        "aldi",
        "harrisfarm"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("resourceful_playbook/au-grocery-price-compare").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": [
        "full cream milk 2l",
        "free range eggs",
    ],
    "stores": [
        "woolworths",
        "aldi",
        "harrisfarm",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("resourceful_playbook/au-grocery-price-compare").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": [
    "full cream milk 2l",
    "free range eggs"
  ],
  "stores": [
    "woolworths",
    "aldi",
    "harrisfarm"
  ]
}' |
apify call resourceful_playbook/au-grocery-price-compare --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,resourceful_playbook/au-grocery-price-compare"
        }
    }
}
```

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/IV33xQwjsWTj8jwjh/builds/k6IgBSB3anDN0q7u6/openapi.json
