# Woolworths Australia Products Scraper (`pyronets/woolworths-au-products-scraper`) Actor

Woolworths Australia products by search, category, specials page or stockcode: price, was-price, unit price, specials, multi-buy, availability, barcode and ratings.

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

## Pricing

from $0.27 / 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 Products Scraper

Get products and prices from woolworths.com.au: price, was-price and savings, unit price,
specials, multi-buy offers, availability, category, barcode, image, ratings, ingredients
and allergens. Search by keyword, paste category or specials pages, or list products by
link or stockcode, press Start, and download the results as JSON, CSV or Excel, or pull them
through the API.

### What you get

One result per product:

| Field | Example | Meaning |
|---|---|---|
| `stockcode` | `888140` | The Woolworths product number |
| `name`, `displayName` | `Woolworths Full Cream Milk`, `Woolworths Full Cream Milk 3L` | The product name, without and with its size |
| `brand`, `packageSize` | `Woolworths`, `3L` | Brand and pack size |
| `price` | `4.95` | The current online price, in Australian dollars |
| `wasPrice`, `savings` | `4.5`, `2.25` | The price before a special and what it saves (`wasPrice` is `null` when there is no special) |
| `onSpecial`, `isHalfPrice` | `true`, `true` | Special flags as Woolworths shows them |
| `promotionText`, `badges` | `2 for $12.00 - $12.00/1KG`, `["Half Price", "Save $2.25"]` | The offer text and badges on the product tile |
| `multibuyQuantity`, `multibuyPrice` | `2`, `12` | A multi-buy offer: this many for this price |
| `unitPrice`, `unitMeasure`, `unitPriceText` | `1.65`, `1L`, `$1.65 / 1L` | The unit price Woolworths shows, for comparing pack sizes |
| `soldBy` | `Each` | `Each` or `KG` |
| `isAvailable`, `inStock` | `true`, `true` | Whether it can be bought online now |
| `categoryPath` | `Dairy, Eggs & Fridge > Milk > Full Cream Milk` | Department > category > subcategory |
| `barcode` | `19300633563018` | The barcode (EAN or GTIN), when given |
| `rating`, `ratingCount`, `reviewCount` | `2.67`, `6`, `6` | Customer ratings (`null` rating when there are none) |
| `imageUrl`, `url` | | The product image and its woolworths.com.au page |
| `isMarketplace`, `seller` | `false`, `null` | Everyday Market products and their seller |
| `description`, `ingredients` | | From the product label, when given |
| `allergensContains`, `allergensMayContain`, `dietaryClaims`, `healthStarRating` | `["Milk"]`, `4` | Label details, when given |
| `position` | `1` | The product's place in the search or category, in Woolworths' order |

Every result also carries `site`, `query` (the search, link or stockcode you gave),
`queryType` (`search`, `category` or `product`), `currency` (`AUD`) and `scrapedAt`.
Unknown values are `null`.

### How to use it

1. Add **Search terms** such as `milk`, `tim tam` or `coffee beans`.
2. Or paste **Category or specials links** from woolworths.com.au, such as
   `https://www.woolworths.com.au/shop/browse/pantry/breakfast-spreads/breakfast-cereal` or `https://www.woolworths.com.au/shop/browse/specials/half-price`.
3. Or list **Products** by link (`https://www.woolworths.com.au/shop/productdetails/32731`) or by stockcode (`32731`) to track them.
4. Optionally turn on **Specials only**, choose **Sort by**, and set **Results per search
   or category** (`0` for all, up to 10,000).
5. Click **Start**. Results appear in the **Output** tab as they are collected.

Example input:

```json
{"searchTerms": ["milk", "tim tam"],
 "categoryUrls": ["https://www.woolworths.com.au/shop/browse/specials/half-price"],
 "productUrls": ["32731"],
 "maxResultsPerInput": 50, "sortBy": "unitPriceLowToHigh"}
```

### How long it takes

A page of 36 products takes about two seconds, and several searches and categories are
read at the same time (**Searches at the same time**). 1,000 products take about a minute.

### Pricing

You pay per product in the results. Use **Max results**, **Results per search or
category** or a maximum cost per run to cap a run.

### Good to know

- Prices are Woolworths' national online prices, current at `scrapedAt`. Store-by-store
  prices are not included.
- Searches return products in the order woolworths.com.au shows them in Australia;
  Woolworths counts at most 10,000 results per search.
- **Specials only** keeps what Woolworths lists under specials: price drops, half price,
  multi-buy and other offers. A product you list that is not on special is then reported
  in the run's **RUN_SUMMARY** record instead.
- Stockcodes Woolworths no longer lists are reported in **RUN_SUMMARY** too.
- On the free Apify plan, results are limited to a daily sample.

### Integrations

Send results to Google Sheets, Slack, Zapier, Make or your own webhook with Apify's
integrations, or call the actor from your code through the Apify API. Schedule it daily to
track prices and specials over time.

### Questions and issues

Open an issue on this actor's **Issues** tab and include the run link.

Running at a high volume, or need another site or field? Ask in an issue.

This actor collects publicly available product information and is not affiliated with
Woolworths. You are responsible for using the data in line with the law and the terms that
apply to you.

# Actor input Schema

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

Searches such as milk, tim tam or coffee beans. Each returns up to Results per search or category products, in Woolworths' order.

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

woolworths.com.au category or specials pages, such as https://www.woolworths.com.au/shop/browse/pantry/breakfast-spreads/breakfast-cereal or https://www.woolworths.com.au/shop/browse/specials/half-price.

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

Product links such as https://www.woolworths.com.au/shop/productdetails/32731, or stockcodes such as 32731, one per line.

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

Only products Woolworths lists as specials: price drops, half price, multi-buy and other offers.

## `sortBy` (type: `string`):

The order of each search and category, as Woolworths sorts it.

## `maxResultsPerInput` (type: `integer`):

How many products each search or category returns at most. 0 returns all of them (up to 10,000).

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

Stop after this many results in total. Leave empty for no limit.

## `maxConcurrency` (type: `integer`):

How many searches, categories or products are read in parallel.

## Actor input object example

```json
{
  "searchTerms": [
    "milk"
  ],
  "specialsOnly": false,
  "sortBy": "relevance",
  "maxResultsPerInput": 100,
  "maxItems": 20,
  "maxConcurrency": 4
}
```

# 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": [
        "milk"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pyronets/woolworths-au-products-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": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pyronets/woolworths-au-products-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": 20
}' |
apify call pyronets/woolworths-au-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pyronets/woolworths-au-products-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/qtMrzUkQ7RTC3lRXP/builds/l7V1zmXT9rNZaXLKa/openapi.json
