# Takealot South Africa Price & Stock Tracker (`vexaloom-labs/takealot-south-africa-price-and-stock-tracker`) Actor

Pull Takealot.com product prices in ZAR, discounts, ratings, stock status and daily deals by keyword search, category, or product ID - South Africa's largest online retailer.

- **URL**: https://apify.com/vexaloom-labs/takealot-south-africa-price-and-stock-tracker.md
- **Developed by:** [vexaloom-labs](https://apify.com/vexaloom-labs) (community)
- **Categories:** E-commerce, Automation, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 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/actors/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

## Takealot South Africa Price & Stock Tracker

Takealot.com is South Africa's largest online marketplace, and its catalog changes prices and stock status constantly. This actor queries Takealot's own product API to pull keyword search results, category listings, today's daily deals, or full details for specific product IDs — with live price, discount, rating, and stock data.

### What this actor does

- **Keyword search** — search Takealot's catalog the same way the site's search box does, with sort and price filters
- **Category browsing** — list every product under a given category path
- **Daily deals** — pull the current set of discounted/promotional products
- **Product details** — fetch specific products directly by their numeric Takealot ID
- Fields Takealot doesn't publish for a product (e.g. no discount, no rating yet) are left out of the record instead of being sent as empty values

### Output per product

- `productId` — Takealot's internal product ID
- `title` — product name
- `brand` — brand name, when listed
- `slug` — the URL slug used to build `productUrl`
- `price` — current price in South African Rand (ZAR)
- `originalPrice` — price before discount, when the item is on sale
- `discountPercent` — discount percentage, when on sale
- `rating` — average customer rating (0–5)
- `reviewCount` — number of customer reviews
- `availability` — raw stock status text (e.g. "In stock")
- `inStock` — boolean stock flag
- `imageUrl` — main product image URL
- `productUrl` — direct link to the product page
- `freeDelivery` — `true` when the listing has no extra delivery charge
- `tsin` — Takealot Stock Item Number
- `isDailyDeal` — `true`, present only on records returned by `dailyDeals` mode
- `scrapedAt` — ISO timestamp of when the record was scraped

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search` / `productDetails` / `categoryBrowse` / `dailyDeals` |
| `keyword` | string | – | Search keyword (mode=`search`) |
| `productIds` | array | `[]` | Numeric Takealot product IDs (mode=`productDetails`) |
| `categorySlug` | string | – | Category path from the Takealot URL, e.g. `electronics/phones` (mode=`categoryBrowse`) |
| `sortBy` | string | `relevance` | `relevance` / `price_asc` / `price_desc` / `rating_desc` / `new_arrivals` |
| `minPrice` | integer | – | Minimum price filter in ZAR |
| `maxPrice` | integer | – | Maximum price filter in ZAR |
| `inStockOnly` | boolean | `false` | Only return products currently in stock |
| `maxItems` | integer | `20` | Maximum number of products to return (1–500) |

#### Example: search with a price ceiling, cheapest first

```json
{
  "mode": "search",
  "keyword": "laptop",
  "maxPrice": 15000,
  "sortBy": "price_asc",
  "maxItems": 50
}
```

#### Example: today's daily deals

```json
{
  "mode": "dailyDeals",
  "maxItems": 30
}
```

#### Example: browse a category sorted by rating

```json
{
  "mode": "categoryBrowse",
  "categorySlug": "electronics",
  "sortBy": "rating_desc",
  "maxItems": 50
}
```

#### Example: fetch specific products by ID

```json
{
  "mode": "productDetails",
  "productIds": ["72830789", "68512233"]
}
```

### Use cases

- **Price monitoring** — track price and discount changes on specific products over time
- **Deal alerting** — pull `dailyDeals` on a schedule to catch new promotions as they go live
- **Category intelligence** — export every product in a category to compare brand mix and pricing
- **Stock checking** — poll a list of `productIds` to know the moment an out-of-stock item is back
- **Assortment research** — compare rating and review counts across competing products in a search

### FAQ

**Is this affiliated with Takealot?**
No. This actor reads data from Takealot's own public product API, the same one the takealot.com website calls; it is not affiliated with, endorsed by, or sponsored by Takealot.

**What currency are prices in?**
South African Rand (ZAR), as shown on the site.

**Why is `originalPrice` missing on some products?**
`originalPrice` only appears when the product currently has an active discount. Full-price products just have `price` with no `originalPrice`.

**How do I find a product's numeric ID for `productDetails` mode?**
It's the number after `PLID` in any Takealot product URL, e.g. `takealot.com/some-product/PLID72830789` → `72830789`.

**What counts as a "daily deal"?**
Whatever Takealot's own daily-deals section currently lists as discounted/promotional — the same set a shopper would see visiting that section of the site.

**Why did `inStockOnly` return fewer results than `maxItems`?**
`inStockOnly` filters out-of-stock products after fetching, so a run can return fewer than `maxItems` records if many matching products are currently unavailable.

**Can I combine a category with a keyword?**
No — `categorySlug` (mode=`categoryBrowse`) and `keyword` (mode=`search`) are separate modes. Run the actor twice if you need both a category scope and a keyword match.

**Why do some products have no `rating` or `reviewCount`?**
Newly listed or rarely reviewed products simply don't have a published rating yet; the fields are omitted rather than shown as zero.

# Actor input Schema

## `mode` (type: `string`):

What to scrape from Takealot.

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

Keyword to search for (mode=search).

## `productIds` (type: `array`):

Takealot product IDs (numeric, e.g. 72830789).

## `categorySlug` (type: `string`):

Category path from the Takealot URL, e.g. 'electronics/phones' or 'computers-and-tablets'.

## `sortBy` (type: `string`):

How to sort search results.

## `minPrice` (type: `integer`):

Filter products with price above this value (in South African Rand).

## `maxPrice` (type: `integer`):

Filter products with price below this value (in South African Rand).

## `inStockOnly` (type: `boolean`):

Only include products currently in stock.

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

Maximum number of products to return.

## Actor input object example

```json
{
  "mode": "search",
  "keyword": "samsung",
  "productIds": [],
  "sortBy": "relevance",
  "inStockOnly": false,
  "maxItems": 20
}
```

# Actor output Schema

## `products` (type: `string`):

Dataset containing all scraped Takealot products.

# 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 = {
    "mode": "search",
    "keyword": "samsung",
    "productIds": [],
    "sortBy": "relevance",
    "inStockOnly": false,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("vexaloom-labs/takealot-south-africa-price-and-stock-tracker").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 = {
    "mode": "search",
    "keyword": "samsung",
    "productIds": [],
    "sortBy": "relevance",
    "inStockOnly": False,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("vexaloom-labs/takealot-south-africa-price-and-stock-tracker").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 '{
  "mode": "search",
  "keyword": "samsung",
  "productIds": [],
  "sortBy": "relevance",
  "inStockOnly": false,
  "maxItems": 20
}' |
apify call vexaloom-labs/takealot-south-africa-price-and-stock-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vexaloom-labs/takealot-south-africa-price-and-stock-tracker"
        }
    }
}
```

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/3CdkHnZJc5lxlqKVV/builds/RbLzPcatbq5HiihKy/openapi.json
