# 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:** 26 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/platform/actors/running/actors-in-store#rental-actors

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

## 🛒 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("💾 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 '{
  "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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=xtech/tokopedia-scraper-pro",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Tokopedia Scraper Pro",
        "description": "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.",
        "version": "1.0",
        "x-build-id": "xJk1Jmm9XsBHkSg0u"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/xtech~tokopedia-scraper-pro/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-xtech-tokopedia-scraper-pro",
                "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/xtech~tokopedia-scraper-pro/runs": {
            "post": {
                "operationId": "runs-sync-xtech-tokopedia-scraper-pro",
                "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/xtech~tokopedia-scraper-pro/run-sync": {
            "post": {
                "operationId": "run-sync-xtech-tokopedia-scraper-pro",
                "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_keyword"
                ],
                "properties": {
                    "search_keyword": {
                        "title": "Search Keyword",
                        "type": "string",
                        "description": "The keyword to search for products on Tokopedia",
                        "default": "laptop"
                    },
                    "max_results": {
                        "title": "Maximum Results",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of products to scrape",
                        "default": 50
                    },
                    "include_product_details": {
                        "title": "Include Product Details",
                        "type": "boolean",
                        "description": "Whether to fetch detailed product information (variants, pricing, stock, etc.)",
                        "default": true
                    },
                    "include_reviews": {
                        "title": "Include Reviews",
                        "type": "boolean",
                        "description": "Whether to fetch customer reviews for each product",
                        "default": true
                    },
                    "max_reviews_per_product": {
                        "title": "Max Reviews per Product",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum number of reviews to fetch per product",
                        "default": 10
                    },
                    "debug_mode": {
                        "title": "Debug Mode",
                        "type": "boolean",
                        "description": "Enable debug logging for troubleshooting",
                        "default": false
                    },
                    "filters": {
                        "title": "Search Filters",
                        "type": "object",
                        "description": "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}"
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
