Tokopedia Scraper
Extract Indonesian product listings from Tokopedia by keyword or shop URL with IDR price, shop name, shipping city, star rating and units sold.
| product_id | name | price | currency | shop_name | shop_city | rating | sold_count |
|---|---|---|---|---|---|---|---|
| 11869486942 | NEIL BLACK (KULIT ASLI) Alpha x Kenzio Sepatu Pan... | 920000 | IDR | Alpha Man | Bandung | 5 | 1200 |
| 100276171891 | Leedoo Sepatu Hiking Hitam Pria Sepatu Cowok Outd... | 152640 | IDR | Leedoo | Tangerang | 5 | 100 |
| 103325017203 | SPOTEC Running Twizzy Sepatu Olahraga Lari Pria W... | 321404 | IDR | Spotec | Kab. Tangerang | 5 | 70 |
Output fields (16)
Every field is present on every row. Missing values are always null.
What you can do with it
Search Indonesian product listings on Tokopedia by keyword, search URL or shop URL.
Extract IDR selling prices, merchant shop name, shipping city, rating and sold count.
Sort results by relevance, newest or price and filter by minimum or maximum IDR price.
Inputs
| Field | Type | Default | Description |
|---|---|---|---|
| query required | string | optional | What to look up. A product keyword such as "sepatu lari pria" (opens the public tokopedia.com/find/<keyword> page), a /find/<keyword> URL, a /search?q= URL (read through the matching /find page, since robots.txt disallows /search), or a shop URL such as https://www.tokopedia.com/osfrans for that shop's products. Single product URLs are skipped. |
| sort | string | relevance | Order of keyword search results. Shop URLs keep the shop's own order. |
| minPrice | integer | optional | Keep products priced at or above this amount in Indonesian rupiah, for example 100000. Leave empty for no lower limit. |
| maxPrice | integer | optional | Keep products priced at or below this amount in Indonesian rupiah, for example 500000. Leave empty for no upper limit. |
| maxResults | integer | 20 | Most product rows to return. Default 20 (a cheap test). Keyword pages hold 60 products and shop pages 80, so larger runs read more pages. Error and duplicate rows are free. |
| proxyConfiguration | object | {"useApifyProxy":true} | Proxy for requests. Default: Apify datacenter proxy (automatic group). Leave at the default unless you have a specific reason. |
{ "query": "sepatu lari pria", "maxResults": 20 }Cheapest products between Rp100.000 and Rp500.000
{ "query": "sepatu lari pria", "sort": "price_low", "minPrice": 100000, "maxPrice": 500000, "maxResults": 50 }All products of one shop
{ "query": "https://www.tokopedia.com/osfrans", "maxResults": 100 }
API and MCP
https://mcp.apify.com?tools=crawldart/tokopedia-scraperExample agent prompt
Find 20 men's running shoes on Tokopedia under Rp500.000 and list price, shop city and sold count.curl (run and return rows in one call)
curl -X POST "https://api.apify.com/v2/acts/crawldart~tokopedia-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN&maxTotalChargeUsd=0.10" \
-H "Content-Type: application/json" \
-d '{"query": "sepatu lari pria", "sort": "price_low", "maxResults": 20}'
Python (apify-client)
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("crawldart/tokopedia-scraper").call(
run_input={"query": "sepatu lari pria", "maxPrice": 500000, "maxResults": 20},
max_total_charge_usd=0.10,
)
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
if row["error_code"] is None:
print(row["name"], row["price"], row["shop_city"], row["sold_count"])
FAQ
The actor reads public product listings that anyone can see without logging in, and returns no personal data. You are responsible for using the data lawfully, including Indonesia's PDP Law and GDPR where they apply. See Apify's notes on web scraping and GDPR. This is not legal advice.
You need a free Apify account to run it. You do not need a Tokopedia account.
Pay per result, price shown on Apify. Empty searches, duplicate rows, error rows and the run summary are free.
The keyword matched no products, or your price filter removed every product. The status message and OUTPUT.queries say which. Try a broader Indonesian keyword such as sepatu.
Yes. Save your input as a Task and add a Schedule in Apify Console, for example daily, to track prices over time.