# 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
- **Features:** Full permissions
- **Stats:** 27 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.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.

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 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

In pay-per-event runs, only saved product rows use the automatic result billing event. Empty-search diagnostics go to the separate **Diagnostics** dataset and incur no result charge. The Actor stops searching or enriching further products when the result spending limit is reached; `RUN_SUMMARY` records saved products and `stoppedAtSpendingLimit`. Rental runs retain their existing results format. Check the Store Pricing tab for the active billing model and rates.

### 🎯 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.

## `diagnostics` (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 = {
    "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/nHW7d9SFfoeNLebK2/openapi.json
