# Tokopedia Product, Search & Shop Intelligence Scraper (`wyle/tokopedia-product-search-shop-scraper`) Actor

High-performance, HTTP-only scraper for Tokopedia (Indonesia). Extracts product search results, real-time pricing, discounts, sales volume (terjual), customer ratings, merchant profiles (followers, total sold, join date), and detailed specifications with zero browser overhead.

- **URL**: https://apify.com/wyle/tokopedia-product-search-shop-scraper.md
- **Developed by:** [Willy Lengkong](https://apify.com/wyle) (community)
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## Tokopedia Product, Search & Shop Intelligence Scraper

A high-performance, **HTTP-only** Apify Actor for scraping **Tokopedia (Indonesia)** — the leading e-commerce marketplace in Southeast Asia.

Extract comprehensive product listings, real-time pricing, historical sales counts (`terjual`), discount rates, merchant profiles (followers, lifetime items sold, transaction success, join dates), and category hierarchies with **zero headless browser overhead**.

***

### ⚡ Why Choose This Scraper?

- **Ultra-Fast & HTTP-Only**: Powered by native TLS-impersonated asynchronous HTTP requests (`curl_cffi`). Up to **10x faster** and **95% cheaper** than Playwright or Puppeteer browser scrapers.
- **Search & Market Intelligence**: Monitor top-selling products across all Indonesian market niches with smart sorting by Best Selling, Relevance, Rating, and Price.
- **Shop & Seller Intelligence**: Scrape entire merchant catalogs while capturing deep store metrics, including **Follower count**, **Lifetime sold items**, **Successful transactions**, and **Official Store badges**.
- **Accurate Sales Velocity**: Captures real sales volume (e.g. `500+ terjual`, `10rb+ terjual`), net pricing, original strike-through prices, and discount percentages.
- **Zero Login Required**: Collects public e-commerce data with no account credentials or session tokens needed.

***

### 📋 Input Configuration

| Parameter | Type | Required | Default | Description |
| :--- | :--- | :--- | :--- | :--- |
| `searchKeywords` | Array of Strings | Optional | `["laptop gaming"]` | List of search queries or product keywords (e.g. `laptop gaming`, `sepatu running`, `kopi arabika`). |
| `shopUrls` | Array of Strings | Optional | `[]` | List of seller URLs or store slugs (e.g. `https://www.tokopedia.com/asus-id` or `asus-id`). |
| `productUrls` | Array of Strings | Optional | `[]` | List of direct product URLs for detailed PDP extraction. |
| `sortBy` | String | Optional | `"best_selling"` | Sort mode: `best_selling`, `relevance`, `highest_rating`, `lowest_price`, `highest_price`, `newest`. |
| `maxItems` | Integer | Optional | `50` | Maximum number of products to extract across all queries. |
| `proxyConfiguration` | Object | Optional | `{ "useApifyProxy": false }` | Apify Proxy configuration (Residential proxy recommended for large-scale enterprise scraping). |

#### Example Input JSON

```json
{
  "searchKeywords": ["laptop gaming", "mechanical keyboard"],
  "sortBy": "best_selling",
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "ID"
  }
}
```

***

### 📦 Output Dataset Schema

Each product record pushed to the Apify dataset contains:

```json
{
  "id": "103997069312",
  "title": "Laptop Gaming Lenovo Legion 5 15ACH6H Ryzen 5 5600H RTX 3050 16GB/512GB",
  "price": 11501000,
  "priceFormatted": "Rp11.501.000",
  "originalPrice": 12500000,
  "originalPriceFormatted": "Rp12.500.000",
  "discountPercentage": 8,
  "currency": "IDR",
  "rating": 4.9,
  "countReview": 48,
  "soldCount": 634,
  "soldCountFormatted": "500+ terjual",
  "condition": "NEW",
  "weight": 8.0,
  "weightUnit": "KILOGRAM",
  "minOrder": 1,
  "url": "https://www.tokopedia.com/ian-gadget--computer/laptop-gaming-lenovo-legion-5...",
  "imageUrl": "https://p16-images-sign-sg.tokopedia-static.net/...",
  "shop": {
    "id": "7494146368320734691",
    "name": "Ian Gadget & Computer",
    "url": "https://www.tokopedia.com/ian-gadget--computer",
    "city": "Semarang",
    "tier": 1,
    "isOfficial": false,
    "isGold": false,
    "followers": 252,
    "totalSold": 48,
    "totalTxSuccess": 47,
    "openSince": "April 2022"
  },
  "category": {
    "id": "297",
    "name": "Komputer & Laptop",
    "breadcrumb": "komputer-laptop/pc-laptop-gaming/laptop-gaming"
  },
  "badges": [
    "Semarang",
    "Beli Lokal",
    "Bisa COD"
  ],
  "isOfficialStore": false,
  "scrapedAt": "2026-10-02T17:51:11.826514+00:00"
}
```

***

### 💡 Practical Use Cases

1. **Market Intelligence & Price Tracking**: Track pricing trends, discounts, and demand signals across the Indonesian e-commerce ecosystem.
2. **Merchant Sourcing & Benchmarking**: Analyze merchant performance, catalog sizes, sales volumes, and customer ratings for supplier discovery.
3. **Product Discovery & Dropshipping**: Identify emerging high-demand products and fast-moving consumer goods (FMCG).
4. **Brand MAP Compliance**: Audit pricing and listing authenticity across authorized distributors and third-party resellers.

***

### 💰 Recommended Pricing & Compute Settings

- **Memory Allocation**: `512 MB` (extremely lightweight, no Chromium or heavy browser overhead).
- **Recommended Monetization Model**:
  - **Pay Per Result**: `$0.001` - `$0.0015` per scraped product ($1.00 - $1.50 per 1,000 items).
  - **Pay Per Actor Start**: `$0.002` - `$0.005`.

# Actor input Schema

## `searchKeywords` (type: `array`):

List of search queries or keywords to scrape products for (e.g. 'laptop gaming', 'sepatu running', 'kopi arabika', 'iphone 15').

## `shopUrls` (type: `array`):

Optional list of Tokopedia store URLs or merchant slugs to extract catalogs and intelligence from (e.g. 'https://www.tokopedia.com/asus-id' or 'asus-id').

## `productUrls` (type: `array`):

Optional list of direct Tokopedia product URLs to scrape detailed specifications, reviews count, and metrics from.

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

Sort order for scraped products.

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

Maximum number of products to scrape across all queries.

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

Optional Apify Proxy configuration. Residential proxy recommended for high-volume enterprise scraping.

## Actor input object example

```json
{
  "searchKeywords": [
    "laptop gaming"
  ],
  "shopUrls": [],
  "productUrls": [],
  "sortBy": "best_selling",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "searchKeywords": [
        "laptop gaming"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("wyle/tokopedia-product-search-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 = { "searchKeywords": ["laptop gaming"] }

# Run the Actor and wait for it to finish
run = client.actor("wyle/tokopedia-product-search-shop-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 '{
  "searchKeywords": [
    "laptop gaming"
  ]
}' |
apify call wyle/tokopedia-product-search-shop-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wyle/tokopedia-product-search-shop-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/mjx86aSZ4mQGZc3FE/builds/Szb3bIyqN2jxYvZUr/openapi.json
