# The Reject Shop AU Product & Price Scraper (`dromb/reject-shop-scraper`) Actor

Search The Reject Shop Australia products and extract prices, stock, barcodes, categories, images, and variants.

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

## Pricing

from $0.40 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## The Reject Shop AU Product Scraper

Turn The Reject Shop's public Australian catalog into structured data for price tracking, product research, assortment monitoring, and automations.

Choose an operation, run the Actor, and receive clean Dataset rows with product names, current and regular prices, availability, SKU, barcode, categories, images, variants, and source URLs. The Actor uses a lightweight Shopify Storefront API route, so it does not need a browser for normal operation.

### What you can do

- Search products by keyword.
- Browse products from a collection handle.
- Retrieve a rich record for one product.
- Discover public category handles.
- Continue search or category pagination using `OUTPUT.pageInfo.endCursor`.
- Send the Dataset to Google Sheets, n8n, Make, Telegram, a database, or a CRM.

### Quick start

Search for storage products:

```json
{
  "operation": "search",
  "query": "storage",
  "first": 20,
  "proxyMode": "direct"
}
```

The default `direct` route is the cheapest verified option. It is also the recommended production setting.

### Operations

#### Search products

```json
{
  "operation": "search",
  "query": "storage",
  "first": 20
}
```

#### Browse a category

Use `categories` first if you do not know the handle.

```json
{
  "operation": "category",
  "handle": "body-wash",
  "first": 20
}
```

#### Get one product

By URL:

```json
{
  "operation": "item",
  "url": "https://www.rejectshop.com.au/p/5pc-everything-shower-set"
}
```

Or by handle:

```json
{
  "operation": "item",
  "handle": "5pc-everything-shower-set"
}
```

#### List categories

```json
{
  "operation": "categories",
  "limit": 100
}
```

### Output

Product rows can include:

| Field | Meaning |
|---|---|
| `id` | Shopify product ID |
| `slug` | Product handle |
| `name` | Product name |
| `source_url` | Canonical product URL |
| `category`, `breadcrumbs` | Public category context |
| `sku`, `barcode` | Product identifiers |
| `availability`, `in_stock` | Stock status |
| `price` | Regular price |
| `discount_price` | Sale price when present |
| `current_price` | Price currently payable |
| `currency` | Price currency, normally `AUD` |
| `images` | Product image URLs |
| `variants` | Variant-level identifiers, prices, options, and stock |

The default Dataset contains the requested rows. The `OUTPUT` record in the default key-value store contains:

```json
{
  "source": "rejectshop",
  "operation": "search",
  "status": "success",
  "success": true,
  "total": 20,
  "errors": [],
  "pageInfo": {
    "hasNextPage": true,
    "endCursor": "..."
  },
  "proxy": {
    "requested_mode": "direct",
    "used_mode": "direct",
    "fallback_used": false,
    "errors": []
  }
}
```

### Pagination

For search and category runs:

1. Read `pageInfo.endCursor` from the `OUTPUT` record.
2. Start another run with the same input and add `"after": "..."`.
3. Stop when `pageInfo.hasNextPage` is `false`.

### Proxy strategy

- `direct` — verified and recommended; no proxy traffic cost.
- `auto` — starts direct and falls back to Apify datacenter after a retryable failure.
- `apify` — Apify datacenter proxy.
- `residential` — Apify residential proxy in Australia.
- `special` — an account-specific Apify group supplied in `proxyGroup`.
- `custom` — a private proxy URL supplied in `proxyUrl`.

Proxy credentials are never written to Dataset or `OUTPUT`.

### Use with n8n / Make

An importable n8n example is included in [`examples/n8n-reject-shop-to-google-sheets.json`](examples/n8n-reject-shop-to-google-sheets.json). It demonstrates:

1. Starting the Actor through the Apify API.
2. Waiting for the run to finish.
3. Reading the default Dataset.
4. Appending product rows to Google Sheets.

Set the `APIFY_TOKEN` environment variable in n8n and configure your Google Sheets credential after import.

The same flow in Make is: **HTTP — Make a request → JSON → Iterator → Google Sheets — Add a row**.

#### Start through the API

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/dromb~reject-shop-scraper/runs?token=YOUR_APIFY_TOKEN&waitForFinish=120" \
  -H "Content-Type: application/json" \
  -d '{"operation":"search","query":"storage","first":20,"proxyMode":"direct"}'
```

Use `data.defaultDatasetId` from the response:

```bash
curl "https://api.apify.com/v2/datasets/DATASET_ID/items?clean=true&format=json"
```

### Notes

- This Actor is unofficial and is not affiliated with or endorsed by The Reject Shop.
- Availability and prices reflect the public source at collection time and can change.
- Keep runs bounded and follow the target website's applicable terms and policies.

# Actor input Schema

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

Choose the result set to collect.

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

Required for search. Example: storage.

## `handle` (type: `string`):

For category or item. Examples: body-wash or 5pc-everything-shower-set.

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

Alternative to handle for item. Example: https://www.rejectshop.com.au/p/5pc-everything-shower-set.

## `first` (type: `integer`):

Number of products returned by search or category (1-250).

## `after` (type: `string`):

Optional endCursor from the previous run's OUTPUT.pageInfo.

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

Maximum categories returned by list categories (1-250).

## `proxyMode` (type: `string`):

Direct is the cheapest verified route. Auto starts direct and uses Apify datacenter only after a retryable failure.

## `proxyGroup` (type: `string`):

Required only for special mode. Enter a proxy group enabled on your Apify account.

## `proxyCountryCode` (type: `string`):

Optional two-letter country code for special mode.

## `proxyUrl` (type: `string`):

Required only for custom mode. Credentials are not written to Dataset or OUTPUT.

## Actor input object example

```json
{
  "operation": "search",
  "query": "storage",
  "first": 24,
  "limit": 250,
  "proxyMode": "direct",
  "proxyCountryCode": "AU"
}
```

# Actor output Schema

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

Products or category records returned by the Actor.

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

Status, total, errors, proxy route, and pageInfo stored under OUTPUT.

# 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/reject-shop-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/reject-shop-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/reject-shop-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/JTFj4gEPaFi4ugfpm/builds/N2PAA9IU71P4OOaDt/openapi.json
