# Makro Product Search Scraper (`stealth_mode/makro-product-search-scraper`) Actor

Scrape product listings from Makro.co.za with advanced filtering. Collect prices, ratings, availability, media, specs, and 20+ fields per item. Filter by keyword, price range, discount, and rating—perfect for price monitoring, competitive analysis, and e-commerce research.

- **URL**: https://apify.com/stealth\_mode/makro-product-search-scraper.md
- **Developed by:** [Stealth mode](https://apify.com/stealth_mode) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Makro.co.za Product Scraper: Extract E-commerce Data at Scale

***

### What Is Makro.co.za?

Makro.co.za is South Africa's leading online marketplace for electronics, computers, laptops, and accessories. It hosts tens of thousands of product listings with real-time pricing, customer ratings, inventory status, and promotional offers. Manually extracting this data from search results is inefficient — the **Makro Product Scraper** automates collection, delivering structured product data ready for analysis.

***

### Overview

The **Makro Product Search Scraper** extracts detailed product information from Makro.co.za search results and category pages. It supports two scraping modes:

- **URL-based scraping:** Paste direct search or category URLs and extract all items
- **Filter-based search:** Use keywords combined with price ranges, ratings, discounts, and sorting options

This scraper is ideal for:

- **Price monitoring platforms** tracking competitor pricing and discounts
- **E-commerce researchers** analyzing product trends and availability
- **Affiliate marketers** building product catalogs for comparison sites
- **Business intelligence teams** benchmarking inventory and market positioning

Key features include flexible filtering, pagination support, and robust error handling via `ignore_url_failures`.

***

### Input Format

#### Mode 1: Scrape by URLs

Paste direct links to Makro product search or category pages:

```json
{
  "urls": [
    "https://www.makro.co.za/all/computers/laptop-accessories/pr?sid=all,6bo,ai3&otracker=categorytree"
  ],
  "max_items_per_url": 200,
  "ignore_url_failures": true
}
```

| Field | Description |
|---|---|
| `urls` | Array of Makro search or category page URLs to scrape |
| `max_items_per_url` | Maximum products per URL (e.g., 200) |
| `ignore_url_failures` | If `true`, skips failed URLs and continues |

#### Mode 2: Scrape by Search Filters

Search for products using keywords and filter criteria (leave `urls` empty):

```json
{
  "keyword": "mouse",
  "sort_by": "popularity",
  "price_from": "500",
  "price_to": "1500",
  "rating": "4",
  "discount": "30",
  "page": 1,
  "max_items_per_url": 200
}
```

| Field | Description | Options |
|---|---|---|
| `keyword` | Search term (e.g., "mouse", "keyboard") | Any string |
| `sort_by` | Sorting preference | `relevance`, `popularity`, `price_asc`, `price_desc`, `recency_desc` |
| `price_from` | Minimum price (ZAR) | Min, 250, 500, 1000, 2000, 5000, 10000, 20000, 30000, 40000, 50000, 60000 |
| `price_to` | Maximum price (ZAR) | 250, 500, 1000, 2000, 5000, 10000, 20000, 30000, 40000, 50000, 60000, Max |
| `rating` | Minimum customer rating | All, 4★+, 3★+, 2★+, 1★+ |
| `discount` | Minimum discount percentage | All, 10%, 20%, 30%, 40%, 50%, 60%, 70% |
| `page` | Starting page number | Integer (e.g., 1, 2, 3) |
| `max_items_per_url` | Products to collect | Integer (e.g., 200) |

> **Tip:** Use search filters for dynamic queries; use URLs for specific categories or archived results.

***

### Output Format

**Example Output (condensed):**

```json
{
  "analytics_data": {
    "category": "adapters"
  },
  "availability": {
    "message_intent": "positive",
    "display_state": "IN_STOCK",
    "intent": "positive",
    "show_message": false
  },
  "base_url": "/digital-world-xbox-360-slim-ac-supply-replacement-charger-adapter/p/itm74d6c0366b16f?pid=TTPH56FMUPMMCCK7",
  "buyability": {
    "intent": "positive",
    "message": null,
    "show_message": false
  },
  "condition_callout": false,
  "flags": {
    "enable_chat": true,
    "enable_compare": false,
    "enable_flipkart_advantage": false,
    "enable_offer_tag": false,
    "enable_visual_discovery": false,
    "enable_wishlist": true,
    "show_secondary_title": true,
    "swatch_available_on_browse_page": true
  },
  "grade": {
    "color": null,
    "id": null,
    "name": null,
    "short_desc": null
  },
  "id": "TTPH56FMUPMMCCK7",
  "item_id": "ITM74D6C0366B16F",
  "key_specs": [
    "Universal",
    "Power Cord Included"
  ],
  "listing_id": "LSTTTPH56FMUPMMCCK7MYZAK7",
  "media": {
    "images": [
      {
        "aspect_ratio": null,
        "content_info": null,
        "height": null,
        "url": "https://www.makro.co.za/asset/rukmini/fccp/{@width}/{@height}/ng-fkpublic-ui-user-fbbe/laptop-adapter/l/x/x/-original-imah575fyn9redef.jpeg?q={@quality}",
        "width": null
      }
    ]
  },
  "pricing": {
    "type": "ListingPriceValue",
    "delivery_charge": {
      "additional_text": null,
      "currency": "INR",
      "decimal_value": "0.00",
      "discount": null,
      "downpayment_rate": 0,
      "downpayment_required": false,
      "name": "Delivery Charges",
      "price_type": null,
      "strike_off": false,
      "text_style": null,
      "value": 0
    },
    "discount_amount": 100,
    "emi_price": null,
    "extra_discount": null,
    "final_price": {
      "additional_text": null,
      "currency": "INR",
      "decimal_value": "299.00",
      "discount": null,
      "downpayment_rate": 0,
      "downpayment_required": false,
      "name": "Total",
      "price_type": null,
      "strike_off": false,
      "text_style": null,
      "value": 299
    },
    "final_savings_text": null,
    "know_more": null,
    "listing_price_type": "REGULAR",
    "mrp": {
      "additional_text": "(incl. of all taxes)",
      "currency": "INR",
      "decimal_value": "399.00",
      "discount": null,
      "downpayment_rate": 0,
      "downpayment_required": false,
      "name": "Maximum Retail Price",
      "price_type": null,
      "strike_off": true,
      "text_style": null,
      "value": 399
    },
    "part_price_info": null,
    "plus_price_info": null,
    "price_descriptions": null,
    "price_per_unit": null,
    "price_tags": null,
    "prices": [
      {
        "additional_text": null,
        "currency": "INR",
        "decimal_value": "399.00",
        "discount": 25,
        "downpayment_rate": 0,
        "downpayment_required": false,
        "name": "Selling Price",
        "price_type": "FSP",
        "strike_off": true,
        "text_style": null,
        "value": 399
      },
      {
        "additional_text": null,
        "currency": "INR",
        "decimal_value": "299.00",
        "discount": null,
        "downpayment_rate": 0,
        "downpayment_required": false,
        "name": "Special Price",
        "price_type": "SPECIAL_PRICE",
        "strike_off": false,
        "text_style": null,
        "value": 299
      }
    ],
    "promotion_end_callout": null,
    "selected": null,
    "show_discount_as_amount": false,
    "title": null,
    "total_discount": 25,
    "upi_price_callout": null,
    "upi_regular_price_title": null
  },
  "product_brand": "Digital World",
  "product_card_tag_details": [],
  "rating": {
    "type": "RatingValue",
    "average": 4.5,
    "base": 5,
    "breakup": [
      0,
      0,
      0,
      1,
      1
    ],
    "count": 2,
    "histogram_base_count": 1,
    "review_count": 0,
    "round_off_count": "2"
  },
  "smart_url": "http://www.makro.co.za/digital-world-xbox-360-slim-ac-supply-replacement-charger-adapter/p/itm74d6c0366b16f?pid=TTPH56FMUPMMCCK7",
  "tags": [],
  "titles": {
    "new_title": "Xbox 360 Slim AC Supply Replacement Charger Adapter",
    "subtitle": "Power Cord Included",
    "super_title": "Digital World",
    "title": "Digital World Xbox 360 Slim AC Supply Replacement Charger Adapter"
  },
  "vertical": "laptop_adapter",
  "warranty_summary": null,
  "from_url": "https://www.makro.co.za/all/computers/laptop-accessories/pr?sid=all,6bo,ai3&otracker=categorytree&otracker=nmenu_sub_Electronics%20%26%20Gaming_0_Accessories"
}
```

Each scraped product returns structured data across 20+ fields:

#### Product Identification

| Field | Meaning |
|---|---|
| `ID` | Unique internal Makro product identifier |
| `Item ID` | Standardized item tracking number |
| `Listing ID` | Listing-specific identifier |
| `Titles` | Product name and variant descriptions |
| `Product Brand` | Brand name (e.g., Corsair, Razer, HP) |

#### Pricing & Availability

| Field | Meaning |
|---|---|
| `Pricing` | Current price (ZAR), original price, discount amount |
| `Availability` | Stock status (in-stock, out-of-stock, limited) |
| `Buyability` | Whether the product is purchasable now |
| `Condition Callout` | Product condition (new, refurbished, used) |

#### Product Details

| Field | Meaning |
|---|---|
| `Key Specs` | Core specifications (RAM, storage, color, connectivity) |
| `Warranty Summary` | Warranty coverage and duration |
| `Tags` | Product tags and categories |
| `Product Card Tag Details` | Promotional badges (e.g., "Bestseller", "Limited Time") |

#### Media & URLs

| Field | Meaning |
|---|---|
| `Media` | Product images and video links |
| `Base URL` | Direct product page URL on Makro |
| `Smart URL` | Tracking-optimized URL for affiliate use |

#### Ratings & Classification

| Field | Meaning |
|---|---|
| `Rating` | Customer star rating and review count |
| `Grade` | Product quality grade or tier |
| `Vertical` | Product category hierarchy |

#### Technical Metadata

| Field | Meaning |
|---|---|
| `Flags` | Special attributes (new arrival, on sale, exclusive) |
| `Analytics Data` | View counts, click-through rates, trending indicators |

***

### How to Use

#### Using URLs (Fastest)

1. Browse Makro and find a search or category page you want to scrape
2. Copy the full URL (e.g., `https://www.makro.co.za/all/computers/laptop-accessories/pr?...`)
3. Paste into the `urls` array
4. Set `max_items_per_url` to your desired limit (200 is recommended)
5. Run the scraper

#### Using Search Filters (Most Flexible)

1. Enter a keyword (e.g., "wireless mouse")
2. Apply filters:
   - **Price range:** Set `price_from` and `price_to` (ZAR)
   - **Rating:** Select minimum rating (4★+ filters low-rated items)
   - **Discount:** Filter products on sale by minimum discount %
   - **Sort:** Choose sorting (popularity finds bestsellers)
3. Set the starting `page` number (default: 1)
4. Run the scraper

**Troubleshooting:**

- If results are empty, verify the keyword is spelled correctly
- For niche products, reduce `rating` filter to "All" to expand results
- If scraping slows, reduce `max_items_per_url` below 200

***

### Use Cases & Applications

- **Price comparison sites:** Feed real-time Makro prices into aggregator platforms
- **Discount tracking:** Monitor products on sale and notify subscribers of price drops
- **Market research:** Analyze pricing trends, brand distribution, and customer satisfaction by category
- **Inventory alerts:** Track stock availability for high-demand items
- **Affiliate marketing:** Build product catalogs with live pricing and promotional tags for commission-based sites

The **Makro Product Scraper** eliminates manual data collection, delivering ready-to-use product intelligence that scales from tens to thousands of items in minutes.

***

### Conclusion

The **Makro.co.za Product Scraper** is a powerful tool for anyone building e-commerce applications, tracking market data, or aggregating product information. With flexible search and URL-based modes, detailed output fields, and South African pricing in ZAR, it makes Makro product data accessible and actionable.

# Actor input Schema

## `urls` (type: `array`):

Add the URLs of the product search list urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.

## `ignore_url_failures` (type: `boolean`):

If true, the scraper will continue running even if some URLs fail to be scraped.

## `keyword` (type: `string`):

Enter the keyword to search for items

## `sort_by` (type: `string`):

Sort items by options

## `price_from` (type: `string`):

Enter the minimum price to search for items

## `price_to` (type: `string`):

Enter the maximum price to search for items

## `rating` (type: `string`):

Enter the rating to search for items

## `discount` (type: `string`):

Enter the discount to search for items

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

Specify the page number to start scraping from

## `max_items_per_url` (type: `integer`):

The maximum number of items to scrape per URL.

## Actor input object example

```json
{
  "urls": [
    "https://www.makro.co.za/all/computers/laptop-accessories/pr?sid=all,6bo,ai3&otracker=categorytree&otracker=nmenu_sub_Electronics%20%26%20Gaming_0_Accessories"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 20
}
```

# Actor output Schema

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

No description

# 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 = {
    "urls": [
        "https://www.makro.co.za/all/computers/laptop-accessories/pr?sid=all,6bo,ai3&otracker=categorytree&otracker=nmenu_sub_Electronics%20%26%20Gaming_0_Accessories"
    ],
    "ignore_url_failures": true,
    "max_items_per_url": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("stealth_mode/makro-product-search-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 = {
    "urls": ["https://www.makro.co.za/all/computers/laptop-accessories/pr?sid=all,6bo,ai3&otracker=categorytree&otracker=nmenu_sub_Electronics%20%26%20Gaming_0_Accessories"],
    "ignore_url_failures": True,
    "max_items_per_url": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("stealth_mode/makro-product-search-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 '{
  "urls": [
    "https://www.makro.co.za/all/computers/laptop-accessories/pr?sid=all,6bo,ai3&otracker=categorytree&otracker=nmenu_sub_Electronics%20%26%20Gaming_0_Accessories"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 20
}' |
apify call stealth_mode/makro-product-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stealth_mode/makro-product-search-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/ZvXevqTP9tiWwKYeM/builds/1yYcngIOeO0n6Wp8S/openapi.json
