# Coles AU Product Scraper (`consentantaneity/coles-scraper`) Actor

Scrape Coles Australia products by keyword, category, specials section or product URL. Prices, specials, unit prices and availability as clean JSON, CSV or Excel.

- **URL**: https://apify.com/consentantaneity/coles-scraper.md
- **Developed by:** [Nikita Matvieiev](https://apify.com/consentantaneity) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 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.

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 AU Product Scraper

Pulls product data from coles.com.au: prices, specials, unit prices, availability. Search by keyword, crawl categories or the whole specials section, or look up specific products.

It reads the same JSON the Coles website loads for its own pages, so the output is structured data, not scraped HTML. No login needed.

### What you get

```
productId          Coles product ID
name, brand, size  product name, brand, pack size
price              current price (AUD)
wasPrice           price before the special
savings            wasPrice minus price
isOnSpecial        any discount running
promotionType      e.g. SPECIAL
offerDescription   multi-buy and other offer text, when Coles provides it
unitPrice          price per unit, e.g. 2.93
unitMeasure        unit, e.g. g or l
unitPriceString    "$2.93/ 100g"
isAvailable        available online
barcode            GTIN (product URL lookups only, see below)
category           Coles online category
imageUrl           product image
url                product page
source             which search term, category or URL produced this row
```

Sample row:

```json
{
  "productId": 6845799,
  "name": "Gluten Free Tim Tam Original Biscuits",
  "brand": "Arnott's",
  "size": "150g",
  "price": 4.4,
  "wasPrice": 5.5,
  "savings": 1.1,
  "isOnSpecial": true,
  "promotionType": "SPECIAL",
  "offerDescription": null,
  "unitPrice": 2.93,
  "unitMeasure": "g",
  "unitPriceString": "$2.93/ 100g",
  "isAvailable": true,
  "barcode": null,
  "category": "Biscuits & Cookies",
  "imageUrl": "https://cdn.productimages.coles.com.au/productimages/6/6845799.jpg",
  "url": "https://www.coles.com.au/product/arnotts-gluten-free-tim-tam-original-biscuits-150g-6845799",
  "source": "search:tim tam"
}
```

Export as JSON, CSV or Excel, or read it through the Apify API.

### Input

Any mix of these in one run:

```
searchTerms          keywords, same as the search box on the site
categoryUrls         /browse/... category pages or /on-special
productUrls          product pages or bare product IDs like 6845799
specialsOnly         only discounted products (search terms and categories)
maxItemsPerSource    cap per search term or category, default 200
proxyConfiguration   AU residential by default, leave it as is
```

Example: the whole specials section plus two tracked products.

```json
{
  "categoryUrls": [{ "url": "https://www.coles.com.au/on-special" }],
  "productUrls": ["https://www.coles.com.au/product/dairy-farmers-buttermilk-600ml-252739", "6845799"],
  "maxItemsPerSource": 10000
}
```

Products that appear in several sources are saved once. Barcodes only come back for products you pass in `productUrls`, because Coles doesn't include them in search and category listings.

### Reliability

Coles runs Imperva bot protection and blocks datacenter IPs. The actor uses a real browser session on Australian residential proxies. When Coles throws a challenge page mid-run, it starts a fresh session on a new IP and carries on. Proxy costs are included in the price.

A broken search term or category doesn't kill the run, the log names it and the rest keeps going. A run with zero products is marked as failed so schedules and integrations notice.

### Typical uses

- Daily specials and half-price tracking
- Coles vs Woolworths price comparison (pair it with the Woolworths AU Product Scraper by the same author)
- Unit price comparison across brands
- Feeding a grocery app, a spreadsheet or a database

### FAQ

**Which store's prices are these?** The default online prices coles.com.au shows when no store is selected.

**Something broke?** Open an issue on the Issues tab with the run link. Coles updates their site now and then, and reports help catch it early.

# Actor input Schema

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

Keywords to search on coles.com.au, one per line.

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

Category pages like https://www.coles.com.au/browse/dairy-eggs-fridge/milk or the specials section https://www.coles.com.au/on-special

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

Product pages like https://www.coles.com.au/product/dairy-farmers-buttermilk-600ml-252739

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

Return only discounted products for search terms and categories.

## `maxItemsPerSource` (type: `integer`):

Stops paging a search term or category after this many products.

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

Coles blocks datacenter IPs. Australian residential proxy is the default and is already included in the price.

## Actor input object example

```json
{
  "searchTerms": [
    "milk"
  ],
  "specialsOnly": false,
  "maxItemsPerSource": 200,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "AU"
  }
}
```

# Actor output Schema

## `products` (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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "AU"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("consentantaneity/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 = {
    "searchTerms": ["milk"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "AU",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("consentantaneity/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 '{
  "searchTerms": [
    "milk"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "AU"
  }
}' |
apify call consentantaneity/coles-scraper --silent --output-dataset

```

## MCP server setup

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