# Takealot Product Scraper (`ashersam01/takealot-product-scraper`) Actor

- **URL**: https://apify.com/ashersam01/takealot-product-scraper.md
- **Developed by:** [Asher Samwaka](https://apify.com/ashersam01) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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.

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

## 🛒 Takealot Product Scraper

> **Track competitor pricing, monitor stock, and extract product data from South Africa's #1 online retailer — in minutes.**

Takealot is South Africa's largest e-commerce platform, with over R14.9B in annual revenue and millions of products across thousands of categories. This actor gives you instant, structured access to **any Takealot search or category** — ready to download as JSON, CSV, or Excel.

---

### 🌍 What You Get

Run once. Get any Takealot search result as a clean, structured dataset.

| Feature | Supported |
|---|---|
| 🔍 **Search any query** | ✅ Yes |
| 🏷️ **Filter by brand** | ✅ Yes |
| 💰 **Filter by price range** | ✅ Yes |
| 📊 **Sort by price, rating, or newest** | ✅ Yes |
| 📦 **Stock availability** | ✅ Yes |
| 🏬 **Per-warehouse stock (CPT/JHB/DBN)** | ✅ Yes |
| 💸 **Original price + discount %** | ✅ Yes |
| ⭐ **Rating + review count** | ✅ Yes |
| 🖼️ **Product images** | ✅ Yes |
| 🌐 **No login or API key required** | ✅ Yes |

---

### 📊 Sample Output

Here's what a typical record looks like:

```json
{
  "plid": 99450324,
  "title": "HP 250 RT G9 Intel Celeron N150 8GB DDR4 256GB NVMe SSD 15.6\" FHD Notebook",
  "subtitle": "HP 250 | Designed for everyday business tasks",
  "brand": "HP",
  "product_url": "https://www.takealot.com/hp-250-rt-g9-intel-celeron-n150-8gb-ddr4-256gb-nvme-ssd-15-6-fhd/PLID99450324",
  "image_url": "https://media.takealot.com/covers_images/93e5da4a51e44735aaf286dc64de7737/s-380.file",
  "current_price": 5999,
  "listing_price": 6999,
  "saving_percent": "14%",
  "price_display": "R 5,999",
  "rating": 4.6,
  "review_count": 77,
  "in_stock": true,
  "stock_status": "In stock",
  "is_imported": false,
  "warehouses": ["CPT", "JHB"],
  "estimated_delivery": "Get it Tomorrow, 8am - 7pm",
  "offer_id": 225375450,
  "tsin": 100925871,
  "is_preorder": false,
  "badges": ["14% off"],
  "image_count": 5
}
````

Every record includes **22 fields** — pricing, stock, ratings, warehouse availability, and a direct link to the product.

***

### 💼 What Can You Build With This?

**📈 Competitor Price Tracking**
Marketplace sellers can monitor competitor pricing daily, identify undercuts, and adjust offers automatically.

**🏬 Stock & Inventory Intelligence**
Track which products are running low across CPT/JHB/DBN warehouses. Identify pre-order opportunities.

**🔍 Product Research for Sellers**
Find which products are best-rated, which categories are underserved, and where to position new SKUs.

**📰 Retail Analytics & Journalism**
Track inflation, brand presence, and category trends across South Africa's largest retailer.

**🎯 Marketing & Brand Monitoring**
Track how brands rank in Takealot search results, monitor review counts, and benchmark against competitors.

**💡 Deal Aggregators**
Build a price comparison app or deal-tracking service powered by fresh Takealot data.

***

### ⚙️ How To Use It

**Step 1 — Set your search**

```json
{
  "search_query": "laptop",
  "brand": "HP",
  "price_min": 5000,
  "price_max": 15000,
  "sort": "price_low_to_high",
  "max_results": 500
}
```

| Input | Required | Description |
|---|---|---|
| `search_query` | ✅ Yes | Any search term (e.g. "laptop", "iphone", "samsung tv") |
| `brand` | No | Filter to a specific brand (e.g. "HP", "Apple", "Samsung") |
| `price_min` | No | Minimum price in ZAR |
| `price_max` | No | Maximum price in ZAR |
| `sort` | No | `relevance`, `price_low_to_high`, `price_high_to_low`, `best_sellers`, `newest`, `top_rated` |
| `max_results` | No | Default 500, max 10,000 |

**Step 2 — Hit Start**

Products stream into your dataset in real time as pages are scraped.

**Step 3 — Export your data**

Download as **JSON**, **CSV**, or **Excel** with one click. Pipe it into your database, BI tool, or pricing engine.

***

### 🛠️ Under The Hood

- Built with **Python + httpx** — calls Takealot's internal JSON API directly
- No browser automation, no Playwright — fast and cheap
- Uses **Apify residential proxies** (ZA) for reliable, unblocked access
- Cursor-based pagination handled automatically
- Records stream to the dataset as they're found — no waiting for the full run

***

### 📝 Notes

- All prices in **ZAR (South African Rand)**
- Brand filter is **case-sensitive** — must match Takealot exactly (e.g. "HP" not "hp")
- Some products show "From R X,XXX" when they have multiple variants — `listing_price` may be null in that case
- Takealot has ~3M+ products across all categories — this actor handles any search query

### ⚠️ Legal

This actor collects publicly available product data. Use responsibly and ensure compliance with applicable laws in your jurisdiction.

***

*Made with ❤️ from Windhoek, Namibia 🇳🇦 — because African e-commerce data should be accessible to everyone.*

# Actor input Schema

## `search_query` (type: `string`):

Search term to scrape, e.g. 'laptop', 'iphone', 'samsung tv', 'lego'

## `brand` (type: `string`):

Filter to a specific brand. Case-sensitive, must match Takealot exactly (e.g. 'HP', 'Samsung', 'Apple', 'Lenovo')

## `price_min` (type: `integer`):

Minimum price in Rands, e.g. 1000

## `price_max` (type: `integer`):

Maximum price in Rands, e.g. 50000

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

How to sort the results

## `max_results` (type: `integer`):

Stop scraping after this many products. Use a smaller number to test, or up to several thousand for full datasets.

## Actor input object example

```json
{
  "search_query": "laptop",
  "sort": "relevance",
  "max_results": 50
}
```

# Actor output Schema

## `plid` (type: `string`):

Takealot Product ID (PLID)

## `title` (type: `string`):

Product title

## `subtitle` (type: `string`):

Product subtitle or description snippet

## `brand` (type: `string`):

Product brand

## `product_url` (type: `string`):

Direct link to the product page on Takealot

## `image_url` (type: `string`):

URL of the primary product image

## `current_price` (type: `string`):

Current selling price in ZAR (Rands)

## `listing_price` (type: `string`):

Original listing price in ZAR before any discount

## `saving_percent` (type: `string`):

Discount percentage if on sale

## `price_display` (type: `string`):

Pretty-formatted price string from Takealot

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

Average star rating out of 5

## `review_count` (type: `string`):

Total number of customer reviews

## `in_stock` (type: `string`):

Whether the product is currently in stock

## `stock_status` (type: `string`):

Human-readable stock status

## `is_imported` (type: `string`):

Whether the product is imported

## `warehouses` (type: `string`):

Distribution centres that stock the product

## `estimated_delivery` (type: `string`):

Estimated delivery timeframe

## `offer_id` (type: `string`):

Takealot offer ID for the active buybox offer

## `tsin` (type: `string`):

Takealot Stock Identification Number

## `is_preorder` (type: `string`):

Whether the product is available for preorder

## `badges` (type: `string`):

Product badges displayed on Takealot

## `image_count` (type: `string`):

Total number of images available for the product

# 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("ashersam01/takealot-product-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("ashersam01/takealot-product-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 ashersam01/takealot-product-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Takealot Product Scraper",
        "description": null,
        "version": "0.0",
        "x-build-id": "MOeDuS5lRsEr9OrF6"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/ashersam01~takealot-product-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-ashersam01-takealot-product-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/ashersam01~takealot-product-scraper/runs": {
            "post": {
                "operationId": "runs-sync-ashersam01-takealot-product-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/ashersam01~takealot-product-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-ashersam01-takealot-product-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",
                "required": [
                    "search_query"
                ],
                "properties": {
                    "search_query": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Search term to scrape, e.g. 'laptop', 'iphone', 'samsung tv', 'lego'",
                        "default": "laptop"
                    },
                    "brand": {
                        "title": "Brand filter (optional)",
                        "type": "string",
                        "description": "Filter to a specific brand. Case-sensitive, must match Takealot exactly (e.g. 'HP', 'Samsung', 'Apple', 'Lenovo')"
                    },
                    "price_min": {
                        "title": "Minimum price (ZAR, optional)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum price in Rands, e.g. 1000"
                    },
                    "price_max": {
                        "title": "Maximum price (ZAR, optional)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum price in Rands, e.g. 50000"
                    },
                    "sort": {
                        "title": "Sort order",
                        "enum": [
                            "relevance",
                            "price_low_to_high",
                            "price_high_to_low",
                            "best_sellers",
                            "newest",
                            "top_rated"
                        ],
                        "type": "string",
                        "description": "How to sort the results",
                        "default": "relevance"
                    },
                    "max_results": {
                        "title": "Maximum results",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Stop scraping after this many products. Use a smaller number to test, or up to several thousand for full datasets.",
                        "default": 50
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
