# Woolworths Australia Grocery Scraper (`automatic/woolworths-australia-scraper`) Actor

Compare Woolworths Australia grocery prices, specials, unit prices and availability by keyword, category or product. Export barcodes, pack sizes and product details.

- **URL**: https://apify.com/automatic/woolworths-australia-scraper.md
- **Developed by:** [Philip Kirkbride](https://apify.com/automatic) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.56 / 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

## Woolworths Australia Grocery Scraper

Compare Woolworths Australia grocery prices, specials, pack sizes and stock with Coles and ALDI. Search by keyword or barcode, browse a category, or look up a product by URL or stockcode. Export the results as CSV or JSON for price checks, promotions research and grocery dashboards.

### Try it

The prefilled example returns up to 30 milk products. An empty input runs the same sample.

```json
{
  "searchTerms": ["milk"],
  "maxItems": 30
}
```

Use `categoryUrls` for browse pages such as `https://www.woolworths.com.au/shop/browse/dairy-eggs-fridge/milk`, or `productUrls` for product pages and stockcodes. Set `specials` to `halfPrice` to add Woolworths' Half Price collection, or use `specialsOnly` to keep only specials in your searches or categories.

### What you get

- Product name, stockcode, barcode, brand, pack size, image and product URL.
- AUD price, previous price and savings when shown, plus stock and the reported fulfilment store.
- Published unit price and a standardized price per kilogram, litre or item for comparison.
- Ingredients, allergen statements and country of origin when published. Product lookups include available nutrition data. Turn on `includeDetails` to add product detail to keyword and category results.

Selected fields from a Woolworths product observed in the milk sample:

```json
{
  "retailer": "Woolworths",
  "productId": "888140",
  "name": "Woolworths Full Cream Milk 3L",
  "price": 4.95,
  "currency": "AUD",
  "packSize": "3L",
  "standardUnitPrice": 1.65,
  "standardUnit": "L",
  "available": true,
  "storeId": "1101",
  "storeName": "Mayfield"
}
```

### Scheduled monitoring

Set `monitorMode` to `new` for newly seen products or `changes` for new products and changes to price, specials or availability. The first run establishes the history. Reuse the same `monitorKey` for later runs. Give independent schedules separate names and wait for a run to finish before starting the next one on the same history.

### Pricing

**$0.80 per 1,000 products** ($0.72 Bronze, $0.64 Silver, $0.56 Gold and above). There is no start fee, so a search that finds nothing costs nothing.

Set a maximum charge on the run to cap spending; the run stops cleanly at the cap and keeps the products it already saved.

### Coverage

Prices and stock use Woolworths' guest fulfilment context. Store and postcode selection require an account. When a field is absent, its value may be null. Woolworths limits the number of catalogue results it exposes. Check `OUTPUT` for skipped inputs, partial runs and the stop reason.

# Actor input Schema

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

Up to 25 keywords or barcodes. With no sources supplied, the Actor samples milk products.

## `categoryUrls` (type: `array`):

Up to 25 Woolworths browse URLs, category paths or IDs. Example https://www.woolworths.com.au/shop/browse/dairy-eggs-fridge/milk.

## `productUrls` (type: `array`):

Up to 25 full product URLs or numeric stockcodes. Each one returns the available product details.

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

Maximum number of unique products to save across all inputs. The Actor uses 30 if omitted.

## `maxPagesPerSource` (type: `integer`):

Limit how many catalogue pages each input reads. Applies to listings with multiple pages.

## `specials` (type: `string`):

Add Woolworths' Half Price collection to the run.

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

Keep products that Woolworths marks as on special.

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

Add more detail from individual product pages, including nutrition and country of origin when shown. Product URL inputs always include details.

## `monitorMode` (type: `string`):

Save all matching products, only new products, or only new and changed prices, specials and stock.

## `monitorKey` (type: `string`):

Reuse the same name for scheduled runs that share a history. Use distinct names for independent schedules.

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

Optional Apify connection settings.

## Actor input object example

```json
{
  "searchTerms": [
    "milk"
  ],
  "maxItems": 30,
  "maxPagesPerSource": 200,
  "specials": "none",
  "specialsOnly": false,
  "includeDetails": false,
  "monitorMode": "off",
  "monitorKey": "default"
}
```

# Actor output Schema

## `results` (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"
    ],
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("automatic/woolworths-australia-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"],
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("automatic/woolworths-australia-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"
  ],
  "maxItems": 30
}' |
apify call automatic/woolworths-australia-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automatic/woolworths-australia-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/6Nfj7MJuAbERkGBH2/builds/jVz6sfdh7f4OCwmfL/openapi.json
