# Tokopedia Scraper (`automly/tokopedia-scraper`) Actor

Scrape Tokopedia products by search or link: price and discount, rating, sold count, shop and city, category, plus description, specifications, stock and photos, and product reviews. No login.

- **URL**: https://apify.com/automly/tokopedia-scraper.md
- **Developed by:** [Automly](https://apify.com/automly) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Scraper - Products, Prices, Sold Counts & Reviews

### What is Tokopedia Scraper?

**Tokopedia Scraper** is a tool that lets you **scrape Tokopedia products by search or product link**: name, link, **price** with the price before discount and the discount, rating, **sold count**, the **shop** with its city and tier, category, labels and photo, and on request each product's **details** (description, specifications, exact sold and review counts, stock, condition, weight, category path, all photos) and its **reviews** (rating, text, variant, date, photos, helpful votes and the shop's reply). Type a search, click **Start**, and download the results as Excel, CSV or JSON.

- 🔎 **Search:** any word, in Tokopedia's own order or by price, rating or newest
- 🛍️ **Products:** price, discount, rating, sold count and shop
- 📋 **Details:** description, specifications, stock and photos
- ⭐ **Reviews:** rating, text, variant and the shop's reply
- 🔓 **No login:** no Tokopedia account needed

### What can Tokopedia Scraper do?

- **Track prices and discounts** for your products and your competitors'
- **Find best sellers** in a category by sold count and rating
- **Find shops** selling a product, with their city and tier
- **Read what buyers say:** reviews by newest, most helpful or highest rating
- **Build product catalogues** with descriptions, specifications and photos
- Export to Excel, CSV, JSON, HTML or XML, or send the data to Google Sheets, Make, Zapier and more

### What data can you extract from Tokopedia?

| | | |
|---|---|---|
| 🏷️ Name and link | 💲 Price, original price, discount | ⭐ Rating |
| 📦 Sold count | 🏪 Shop, city and tier | 🗂️ Category and path |
| 📝 Description (details) | 📐 Specifications (details) | 🖼️ Photos |
| 📊 Stock, condition, weight (details) | 🗨️ Reviews | 💬 Shop replies |

### How to scrape Tokopedia

1. [Create a free Apify account](https://console.apify.com/sign-up) (no credit card needed).
2. Open **Tokopedia Scraper**.
3. Type a search (e.g. tas wanita) or paste product links.
4. Turn on **Include product details** and **Include reviews** if you want them.
5. Click **Start**, then download the results as Excel, CSV, JSON, HTML or XML.

### How much does it cost to scrape Tokopedia?

You pay per product and per review saved, plus $0.0005 when a run starts:

| Apify plan | Products per 1,000 | Products with details per 1,000 | Reviews per 1,000 |
|---|---|---|---|
| Free | $1.20 | $1.40 | $0.45 |
| Starter (Bronze) | $1.10 | $1.30 | $0.40 |
| Scale (Silver) | $1.00 | $1.15 | $0.35 |
| Business (Gold) and higher | $0.90 | $1.00 | $0.30 |

Platform usage is included in these prices, so you pay nothing else for the run.

Example: 1,000 products with details cost $1.40 on the Free plan and $1.00 on Business.

Every Apify account gets **$5 of free usage each month**, enough for about 4,000 products.

### ⬇️ Input

| Setting | What it does |
|---|---|
| Search terms | Words to search Tokopedia for |
| Product links | Product pages, saved with full details |
| Max products per search | How many products to save for each search (up to 6,000) |
| Order | Most relevant, reviews, newest, or by price |
| Include product details | Opens each product's page for description, specifications, stock and more |
| Include reviews | Also saves each product's reviews as their own rows |
| Max reviews per product | How many reviews to save for each product |
| Review order | Most helpful, newest first or highest rating |

Example: 200 women's bags with details and their 10 newest reviews:

```json
{
  "searchQueries": ["tas wanita"],
  "maxItems": 200,
  "includeDetails": true,
  "includeReviews": true,
  "maxReviewsPerProduct": 10,
  "reviewsSort": "newest"
}
```

### ⬆️ Output

Each product is one row (here with details):

```json
{
  "type": "product-details",
  "id": "11690069936",
  "parentId": "1793351076",
  "url": "https://www.tokopedia.com/osfrans/lemari-rak-sepatu-serbaguna-kayu-susun-6-lunar-huga-4210-harga-pabrik-rss-05-cargo-6ff24",
  "name": "LEMARI RAK SEPATU SERBAGUNA KAYU SUSUN 6 LUNAR HUGA 4210 HARGA PABRIK - HUGA 4210, INSTANS - RSS 05, CARGO",
  "price": 199900,
  "priceText": "Rp199.900",
  "originalPrice": null,
  "discountPercent": null,
  "currency": "IDR",
  "rating": 4.7,
  "reviewsCount": 50,
  "soldCount": 91,
  "soldText": "90+",
  "shopId": "1318431",
  "shopName": "Osfrans Home Living",
  "shopCity": "Kab. Tangerang",
  "shopUrl": "https://www.tokopedia.com/osfrans",
  "shopTier": 3,
  "category": "Tempat Sepatu & Sandal",
  "categoryPath": ["Rumah Tangga", "Tempat Penyimpanan", "Tempat Sepatu & Sandal"],
  "labels": ["Beli Lokal", "Hemat s.d 8% Pakai Bonus"],
  "imageUrl": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/img/VqbcmM/2023/7/22/5693cdc8-a2a0-4bd4-b824-0f0bd193eb16.jpg~tplv-aphluv4xwc-white-pad-v1:300:300.jpeg",
  "isAd": false,
  "description": "Rapikan ruangan anda lebih dengan Lemari Rak Sepatu HUGA 4210 ini…",
  "specifications": [{"name": "Kondisi", "value": "Baru"}],
  "photos": ["https://p19-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/img/VqbcmM/2023/7/22/5693cdc8-a2a0-4bd4-b824-0f0bd193eb16.jpg~tplv-aphluv4xwc-white-pad-v1:1600:1600.jpeg"],
  "stock": null,
  "stockText": null,
  "condition": "NEW",
  "weight": 24,
  "weightUnit": "KILOGRAM",
  "minOrder": 1,
  "listedAt": "2024-09-07T11:26:27+07:00",
  "detailsIncluded": true,
  "rank": 1,
  "source": "search: rak sepatu",
  "scrapedAt": "2026-11-16T12:00:00Z"
}
```

With **Include reviews**, each review is a row too:

```json
{
  "type": "review",
  "reviewId": "480481358",
  "productId": "11690069936",
  "productName": "LEMARI RAK SEPATU SERBAGUNA KAYU SUSUN 6 LUNAR HUGA 4210 HARGA PABRIK - HUGA 4210, INSTANS - RSS 05, CARGO",
  "productUrl": "https://www.tokopedia.com/osfrans/lemari-rak-sepatu-serbaguna-kayu-susun-6-lunar-huga-4210-harga-pabrik-rss-05-cargo-6ff24",
  "rating": 4,
  "text": "koordinasi pedagang bagus.\nsayang ada gompel di pojok…",
  "variant": null,
  "date": "2021-09-18T19:01:27Z",
  "authorName": "Desmar",
  "photos": ["https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/img/bjFkPX/2021/9/18/cbdea181.jpg"],
  "likes": 0,
  "replyText": null,
  "replyDate": null,
  "source": "https://www.tokopedia.com/osfrans/lemari-rak-sepatu-serbaguna-kayu-susun-6-lunar-huga-4210-harga-pabrik-rss-05-cargo-6ff24",
  "scrapedAt": "2026-11-16T12:00:00Z"
}
```

Without details, the page-only fields (`description`, `specifications`, `photos`, `stock`, `soldCount`, `reviewsCount` and more) are empty and `type` is `product`. The **Products** and **Reviews** tabs show the main fields as tables. Each run also saves a short report that lists any search with no product and any link that does not exist.

### How can I use Tokopedia data?

- **Price monitoring:** follow prices and discounts across shops every day
- **Market research:** see what sells best in a category, by sold count and rating
- **Seller research:** find shops by city and tier for sourcing or partnerships
- **Review analysis:** learn what buyers like and dislike about a product

### Integrations and API

Run the scraper from your own code with the [Apify API](https://docs.apify.com/api/v2), or connect it to Make, Zapier, n8n, Google Sheets, Airtable, Slack and webhooks from the **Integrations** tab. Schedule it to track prices every day. AI agents can run it through the Apify MCP server at [mcp.apify.com](https://mcp.apify.com).

### ❓FAQ

#### How much does it cost to scrape Tokopedia?

$1.20 per 1,000 products on the Free plan down to $0.90 on Business ($1.40 down to $1.00 with details), and $0.45 down to $0.30 per 1,000 reviews, plus $0.0005 per run.

#### How many products can I get per search?

Up to 6,000, the most Tokopedia lists for one search.

#### Are phone numbers in descriptions included?

No. Phone numbers and emails typed into descriptions and reviews are masked.

#### What happens with a product link that does not exist?

It is listed in the run report as not found, and the run still succeeds with everything else. You are not charged for it.

#### Is it legal to scrape Tokopedia?

The scraper collects public product listings and reviews that anyone can see without an account. You are responsible for how you use the data, including privacy rules where you work. Tokopedia Scraper is not affiliated with or endorsed by Tokopedia.

#### Something isn't working?

Open the **Issues** tab and tell us what you ran (the input) and what you expected. We usually answer within a day.

### ⭐ Your feedback

Have an idea or found a problem? Tell us in the **Issues** tab. If Tokopedia Scraper saved you time, a short review on the **Reviews** tab helps other people find it.

# Actor input Schema

## `searchQueries` (type: `array`):

Words to search Tokopedia for, e.g. tas wanita, sepatu running or iphone 15.

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

Tokopedia product pages, e.g. https://www.tokopedia.com/osfrans/lemari-rak-sepatu-serbaguna-kayu-susun-6-lunar-huga-4210-harga-pabrik-rss-05-cargo-6ff24. They are saved with full details.

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

How many products to save for each search, e.g. 500 (Tokopedia shows up to 6,000).

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

The order search results are listed in.

## `includeDetails` (type: `boolean`):

Also open each product's page for its description, specifications, exact sold and review counts, stock, condition, weight, category path and photos. Priced as a product with details.

## `includeReviews` (type: `boolean`):

Also save each product's reviews (rating, text, variant, date, photos, likes, the shop's reply) as their own rows. Priced per review.

## `maxReviewsPerProduct` (type: `integer`):

How many reviews to save for each product, e.g. 100.

## `reviewsSort` (type: `string`):

The order reviews are read in.

## Actor input object example

```json
{
  "searchQueries": [
    "tas wanita"
  ],
  "maxItems": 30,
  "sortBy": "relevance",
  "includeDetails": false,
  "includeReviews": false,
  "maxReviewsPerProduct": 20,
  "reviewsSort": "relevance"
}
```

# Actor output Schema

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

No description

## `reviews` (type: `string`):

No description

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

No description

## `report` (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 = {
    "searchQueries": [
        "tas wanita"
    ],
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/tokopedia-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 = {
    "searchQueries": ["tas wanita"],
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("automly/tokopedia-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 '{
  "searchQueries": [
    "tas wanita"
  ],
  "maxItems": 30
}' |
apify call automly/tokopedia-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automly/tokopedia-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/6qzqVVXC1b1RD7WFf/builds/iHGqXlhtXrCUqJvR4/openapi.json
