# Tokopedia Scraper Pro (`xtech/tokopedia-scraper-pro`) Actor

Extract comprehensive Tokopedia product data with advanced filtering. Get pricing, reviews, ratings, shop info & specifications from Indonesia's largest marketplace. Perfect for market research, competitor analysis & e-commerce intelligence.

- **URL**: https://apify.com/xtech/tokopedia-scraper-pro.md
- **Developed by:** [Xtech](https://apify.com/xtech) (community)
- **Categories:** E-commerce, Developer tools, Automation
- **Stats:** 27 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$25.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## 🛒 Tokopedia Product Scraper Pro

**Get comprehensive product data from Tokopedia marketplace instantly. Perfect for market research, competitor analysis, and e-commerce intelligence.**

Extract pricing, reviews, ratings, shop information, and specifications from Indonesia's largest online marketplace.

### ✨ What You Get

- **🎯 Smart Product Search** - Find products by keyword with advanced filters
- **📊 Complete Product Data** - Prices, ratings, reviews, shop info, and specifications
- **⚡ Fast Results** - Get hundreds of products in minutes
- **🔍 Customer Reviews** - Real customer feedback with ratings
- **📈 Export Ready** - Clean data in JSON/CSV format
- **🛡️ Reliable Results** - Consistent, accurate data every time

### 🚀 Perfect For

- **E-commerce Businesses** - Track competitor prices and strategies
- **Market Researchers** - Analyze trends and customer sentiment
- **Price Comparison Sites** - Build product databases
- **Digital Agencies** - Provide market intelligence
- **Data Analysts** - Research consumer behavior

### 📋 What You Input

#### Search Settings

- **Keywords** - What products to find (e.g., "smartphone samsung", "laptop gaming")
- **Quantity** - How many products (1-1000)
- **Include Reviews** - Get customer feedback
- **Include Details** - Get full specifications

#### Filters (Optional)

- **Price Range** - Min/max price in Indonesian Rupiah
- **Product Condition** - New or used items
- **Shop Type** - Official stores, malls, power shops
- **Ratings** - Minimum rating (1-5 stars)
- **Shipping** - Free shipping, cash on delivery
- **Promotions** - Discounted products only

### 📊 What You Get Back

Each product includes:

- **Product Info**: Name, category, pricing, availability
- **Shop Details**: Store name, location, reputation
- **Images**: High-quality product photos
- **Specifications**: Complete product details and variants
- **Customer Reviews**: Ratings, feedback, purchase history
- **Market Data**: Sales count, pricing information

### 🎯 Example Results

#### Input Example

```json
{
  "search_keyword": "wireless earbuds",
  "max_results": 50,
  "filters": {
    "min_price": 100000,
    "max_price": 500000,
    "min_rating": 4.0
  }
}
```

#### Output Example

```json
{
  "name": "Samsung Galaxy Buds2 Pro",
  "real_price_text": "Rp2.799.000",
  "original_price": "Rp3.499.000",
  "rating": 4.8,
  "sold_count": 1247,
  "shop": {
    "name": "Samsung Official Store",
    "city": "Jakarta Pusat"
  },
  "category": "Audio",
  "product_reviews": [
    {
      "rating": 5,
      "review_text": "Excellent sound quality and battery life"
    }
  ]
}
```

# Actor input Schema

## `search_keyword` (type: `string`):

The keyword to search for products on Tokopedia

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

Maximum number of products to scrape

## `include_product_details` (type: `boolean`):

Whether to fetch detailed product information (variants, pricing, stock, etc.)

## `include_reviews` (type: `boolean`):

Whether to fetch customer reviews for each product

## `max_reviews_per_product` (type: `integer`):

Maximum number of reviews to fetch per product

## `debug_mode` (type: `boolean`):

Enable debug logging for troubleshooting

## `filters` (type: `object`):

Optional filters to narrow down search results. Example: {"min\_price": 100000, "max\_price": 1000000, "condition": 1, "min\_rating": 4.0, "bebas\_ongkir\_extra": true, "is\_discount": true}

## Actor input object example

```json
{
  "search_keyword": "logitech mouse",
  "max_results": 50,
  "include_product_details": true,
  "include_reviews": true,
  "max_reviews_per_product": 10,
  "debug_mode": false,
  "filters": {
    "min_price": 100000,
    "max_price": 1000000,
    "condition": 1,
    "min_rating": 4,
    "bebas_ongkir_extra": true
  }
}
```

# Actor output Schema

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

Items stored in the default dataset.

# 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 = {
    "filters": {
        "min_price": 100000,
        "max_price": 1000000,
        "condition": 1,
        "min_rating": 4,
        "bebas_ongkir_extra": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtech/tokopedia-scraper-pro").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 = { "filters": {
        "min_price": 100000,
        "max_price": 1000000,
        "condition": 1,
        "min_rating": 4,
        "bebas_ongkir_extra": True,
    } }

# Run the Actor and wait for it to finish
run = client.actor("xtech/tokopedia-scraper-pro").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 '{
  "filters": {
    "min_price": 100000,
    "max_price": 1000000,
    "condition": 1,
    "min_rating": 4,
    "bebas_ongkir_extra": true
  }
}' |
apify call xtech/tokopedia-scraper-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xtech/tokopedia-scraper-pro"
        }
    }
}

```

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/wO7cBaoGUjo96U9SP/builds/xJk1Jmm9XsBHkSg0u/openapi.json
