# Coles Scraper (`datahamster/coles-scraper`) Actor

Coles scraper: search coles.com.au by keyword or read any category, specials or product page, and get price, was price, unit price, special and multi-buy text, availability, brand, size, image and category. Monitor mode alerts on price changes and new specials.

- **URL**: https://apify.com/datahamster/coles-scraper.md
- **Developed by:** [Viktor Dubnytskiy](https://apify.com/datahamster) (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.80 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Coles Scraper

Search Coles (coles.com.au) by keyword, or read any category page, the specials catalogue or a product page, and get one flat row per product: name, brand, size, shelf price, was price, unit price ("$3.00/ 1L" plus the number and the unit), special and multi-buy text, availability, image and category. No account and no cookies. Monitor mode turns the same input into a price tracker that returns only products whose price, special or stock changed since the last run.

**Try it:** the prefilled example returns 20 rows in about 5 seconds and costs about $0.02. Results cost $1.00 per 1,000.

Coverage: Coles' online prices for its default store, the same prices coles.com.au shows a visitor who has not picked a store. Each search or category page has up to 48 organic products; the sponsored tiles Coles mixes in are left out unless you ask for them.

- **No start fee.** On the free plan you pay $0.001 per product, the same per-row price as the most-used Coles actor in the Store, and nothing per run. That actor also charges $0.008 per run start for each GB of memory (1,024 MB by default, checked 2026-11-05), so the 20-row example costs $0.020 here and about $0.028 there. On paid plans its per-row price is $0.0001 lower than ours, so we are cheaper on runs under about 50 to 70 rows (its start fee is $0.005 to $0.007 per GB on paid plans) and it is cheaper on larger runs.
- **Gets past the wall.** Coles sits behind Imperva, which starts serving a "Pardon Our Interruption" page after a few requests from one IP. The actor spots it on every page, switches to a fresh IP and repeats the page, so a 14-page test run (649 products) finished with no lost page after 12 walls.
- **Unit price as numbers.** `unitPrice`, `unitQuantity` and `unitMeasure` (3.0 per 1 l, 1.10 per 100 g) next to the shelf text, ready for price-per-litre comparisons.
- **Monitor mode** for price trackers and deal sites: alerts on price, was price, special, multi-buy and availability changes, with the previous values in the row.

### What you get

Real rows from the example dataset (prefilled input `queries: ["milk"]`, 20 organic rows):

| name / brand | size | price | was | unit price | promo | category | rank |
|---|---|---|---|---|---|---|---|
| Full Cream Milk / Coles | 3L | 4.95 | | $1.65/ 1L | | Milk | 1 |
| Light Milk / a2 Milk | 2L | 7.30 | | $3.65/ 1L | | Milk | 2 |
| Chocolate Flavoured Milk / Oak | 2L | 5.95 | 6.95 | $2.98/ 1L | save $1.00 | Milk | 11 |
| Banana Flavoured Milk / Big M | 600mL | 3.45 | 3.90 | $5.75/ 1L | save $0.45 | Milk | 14 |
| Light Milk / Devondale | 2L | 4.20 | 4.70 | $2.10/ 1L | save $0.50 | Milk | 18 |

One full row:

```json
{
  "id": "13090",
  "url": "https://www.coles.com.au/product/oak-chocolate-flavoured-milk-2l-13090",
  "scrapedAt": "2026-11-05T13:36:27.941083Z",
  "retailer": "coles",
  "productId": "13090",
  "name": "Chocolate Flavoured Milk",
  "brand": "Oak",
  "description": "OAK CHOCOLATE FLAVOURED MILK 2L",
  "size": "2L",
  "price": 5.95,
  "wasPrice": 6.95,
  "saveAmount": 1,
  "currency": "AUD",
  "unitPriceText": "$2.98/ 1L",
  "unitPrice": 2.98,
  "unitQuantity": 1,
  "unitMeasure": "l",
  "onSpecial": true,
  "promotionType": "SPECIAL",
  "specialType": null,
  "promoText": "save $1.00",
  "multiBuyQuantity": null,
  "multiBuyUnitPriceText": null,
  "onlineSpecial": false,
  "available": true,
  "availabilityType": "InStoreAndOnline",
  "image": "https://cdn.productimages.coles.com.au/productimages/1/13090.jpg",
  "department": "Dairy, Eggs & Fridge",
  "category": "Milk",
  "aisle": "Flavoured Milk",
  "categoryPath": "Dairy, Eggs & Fridge > Milk > Flavoured Milk",
  "sponsored": false,
  "barcode": null,
  "countryOfOrigin": null,
  "source": "search",
  "query": "milk",
  "sourceUrl": "https://www.coles.com.au/search/products?q=milk",
  "page": 1,
  "rank": 11
}
```

`id` is the Coles product id, so a product found by two keywords or categories is one row and monitor mode tracks it across runs. `onSpecial` is true when the product has a was price, a multi-buy offer ("Pick any 2 for $5", in `promoText` with `multiBuyQuantity` and `multiBuyUnitPriceText`) or a SPECIAL ticket. `rank` is the position among Coles' organic results. `includeSponsored: true` adds the paid tiles Coles places in the list: they are real products with real prices, marked `sponsored: true` with `rank: null`. Monitor mode always skips sponsored tiles, so a paid slot coming and going never sends an alert. Product URLs add `barcode` and `countryOfOrigin`.

### Use cases

- **Price tracker.** A saved task with your product URLs or a category in monitor mode, scheduled daily. Each run returns only the products whose price, special or availability changed, with `changedFields` and the `previous` values.
- **Deal site or specials feed.** `urls: ["https://www.coles.com.au/on-special?filter_Special=halfprice"]` lists this week's half-price specials (1,207 products on 2026-11-05); `onlySpecials: true` keeps only specials from any search or category.
- **Basket and unit-price research.** Compare price per litre or per 100 g across brands with `unitPrice` and `unitMeasure`, and Coles home brand against the rest with `brand`.

### Try it

Hit **Start**: the prefilled input searches `milk` and returns 20 products. Add keywords such as `tim tam` or `coffee capsules`, or paste category URLs such as `https://www.coles.com.au/browse/pantry/coffee`. Raise `maxPagesPerSource` to read deeper into a search or category (up to 48 products a page).

**Monitor mode.** Save the input as a task and set:

```json
{
  "mode": "monitor",
  "monitorStateId": "coles-coffee-daily",
  "urls": ["https://www.coles.com.au/browse/pantry/coffee"],
  "maxPagesPerSource": 10,
  "maxItems": 1000,
  "webhookUrl": "https://your-endpoint.example.com/hook"
}
```

Put the task on a schedule (Apify, Schedules, cron `0 7 * * *` for daily). The first run returns every product as `new` and stores the baseline; later runs return only products that are new to the list or whose price, was price, special, unit price or availability changed. Rank changes do not trigger an alert, and sponsored tiles are left out of monitor runs. Point `webhookUrl` or the Telegram fields at your own channel to get the changes pushed to you.

### Input

| Field | Meaning | Default |
|---|---|---|
| `queries` | Search keywords, one per line | empty |
| `urls` | Category (`/browse/...`), specials (`/on-special`), search or product URLs, or bare product ids | empty |
| `maxPagesPerSource` | Pages of up to 48 products per keyword or URL | `5` |
| `includeSponsored` | Also keep the sponsored product tiles (marked `sponsored: true`, ignored in monitor mode) | `false` |
| `onlySpecials` | Push only products on special | `false` |
| `maxItems` | Stop the whole run after this many rows | `100` |
| `mode` | `scrape`, or `monitor` for changes only | `scrape` |
| `monitorStateId`, `webhookUrl`, `telegramBotToken`, `telegramChatId` | Monitor-mode state key and alert targets | empty |

### Pricing

| Event | Price |
|---|---|
| result | $0.001 per product ($1.00 per 1,000) |
| monitor-check | $0.005 per monitor run |
| change | $0.001 per new or changed product in monitor mode |

Apify Store discounts: SILVER -10%, GOLD and higher -20% on every event.

You pay only for rows that are pushed, and a search that finds nothing charges no result events. Apify platform usage is billed by Apify on top; the example run used about $0.0003 of it, and the 649-product test run about $0.006.

**Found it useful?** A short review on the Store page helps other people find this actor. If a search misbehaves, open an issue on the actor page.

### Related actors

- [Amazon Price Tracker: Product Scraper by ASIN, Buy Box, Stock](https://apify.com/datahamster/amazon-product-monitor) for the same price-tracking workflow on Amazon.
- [Walmart Product Scraper & Price Monitor](https://apify.com/datahamster/walmart-product-monitor) for Walmart prices and stock.
- [Shopify Store Products Scraper](https://apify.com/datahamster/shopify-store-products) for prices of any Shopify shop.
- [Flipkart Product Scraper & Price Monitor](https://apify.com/datahamster/flipkart-products) for Flipkart search and prices.

### Limits

- Prices are Coles' online prices for its default store. Prices picked for a specific store or suburb are not read.
- Out-of-stock products can come without a price (`price: null`, `available: false`).
- Coles puts about 9 sponsored tiles near the top of every search page; with `includeSponsored: true` they can fill half of the first 20 rows.
- Coles' Imperva wall is passed by switching IPs. When every proxy tier is walled for a keyword or URL, that source is skipped with a warning and the run keeps the rest; a run where nothing could be read ends as `blocked`.
- Larger runs take about 7 seconds per page of up to 48 products, because the actor reads one page at a time and retries walled pages on a fresh IP.

### FAQ

**Do I need a Coles account or cookies?** No. The actor reads the same public pages coles.com.au shows a visitor who is not signed in.

**Why did my keyword return nothing?** Coles has no product for it. The `RUN_SUMMARY` record in the run's key-value store has `emptyReason`, and `COLES_STATS` lists `emptySources`, `notFound`, `walledSources` and the product total Coles reported for each source (`perSource`).

**Can I scrape Woolworths too?** Not with this actor. The row fields are retailer-neutral (`retailer`, `price`, `unitPrice`), so a Woolworths version would give the same columns.

### Changelog

- 0.1: initial release with keyword search, category, specials and product URLs, unit price as numbers, special and multi-buy fields, organic results by default with sponsored tiles as an option (never in monitor mode), Imperva wall rotation, and monitor mode for price changes.

# Actor input Schema

## `queries` (type: `array`):

Coles search keywords, one per line, e.g. "milk", "tim tam", "coffee capsules". Each keyword is a separate coles.com.au search, up to 48 organic products per page.

## `urls` (type: `array`):

Category pages (https://www.coles.com.au/browse/dairy-eggs-fridge/milk), the specials catalogue (https://www.coles.com.au/on-special, also with ?filter_Special=halfprice), search result URLs, or product pages (https://www.coles.com.au/product/coles-full-cream-milk-3l-8150288 or just the id 8150288). Product pages add barcode and country of origin.

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

Stop each keyword or category after this many pages of up to 48 products. Example: 5.

## `includeSponsored` (type: `boolean`):

false = organic results only, ranked as Coles lists them. true = also keep the sponsored product tiles Coles mixes into every page (real products with real prices, marked sponsored: true, rank null). Monitor mode always skips sponsored tiles.

## `onlySpecials` (type: `boolean`):

true = push only products on special (was price, multi-buy or a SPECIAL ticket). You are charged only for pushed rows.

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

Stop the whole run after this many products (you are charged only for pushed products). Example: 20.

## `mode` (type: `string`):

scrape = full results; monitor = only new/changed items since the previous run of this task

## `monitorStateId` (type: `string`):

Optional state id when not running as a saved task (monitor mode)

## `webhookUrl` (type: `string`):

POST a change summary here in monitor mode

## `telegramBotToken` (type: `string`):

Optional: bot token for monitor-mode change summaries

## `telegramChatId` (type: `string`):

Optional: chat id that receives monitor-mode summaries

## Actor input object example

```json
{
  "queries": [
    "milk"
  ],
  "urls": [],
  "maxPagesPerSource": 5,
  "includeSponsored": false,
  "onlySpecials": false,
  "maxItems": 20,
  "mode": "scrape"
}
```

# Actor output Schema

## `results` (type: `string`):

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

## `runSummary` (type: `string`):

RUN_SUMMARY record

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

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/coles-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 = {
    "queries": ["milk"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datahamster/coles-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 '{
  "queries": [
    "milk"
  ],
  "maxItems": 20
}' |
apify call datahamster/coles-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datahamster/coles-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/ioFaiQ7MaXEdXtmND/builds/MdxD64oylYwRu3HVK/openapi.json
