# Coles Scraper data API: fields, sample output and cost per 1,000 rows

Coles scraper for Coles Australia products by search word, department, category or the specials pages: price, was price, unit price, half price, multibuy deal price per item, stock, purchase limits and aisle.

This is the reference for the Actor `v0iddo/coles-scraper`: what is in every output row, what the input takes, and what a run costs. Values below come from a real run of the Actor.

## At a glance

| | |
| --- | --- |
| Actor | `v0iddo/coles-scraper` |
| Store page | [Coles Scraper](https://apify.com/v0iddo/coles-scraper) |
| Output | one row per result, as JSON, CSV, Excel or HTML |
| Fields per row | 31 (14 text, 11 number, 5 true/false, 1 URL) |
| Cap on results | `maxItems` in the input |
| Price | $0.50 per 1,000 results |

## Output fields

Each result is one row with these fields (fields that name people are left out):

| Field | Type | Meaning | Sample value |
| --- | --- | --- | --- |
| `productId` | text | Product ID | 2130299 |
| `name` | text | Name | Greek Style Yoghurt |
| `brand` | text | Brand | Tamar Valley |
| `size` | text | Size | 1kg |
| `price` | number | Price | 6.5 |
| `wasPrice` | number | Was | 8.3 |
| `unitPrice` | number | Unit price | 0.65 |
| `unitMeasure` | text | Per | 100g |
| `available` | true/false | Available | true |
| `url` | URL | Product URL | https://www.coles.com.au/product/tamar-valley-greek-style-yoghurt-1... |
| `source` | text |  | dairy-eggs-fridge/yoghurt |
| `page` | number |  | 1 |
| `position` | number |  | 1 |
| `description` | text |  | TAMAR VALLEY GREEK STYLE YOGHURT 1KG |
| `currency` | text |  | AUD |
| `onSpecial` | true/false |  | true |
| `onlineOnlySpecial` | true/false |  | false |
| `saveAmount` | number |  | 1.8 |
| `savePercent` | number |  | 22 |
| `offerText` | text |  | save $1.80 |
| `isNew` | true/false |  | false |
| `unitPriceText` | text |  | $0.65/ 100g |
| `soldByWeight` | true/false |  | false |
| `availableQuantity` | number |  | 772 |
| `retailLimit` | number |  | 20 |
| `promotionalLimit` | number |  | 12 |
| `department` | text |  | Dairy, Eggs & Fridge |
| `category` | text |  | Yoghurt |
| `aisle` | text |  | Yoghurt Tubs |
| `image` | text |  | https://cdn.productimages.coles.com.au/productimages/2/2130299.jpg |
| `chargeUnits` | number |  | 1 |

## One record

```json
{
  "source": "dairy-eggs-fridge/yoghurt",
  "page": 1,
  "position": 1,
  "productId": "2130299",
  "name": "Greek Style Yoghurt",
  "brand": "Tamar Valley",
  "size": "1kg",
  "description": "TAMAR VALLEY GREEK STYLE YOGHURT 1KG",
  "price": 6.5,
  "wasPrice": 8.3,
  "currency": "AUD",
  "onSpecial": true,
  "onlineOnlySpecial": false,
  "saveAmount": 1.8,
  "savePercent": 22,
  "offerText": "save $1.80",
  "isNew": false,
  "unitPrice": 0.65,
  "unitMeasure": "100g",
  "unitPriceText": "$0.65/ 100g",
  "soldByWeight": false,
  "available": true,
  "availableQuantity": 772,
  "retailLimit": 20,
  "promotionalLimit": 12,
  "department": "Dairy, Eggs & Fridge",
  "category": "Yoghurt",
  "aisle": "Yoghurt Tubs",
  "image": "https://cdn.productimages.coles.com.au/productimages/2/2130299.jpg",
  "url": "https://www.coles.com.au/product/tamar-valley-greek-style-yoghurt-1kg-2130299",
  "chargeUnits": 1
}
```

## Input parameters

| Parameter | Type | Required | Default | What it does |
| --- | --- | --- | --- | --- |
| `categories` | array | no | ["dairy-eggs-fridge/yoghurt"] | Coles departments or categories as in the address of their page, for example dairy-eggs-fridge, dairy-eggs-fridge/yoghurt, or the full https://www.coles.com.au/browse/... |
| `searchTerms` | array | no |  | Words such as milk or yoghurt. |
| `allDepartments` | boolean | no | false | Read all 17 food and household departments (about 30,000 products); raise Maximum results to match. |
| `specials` | string | no | none | Also read the specials page: every special, the half price ones, the multibuy offers or the online only specials. |
| `productUrls` | array | no |  | Optional Coles product pages (https://www.coles.com.au/product/...); each gives a row with details, which counts as 10 rows. |
| `includeDetails` | boolean | no | false | Open each product's page for barcode, ingredients, allergens, country of origin and nutrition. |
| `maxItems` | integer | no | 20 | The run stops after this many result rows. |

## Ready-made examples

Saved inputs on Apify: run one as it is, or copy it and change the values.

- [Coles half price specials with was price and unit price](https://apify.com/v0iddo/coles-scraper/examples/coles-half-price-specials)

## Cost per 1,000 rows

$0.50 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.35 per 1,000.

| Results | Cost at the listed price | Cost at the lowest plan price |
| --- | --- | --- |
| 100 | $0.05 | $0.04 |
| 1,000 | $0.50 | $0.35 |
| 10,000 | $5.00 | $3.50 |
| 100,000 | $50.00 | $35.00 |

The figures are the listed price times the number of results. The `maxItems` limit and the maximum cost setting in the run options both stop a run before it spends more than you planned.

## Get the rows as CSV over HTTP

One request starts a run, waits for it and returns the dataset. The `format` parameter picks the file type and `fields` picks the columns. Replace the token with the one from Apify Console, Settings, Integrations.

```bash
curl -X POST "https://api.apify.com/v2/acts/v0iddo~coles-scraper/run-sync-get-dataset-items?format=csv&fields=productId,name,brand" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"categories": ["dairy-eggs-fridge/yoghurt"], "maxItems": 20}'
```

## Good to know

- Prices, specials and stock are those Coles shows a visitor who has not chosen a store (its default online store); prices are in Australian dollars.
- Sponsored tiles are left out, so a category gives the products Coles counts for it, each once.

## Links

- Actor on the Apify Store: [Coles Scraper](https://apify.com/v0iddo/coles-scraper)
- Guide with the Python and JavaScript code: [https://voidd0.github.io/coles-scraper/](https://voidd0.github.io/coles-scraper/)

