# Country Road AU Scraper (`dromb/country-road-au-scraper`) Actor

This Apify Actor allows you to scrape public product data, prices, and availability from the Country Road AU storefront. It is designed for market research and price monitoring, providing a normalized dataset of product information.

- **URL**: https://apify.com/dromb/country-road-au-scraper.md
- **Developed by:** [Dmitriy Gyrbu](https://apify.com/dromb) (community)
- **Categories:** Automation, Developer tools, E-commerce
- **Stats:** 2 total users, 1 monthly users, 33.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Country Road Product Scraper

This Apify Actor allows you to scrape public product data, prices, and availability from the Country Road AU storefront. It is designed for market research and price monitoring, providing a normalized dataset of product information.

### Supported Operations
The actor supports three primary ways to retrieve product data:
- **Keyword Search**: Find products using search terms (e.g., "shirt", "linen dress").
- **Category Browse**: Extract products from a specific category listing page.
- **Product Detail**: Retrieve comprehensive specifications for a single product using its ID or URL.

All search and category results are **automatically enriched**, meaning the actor will visit each product's detail page to collect full specifications, variants, and images.

### Input Guide

#### Pagination & Limits
- **Page (`page`)**: The result page to fetch (default: 1, minimum: 1).
- **Page Size (`pageSize`)**: Maximum number of products to process from the selected page (default: 48, maximum: 100). This is an actor-side cap.
- **Max Items (`maxItems`)**: Maximum number of enriched products to emit in the dataset (maximum: 100).

**Examples:**
- **Search Page 2**: `{"searchQuery": "shirt", "page": 2, "maxItems": 10}`
- **Category Page 1 with cap**: `{"categoryUrl": "...", "page": 1, "pageSize": 10}`


#### Examples
Depending on your goal, provide one of the following input combinations:

**1. Keyword Search (e.g., shirts)**
```json
{
  "searchQuery": "shirt",
  "maxItems": 10,
  "sort": "recommended",
  "proxyConfiguration": "auto"
}
````

**2. Keyword Search (e.g., dresses)**

```json
 {
  "searchQuery": "dress",
  "maxItems": 5,
  "sort": "new",
  "proxyConfiguration": "auto"
}
```

**3. Category Browse**

```json
{
  "categoryUrl": "https://www.countryroad.com.au/woman-new-in/",
  "maxItems": 20,
  "proxyConfiguration": "auto"
}
```

**4. Single Product Detail**

```json
{
  "itemSlug": "60226975-7561",
  "proxyConfiguration": "auto"
}
```

#### Input Parameters

- **Search Query**: Search term to find products.
- **Category URL**: URL or slug of the category page.
- **Item Slug**: Product style code, slug, or full URL.
- **Max Items**: Maximum number of products to scrape and enrich.
- **Sort**: Sorting method (`recommended`, `new`, `price_asc`, `price_desc`).
- **Filters**: Optional filters in `key:value` format (e.g., `colour:black`).
- **Proxy Configuration**:
  - `auto`: Recommended. Uses optimized Apify residential proxies.
  - `apify`: Uses Apify's proxy pool.
  - `direct`: No proxy (high risk of blocking).
  - `custom`: Uses a provided custom proxy URL.

### Output Example

The actor returns a normalized dataset. Below is a representative example of a verified product item:

```json
{
  "id": "60226975-7561",
  "slug": "linen-shirt-60226975-7561",
  "name": "Linen Shirt",
  "brand": "CR",
  "source_url": "https://www.countryroad.com.au/linen-shirt-60226975-7561",
  "category": "Natural Fibres",
  "price": 139,
  "discount_price": 19.95,
  "currency": "AUD",
  "barcode": "9360160557488",
  "eans": ["9360160557488"],
  "size": "{'code': '', 'sortOrder': 20, 'size': '16'}",
  "color": "{'code': '7561', 'colour': 'Pink Meringue', 'sortOrder': 0}",
  "in_stock": true,
  "stock_status": "in_stock",
  "image": "https://www.countryroad.com.au/1/128929_607515_405816.jpg",
  "images": [
    "https://www.countryroad.com.au/1/128929_607515_405816.jpg",
    "https://www.countryroad.com.au/2/128929_607515_405817.jpg"
  ],
  "variants": [
    {
      "id": "607518",
      "sku": "53025535",
      "size": "16",
      "color": "Pink Meringue",
      "price": 139,
      "discount_price": 19.95,
      "in_stock": true
    }
  ],
  "short_description": "A wardrobe staple, made using organically grown linen...",
  "description": "100% linen Shell-look buttons Regular fit Long sleeve...",
  "specifications": {
    "Brand": "CR",
    "Fabric": "100% Linen",
    "Origin Country": "China"
  },
  "breadcrumbs": ["Woman", "Shop by Attribute", "Natural Fibres"],
  "attributes": {
    "fabric": "100% Linen",
    "origin_country": "China"
  }
}
```

### Output Fields Reference

- `id`: Unique product identifier from the store.
- `slug`: URL-friendly product identifier.
- `name`: Full name of the product.
- `brand`: Brand name.
- `source_url`: Direct link to the product on the store.
- `price`: Original retail price.
- `discount_price`: Current sale price if applicable.
- `currency`: Currency code (e.g., AUD).
- `variants`: Array of available size/color combinations with their respective stock and price.
- `specifications`: Detailed product attributes extracted from the "Details" section.
- `breadcrumbs`: The site navigation path to the product.

### Limitations & Compliance

- **Public Data Only**: Only extracts information available on public-facing pages.
- **No Private Access**: Does not access accounts, carts, or private user areas.
- **No CAPTCHA**: Does not solve CAPTCHAs.
- **Pagination**: Supported. Use `page` to select a result page and `pageSize` to cap items processed from that page.
- **Availability**: Success depends on target site availability and proxy health.

### Proxy Note

For reliable operation in the cloud, `proxyConfiguration: "auto"` is strongly recommended. This uses residential proxies optimized for the Australian region to avoid bot detection.

### Evidence

This actor's capabilities have been cloud-validated for:

- Keyword search
- Category browsing
- Single product enrichment

# Actor input Schema

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

Operation to run. The default search operation is used for Apify automated quality tests.

## `searchQuery` (type: `string`):

Search term to find products (e.g., 'linen shirt').

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

Alias for Search Query. Use either query or searchQuery.

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

URL of the category page to scrape (e.g., '/woman-new-in/').

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

Product slug or ID to scrape a specific item (e.g., '60309772-1').

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

Maximum number of dataset items to emit from the selected page/request.

## `sort` (type: `string`):

Sorting method.

## `filters` (type: `array`):

Filters in the format 'Key:Value' (e.g., 'Size:M, Color:Blue').

## `proxyConfiguration` (type: `string`):

Proxy settings for the scraper.

## `customProxyUrl` (type: `string`):

Proxy URL if 'custom' is selected above.

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

Result page to fetch for search/category operations.

## `pageSize` (type: `integer`):

Maximum number of products to process from the selected page (Actor-side cap).

## Actor input object example

```json
{
  "operation": "search",
  "searchQuery": "dress",
  "maxItems": 5,
  "sort": "recommended",
  "proxyConfiguration": "auto",
  "page": 1,
  "pageSize": 48
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("dromb/country-road-au-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("dromb/country-road-au-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call dromb/country-road-au-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=dromb/country-road-au-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Country Road AU Scraper",
        "description": "This Apify Actor allows you to scrape public product data, prices, and availability from the Country Road AU storefront. It is designed for market research and price monitoring, providing a normalized dataset of product information.",
        "version": "2.0",
        "x-build-id": "1Sl1oQsn29lXdVTnq"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/dromb~country-road-au-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-dromb-country-road-au-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/dromb~country-road-au-scraper/runs": {
            "post": {
                "operationId": "runs-sync-dromb-country-road-au-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/dromb~country-road-au-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-dromb-country-road-au-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "operation": {
                        "title": "Operation",
                        "enum": [
                            "search",
                            "category",
                            "item"
                        ],
                        "type": "string",
                        "description": "Operation to run. The default search operation is used for Apify automated quality tests.",
                        "default": "search"
                    },
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Search term to find products (e.g., 'linen shirt').",
                        "default": "dress"
                    },
                    "query": {
                        "title": "Search Query Alias",
                        "type": "string",
                        "description": "Alias for Search Query. Use either query or searchQuery."
                    },
                    "categoryUrl": {
                        "title": "Category URL",
                        "type": "string",
                        "description": "URL of the category page to scrape (e.g., '/woman-new-in/')."
                    },
                    "itemSlug": {
                        "title": "Product ID/Slug",
                        "type": "string",
                        "description": "Product slug or ID to scrape a specific item (e.g., '60309772-1')."
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum number of dataset items to emit from the selected page/request.",
                        "default": 5
                    },
                    "sort": {
                        "title": "Sort Order",
                        "enum": [
                            "recommended",
                            "new",
                            "price_asc",
                            "price_desc"
                        ],
                        "type": "string",
                        "description": "Sorting method.",
                        "default": "recommended"
                    },
                    "filters": {
                        "title": "Filters",
                        "type": "array",
                        "description": "Filters in the format 'Key:Value' (e.g., 'Size:M, Color:Blue').",
                        "items": {
                            "type": "string"
                        }
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "enum": [
                            "auto",
                            "apify",
                            "direct",
                            "custom"
                        ],
                        "type": "string",
                        "description": "Proxy settings for the scraper.",
                        "default": "auto"
                    },
                    "customProxyUrl": {
                        "title": "Custom Proxy URL",
                        "type": "string",
                        "description": "Proxy URL if 'custom' is selected above."
                    },
                    "page": {
                        "title": "Page",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Result page to fetch for search/category operations.",
                        "default": 1
                    },
                    "pageSize": {
                        "title": "Page Size",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum number of products to process from the selected page (Actor-side cap).",
                        "default": 48
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
