# Dis-Chem & Clicks Scraper — South Africa Pharmacy Prices (`yugenox/dischem-clicks-pharmacy-scraper`) Actor

Scrape Dis-Chem and Clicks, South Africa's two big pharmacy chains: product name, brand, price, regular price, discount, promotions, stock, category, image and URL by keyword or category. Compare both shops in one dataset. No login.

- **URL**: https://apify.com/yugenox/dischem-clicks-pharmacy-scraper.md
- **Developed by:** [Yugenox Corp](https://apify.com/yugenox) (community)
- **Categories:** E-commerce, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 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

## Dis-Chem & Clicks Scraper — South Africa Pharmacy Prices

Scrape product prices from **Dis-Chem** and **Clicks**, South Africa's two biggest pharmacy and health & beauty chains, into one clean dataset. Search by keyword (both shops at once) or read whole Clicks category pages: product name, brand, current price, regular price, discount, promotions, online stock, category path, image and product link.

No login, no cookies, no browser: fast and cheap.

### What you can use it for

- **Price comparison**: the same keyword at Dis-Chem and Clicks side by side, every day.
- **Promotion tracking**: which products are discounted, by how much, and in which campaign ("Save 30% on selected", "3 for 2", "Better Rewards", "Black Friday").
- **Brand monitoring**: for pharma, vitamin, skincare and baby brands: where your products are listed, at what price, and whether they are in stock.
- **Market research**: assortment and price levels per category (sun care, vitamins, first aid, baby, fragrance …) across South African pharmacy retail.
- **Retail analytics feeds**: schedule it daily and send the dataset to Google Sheets, Excel, BigQuery or your BI tool.

### Input

| Field | What it does |
|---|---|
| **Keywords** | Products to search for, e.g. `sunscreen`, `vitamin c`, `panado`, `nivea`. Each keyword is searched at every retailer you pick. |
| **Retailers** | Dis-Chem, Clicks or both (default: both). |
| **Category URLs** | Optional: Clicks category pages to read in full, e.g. `https://clicks.co.za/beauty/skincare/sun-care/face-and-body-sunscreen/c/OH400065`. Search-result URLs of either shop work too. A Dis-Chem category URL is searched at Dis-Chem by the category's name (`…/first-aid` → `first aid`). |
| **Max products per search** | Products saved per keyword per retailer, and per category URL (default 50, 0 = everything). |
| **Max products in total** | Cap for the whole run (default 200, 0 = no overall cap). |
| **Proxy** | Apify Proxy (datacenter) by default — included in every Apify plan. |

Example:

```json
{
  "keywords": ["sunscreen", "vitamin c"],
  "retailers": ["dischem", "clicks"],
  "maxItemsPerSearch": 50
}
```

### Output

One row per product per retailer. A real row (trimmed), from 2 November 2026:

```json
{
  "retailer": "Dis-Chem",
  "productId": "64064",
  "sku": "111664",
  "name": "Lifestyle Vitamin C 1000mg 100 Tablets",
  "brand": "Lifestyle Health",
  "price": 107.99,
  "regularPrice": 149.99,
  "currency": "ZAR",
  "onPromotion": true,
  "discountPercent": 28,
  "promotions": ["Dis-Chem extraRewards", "Better Rewards", "20% Off", "Unlock Summer Savings"],
  "inStock": true,
  "category": "Vitamin C",
  "categoryPath": ["Healthy Living", "Vitamins and Herbals", "Health Supplements", "Immune Focus", "Vitamin C"],
  "url": "https://www.dischem.co.za/lifestyle-vitamin-c-1000mg-100-tablets-664",
  "searchQuery": "vitamin c",
  "position": 1
}
```

And from Clicks:

```json
{
  "retailer": "Clicks",
  "productId": "337062",
  "name": "Vitamin C & Zinc 500mg 100 Capsules",
  "brand": "Clicks",
  "price": 97.99,
  "onPromotion": true,
  "promotions": ["Buy bulk and save"],
  "promotionUrl": "https://clicks.co.za/c/OH1?q=%3Arelevance%3AallPromotions%3A202610220742192291",
  "inStock": true,
  "rating": 4.3,
  "reviewCount": 19,
  "categoryPath": ["Health and Pharmacy", "Vitamins and Supplements", "Vitamin C, Immune Support Vitamins and Supplements"],
  "url": "https://clicks.co.za/clicks_vitamin-c-and-zinc-500mg-100-capsules/p/337062"
}
```

All fields: `retailer, retailerId, productId, sku, name, brand, price, regularPrice, currency, onPromotion, discountPercent, promotions, promotionUrl, promoEndDate, inStock, stockStatus, rating, reviewCount, category, categoryPath, size, imageUrl, url, searchQuery, searchType, position, scrapedAt`. Every row has every field; a value the shop doesn't show is `null`.

Prices are in South African rand (ZAR), as shown on the shop's website (incl. VAT). `regularPrice` is the crossed-out price when a product is on sale.

### Pricing

Pay per event, no subscription:

- **$2.50 per 1,000 products** saved ($0.0025 each),
- **$0.002 per search** the shop answered (a keyword at one retailer, or a category URL), with or without products,
- **$0.003 per run** (start).

Example: 2 keywords at both shops, 50 products each = 200 products → $0.50 + $0.008 + $0.003 ≈ **$0.51**.

### Tips

- Keyword searches at Clicks often open the matching Clicks category (that's how the Clicks website itself answers them), so a broad keyword like `sunscreen` gives you the whole sun-protection aisle.
- For a whole Clicks aisle, paste the category URL — you get everything in it, page by page. For Dis-Chem, use the aisle's name as a keyword (e.g. `first aid`).
- Clicks asks visitors to wait 10 seconds between pages, and the scraper respects that: Clicks delivers about 48 products every 10 seconds. Dis-Chem is much faster. Both shops are read at the same time.
- Use **Max products per search** to keep scheduled runs small and cheap.
- Schedule the actor daily and compare `price` / `onPromotion` over time to see when promotions start and end.

### FAQ

**Is it legal to scrape Dis-Chem and Clicks?**
This actor reads only public product listings that anyone can see without an account — product names, prices and promotions. It follows each site's robots.txt (including Clicks' 10-second crawl delay) and collects no personal data. Laws differ by country and use case, so check with a lawyer if you're unsure about your specific use.

**Does it access any private data?**
No. It never logs in and reads no customer accounts, reviews' authors or contact details — only product information the shops publish for everyone.

**Why is `regularPrice` empty for most Clicks rows?**
Clicks shows multi-buy and percentage promotions as labels ("Save 30% on selected") rather than a crossed-out price on its listing pages. Those labels are in `promotions`, and `onPromotion` is `true`.

**What happens if a shop doesn't answer or refuses the request?**
The run still finishes successfully with everything collected from the other shop, and the status message says plainly what happened. Searches a shop never answered are not charged.

**Can I get other South African retailers?**
Open an issue on the actor page with the shop you need.

# Actor input Schema

## `keywords` (type: `array`):

Products to search for, e.g. "sunscreen", "vitamin c", "panado", "nivea". Each keyword is searched at every retailer you pick below.

## `retailers` (type: `array`):

Which shops to search for your keywords. Both by default. (Category URLs below are always read from the shop they belong to.)

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

Optional: Clicks category pages to read in full, e.g. https://clicks.co.za/beauty/skincare/sun-care/face-and-body-sunscreen/c/OH400065 (filters in the URL are kept). Search-result URLs of either shop work too. A Dis-Chem category URL is searched at Dis-Chem by the category's name (e.g. .../first-aid → "first aid").

## `maxItemsPerSearch` (type: `integer`):

Maximum products saved for each keyword at each retailer, and for each category URL. 0 = everything the shop lists.

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

Maximum products for the whole run, across all searches and both retailers. 0 = no overall limit.

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

Apify Proxy (datacenter) is the default and comes with every Apify plan.

## Actor input object example

```json
{
  "keywords": [
    "sunscreen"
  ],
  "retailers": [
    "dischem",
    "clicks"
  ],
  "maxItemsPerSearch": 10,
  "maxItems": 200,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped products.

## `run` (type: `string`):

Status and statistics for this run.

## `report` (type: `string`):

RUN_REPORT: how the run ended, counts per retailer, requests and proxy use.

# 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 = {
    "keywords": [
        "sunscreen"
    ],
    "retailers": [
        "dischem",
        "clicks"
    ],
    "maxItemsPerSearch": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/dischem-clicks-pharmacy-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 = {
    "keywords": ["sunscreen"],
    "retailers": [
        "dischem",
        "clicks",
    ],
    "maxItemsPerSearch": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/dischem-clicks-pharmacy-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 '{
  "keywords": [
    "sunscreen"
  ],
  "retailers": [
    "dischem",
    "clicks"
  ],
  "maxItemsPerSearch": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call yugenox/dischem-clicks-pharmacy-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yugenox/dischem-clicks-pharmacy-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/rY5PnBldW8ah6vKMm/builds/ZTYhfUeO27pZ9D4kv/openapi.json
