# Coles Scraper - Grocery Products, Prices & Specials (`seemuapps/coles-scraper`) Actor

Search Coles Australia and scrape product prices, specials, unit prices, stock status, categories, nutrition, ingredients and allergens from search terms or category URLs.

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

## Pricing

from $1.20 / 1,000 product 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 Scraper - Grocery Products, Prices & Specials

Search Coles Australia (coles.com.au) or scrape whole categories and the specials page, and extract every product with its current price, was-price, savings, specials and multibuy offers, unit price, stock status, images and categories. Turn on product details for barcode (GTIN), ingredients, allergens, nutrition panel, country of origin and storage instructions. One dataset row per product.

### What you get

- **Pricing**: `price`, `wasPrice`, `savings`, `onSale`, `isHalfPrice`, `promotionType`, `promotionLabel` (e.g. `save $1.05`, `Buy 2 for $9.40`), `multibuyQuantity`, `multibuyPrice`
- **Unit pricing**: `unitPrice`, `unitPriceLabel` (e.g. `$1.65/ 1L`), `unitMeasure`, `size`
- **Availability**: `isAvailable`, `availabilityType`, `stockQuantity`, `retailLimit`, `ageRestricted`
- **Identity**: `id`, `name`, `brand`, `description`, `url`, `imageUrl`, `images`, `isSponsored`
- **Categories**: `department`, `category`, `aisle`, `merchandiseCategory`, `merchandiseSubcategory`
- **Product details** (with **Include product details**): `gtin`, `ingredients`, `allergens`, `dietaryClaims`, `countryOfOrigin`, `storageInstructions`, `longDescription`, `servingSize`, `servingsPerPack`, `nutritionPer100g`, `nutritionPerServe`

Export to JSON, CSV, Excel or Google Sheets from the Apify console, or pull the dataset via API.

### Use cases

- **Price monitoring** - schedule daily runs to track price changes and weekly specials on the products you care about
- **Grocery price comparison** - pair with the Woolworths Scraper to compare the two big Australian supermarkets side by side
- **Specials and catalogue tracking** - scrape the whole on-special page or a category every week
- **Product data enrichment** - barcodes, ingredients, allergens and nutrition panels for food apps and retail analytics
- **Market research** - brand share, price positioning and unit-price analysis across a category

### How to use

1. Enter one or more **Search terms** (e.g. `milk`, `coffee beans`), and/or paste **Coles URLs**: category pages (`https://www.coles.com.au/browse/dairy-eggs-fridge`), the specials page (`https://www.coles.com.au/on-special`), search pages or individual product pages.
2. Optionally set **Sort by**, tick **Specials only** or **In stock only**, and turn on **Include product details** for barcodes and nutrition.
3. Set **Max products per search / URL** (default 100; `0` fetches every matching product).
4. Leave the **Proxy configuration** on the default Australian residential proxy - Coles only serves Australian traffic reliably.
5. Run the actor. Results appear in the **Dataset** tab.

Tip: to scrape every Coles special in one go, tick **Specials only** and leave search terms empty.

### Output example

```json
{
  "query": "milk",
  "queryType": "search",
  "id": "8150288",
  "name": "Full Cream Milk",
  "brand": "Coles",
  "size": "3L",
  "url": "https://www.coles.com.au/product/coles-full-cream-milk-3l-8150288",
  "imageUrl": "https://productimages.coles.com.au/productimages/8/8150288.jpg",
  "price": 4.95,
  "wasPrice": null,
  "onSale": false,
  "unitPrice": 1.65,
  "unitPriceLabel": "$1.65/ 1L",
  "isAvailable": true,
  "stockQuantity": 3434,
  "department": "Dairy, Eggs & Fridge",
  "category": "Milk",
  "aisle": "Full Cream Milk",
  "gtin": "9300601186945",
  "ingredients": "Homogenised and Pasteurised Full Cream Milk",
  "allergens": "Contains Milk",
  "countryOfOrigin": "Australian Milk",
  "servingSize": "250mL",
  "nutritionPer100g": { "Energy (kJ)": "260 kJ", "Protein": "3.5 g", "Fat - Total": "3.3 g", "Sugars - Total": "4.4 g", "Sodium": "36 mg" },
  "detailsFetched": true
}
```

### Pricing

Pay per event: a small fee per search term or URL, a fee per product returned, and an extra fee per product when **Include product details** is on. Free-plan users are capped at 50 products per run; upgrade to any paid Apify plan to remove the cap.

### FAQ

**Are prices store-specific?** Prices are Coles' standard online prices for the default delivery region. Coles does not publish per-store pricing publicly.

**Does it include half-price and multibuy specials?** Yes - `onSale`, `isHalfPrice`, `savings`, `promotionLabel` and the multibuy fields are populated for every product, and the specials page URL returns the full weekly specials list.

**Why is `gtin` empty?** Barcodes, ingredients and nutrition live on the product page. Turn on **Include product details** to fetch them (one extra request per product).

**Why do I need a proxy?** Coles blocks most non-Australian and datacenter traffic. The default Apify residential proxy in Australia is the reliable option and is what the actor is tested against.

**What about Woolworths?** See the companion Woolworths Scraper for the same output format on woolworths.com.au.

# Actor input Schema

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

Product searches to run on coles.com.au, one per line (e.g. 'milk', 'coffee beans', 'nappies'). Each term is searched separately.

## `startUrls` (type: `array`):

Optional coles.com.au links to scrape: category pages (https://www.coles.com.au/browse/dairy-eggs-fridge), the specials page (https://www.coles.com.au/on-special), search pages, or individual product pages.

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

Only keep products that are currently on special. With no search terms or URLs this scrapes the whole Coles on-special catalogue.

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

Order of results within each search or category.

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

Fetch each product's page for barcode (GTIN), ingredients, allergens, nutrition panel, country of origin and storage instructions. One extra request per product.

## `inStockOnly` (type: `boolean`):

Skip products that are currently unavailable online.

## `maxResultsPerQuery` (type: `integer`):

Cap on products returned for each search term or URL. Set 0 for all matching products (the actor pages through the full result set).

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

Coles only serves Australian traffic reliably. Leave the default (Apify residential proxy, Australia) unless you have your own AU proxies.

## Actor input object example

```json
{
  "searchTerms": [
    "milk"
  ],
  "specialsOnly": false,
  "sortBy": "relevance",
  "includeDetails": false,
  "inStockOnly": false,
  "maxResultsPerQuery": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "AU"
  }
}
```

# Actor output Schema

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

One record per product: id, name, brand, size, url, imageUrl, price, wasPrice, savings, onSale, isHalfPrice, promotionLabel, unitPrice, unitPriceLabel, isAvailable, stockQuantity, department, category, aisle, gtin, ingredients, allergens, dietaryClaims, nutritionPer100g, nutritionPerServe.

# 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("seemuapps/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("seemuapps/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 seemuapps/coles-scraper --silent --output-dataset

```

## MCP server setup

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