# Coles Australia Product, Specials & Price Scraper (`shelfdata/coles-au-product-search-specials`) Actor

Coles Australia products, prices and specials: search, category shelves, half-price and multi-buy specials, single products with GTIN, nutrition and ingredients, full category tree. Price monitoring mode returns only new products and price changes.

- **URL**: https://apify.com/shelfdata/coles-au-product-search-specials.md
- **Developed by:** [ShelfData](https://apify.com/shelfdata) (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 results

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

## Coles Australia Product, Specials & Price Scraper

Scrape **Coles Australia (coles.com.au)**: keyword search results, category shelves, weekly specials (all, half price,
multi-buy, online only), single products with **GTIN, nutrition and ingredients**, and the full category tree. Every
product row carries the regular price, the promotional price, the comparable unit price, availability, brand, size,
category path and images.

Built for grocery price monitoring, half-price tracking, assortment and category snapshots, and product enrichment.
Unofficial; not affiliated with Coles.

### What you can collect

| Operation | Input | Output rows |
|---|---|---|
| `search` | `query`, optional `page` | products of that Coles search page (48 results plus featured tiles) |
| `category` | `categorySlug` (e.g. `dairy-eggs-fridge/milk`), `categoryUrl` or `categoryId`, optional `page` | products of that shelf page |
| `specials` | `special`: `allspecials`, `halfprice`, `multibuy`, `onlineonly`; optional `page` | products on special |
| `item` | `itemId` (e.g. `8150288`), `itemSlug` or a product `url` | one product with GTIN/barcode, nutrition panel, ingredients, allergens, dietary and storage text |
| `categories` | none | every department and category with its browse path and product count |
| `search_filters`, `specials_filters` | `query` / `special` | brand, allergen, dietary and specials filter values with counts |

`page` reads one native Coles page per run; schedule one run per page (or per category) to cover more. `limit` caps the
rows returned.

#### Track price changes on a schedule

Turn on **Only new products and price changes** and schedule the actor (for example the same searches, categories or
specials every morning). It remembers each product's last regular and special price (in a key-value store named
`coles-price-state` in your own account) and returns only products that are new or whose price changed, each with `change`
(`new` or `price_changed`), `previousPrice` and `previousDiscountPrice`. You pay only for those rows. The first run is
the baseline; use a different **Monitor name** for each independent price watch.

### Output example (product row)

```json
{
  "id": "8150288",
  "name": "Full Cream Milk",
  "brand": "Coles",
  "source_url": "https://www.coles.com.au/product/coles-full-cream-milk-3l-8150288",
  "category": "Dairy, Eggs & Fridge",
  "product_category": "Milk",
  "breadcrumbs": ["Dairy, Eggs & Fridge", "Milk", "Full Cream Milk"],
  "price": 4.95,
  "discount_price": null,
  "currency": "AUD",
  "unit_price": 1.65,
  "unit_quantity": 1,
  "unit": "l",
  "availability": "InStoreAndOnline",
  "in_stock": true,
  "image": "https://cdn.productimages.coles.com.au/productimages/8/8150288.jpg",
  "gtin": "9300601186945",
  "attributes": {"size": "3L", "comparable": "$1.65/ 1L", "promotion_type": null}
}
```

`price` is the regular price; `discount_price` is filled only when Coles shows a lower current price. Promotion type,
save statement and the full source pricing object are included (`attributes`, `price_info`). The run's `OUTPUT` record
summarises `success`, `total` and any problems.

### Reliability

Coles is protected by Imperva. This actor opens each proxy session once in a real Chrome to pass the check, then reads
pages efficiently with that session; the session is remembered for your later runs. Datacenter proxy (the built-in
option) works; Residential and your own proxies are also supported.

### Not supported

Store-specific prices and stock (store id, postcode, click & collect), the store locator, reverse barcode/GTIN lookup,
and bulk product details on listing runs (`details: true`; use `item` per product instead). Such inputs end the run
with a clear message instead of returning empty data.

### How much does it cost?

Pay per result: **$0.80 per 1,000 products ($0.0008 each) plus $0.005 per run**. The Apify platform usage is included, and runs need no browser except the Coles security check, so there is nothing else to pay. Examples:

- a 48-product specials page: about **$0.04**
- a daily price check of the half-price specials that returns only changed products: a few dollars a month

Apify's free plan includes monthly credit that covers many runs of this size, so you can try it without a subscription.

### Run it from your code, a schedule or another tool

- **API**: start a run and get the product rows in one call:

  ```bash
  curl -X POST "https://api.apify.com/v2/acts/shelfdata~coles-au-product-search-specials/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{"operation": "specials", "special": "halfprice", "limit": 48}'
  ```

  The same works from the Apify Python and JavaScript clients.
- **Schedules**: run it daily or hourly from Apify Console > Schedules; the monitoring options above return only what is new.
- **Integrations**: send results to Google Sheets, Slack, email, Make, Zapier, n8n or a webhook from the actor's Integrations tab.
- **AI agents**: the actor is available as a tool through the Apify MCP server.

### FAQ

**Can I track only price changes?**
Yes: turn on **Only new products and price changes** and schedule the actor. Each run returns only products that are new or whose regular or special price changed, with the previous prices.

**Are the prices for my store?**
Prices are Coles' online prices without a selected store or postcode.

**Can I compare prices with the other Australian supermarkets?**
Yes: the [Woolworths](https://apify.com/shelfdata/woolworths-au-product-search-catalog) and [ALDI](https://apify.com/shelfdata/aldi-au-product-search-catalog) scrapers return the same field names (`price`, `discount_price`, `unit_price`, `size`, `source_url`) and the same price monitoring mode.

**Is it legal to scrape this data?**
The actor reads only publicly available pages, the same data any visitor sees, and no data behind a login. Results can
include names published by the source (for example reviewers or employers); if you store them, handle them under the
privacy rules that apply to you (such as the GDPR).

**Something is missing or broken?**
Open an issue on the actor's Issues tab: requests and bug reports are answered there.

# Actor input Schema

## `operation` (type: `string`):

What to collect. `search`, `category` and `specials` return one native Coles page of products; `item` returns one product with GTIN, nutrition and ingredients; `categories` returns the full category tree; `search_filters` / `specials_filters` return the filter values (brands, allergens, dietary, specials) of a listing.

## `query` (type: `string`):

Keyword for `search` and `search_filters`.

## `page` (type: `integer`):

One-based Coles page for `search`, `category` and `specials` (48 results per page plus featured tiles).

## `limit` (type: `integer`):

Optional cap on the rows returned from the page. Not a page size.

## `categorySlug` (type: `string`):

For `category`: a Coles browse path such as `dairy-eggs-fridge` or `dairy-eggs-fridge/milk` (run `categories` to list them).

## `categoryUrl` (type: `string`):

For `category`: a full https://www.coles.com.au/browse/... URL.

## `categoryId` (type: `string`):

For `category`: a Coles category id from `categories` (costs one extra request).

## `special` (type: `string`):

For `specials` and `specials_filters`.

## `itemId` (type: `string`):

For `item`: numeric Coles product id, e.g. 8150288.

## `productId` (type: `string`):

Alias of Product id.

## `itemSlug` (type: `string`):

For `item`: e.g. `coles-full-cream-milk-3l-8150288`.

## `slug` (type: `string`):

Alias of Product slug.

## `url` (type: `string`):

A full Coles /product/ URL for `item` or /browse/ URL for `category`.

## `refresh` (type: `boolean`):

Accepted for compatibility; categories are always read live.

## `onlyPriceChanges` (type: `boolean`):

For scheduled price monitoring: remembers every product's last regular and special price (in a key-value store named `coles-price-state` in your account) and returns only products not seen before or whose price changed, with `change`, `previousPrice` and `previousDiscountPrice`. The first run is the baseline.

## `monitorName` (type: `string`):

Keeps separate price memories for different monitoring tasks.

## `proxySource` (type: `string`):

Built-in uses Apify datacenter proxy, which works for Coles. Apify Residential uses residential exits in the country below. Custom uses your own proxy list.

## `apifyProxyCountry` (type: `string`):

Two-letter country for Apify Residential.

## `apifyProxySessions` (type: `integer`):

Number of sticky proxy sessions (one exit each) for the built-in and residential proxies.

## `customProxyUrls` (type: `string`):

For `custom_pool`: one http(s)://user:password@host:port per line (semicolons or a JSON array also work).

## Actor input object example

```json
{
  "operation": "search",
  "query": "milk",
  "page": 1,
  "special": "allspecials",
  "refresh": false,
  "onlyPriceChanges": false,
  "monitorName": "default",
  "proxySource": "owner",
  "apifyProxyCountry": "AU",
  "apifyProxySessions": 6
}
```

# Actor output Schema

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

Dataset rows: products (search, category, specials, item), categories, or filter values.

## `summary` (type: `string`):

OUTPUT record: source, operation, success, total rows, spending-limit stop and problems.

# 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 = {
    "operation": "search",
    "query": "milk",
    "page": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("shelfdata/coles-au-product-search-specials").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 = {
    "operation": "search",
    "query": "milk",
    "page": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("shelfdata/coles-au-product-search-specials").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 '{
  "operation": "search",
  "query": "milk",
  "page": 1
}' |
apify call shelfdata/coles-au-product-search-specials --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,shelfdata/coles-au-product-search-specials"
        }
    }
}
```

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/fdzM5LkbSJ0JrPdnF/builds/0MwJW4gfsF3TR59qr/openapi.json
