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.

tokopedia.com Indonesia No login Pay per result, price shown on Apify
Sample output
{ "query": "sepatu", "maxResults": 3 } 3 rows
product_idnamepricecurrencyshop_nameshop_cityratingsold_count
11869486942NEIL BLACK (KULIT ASLI) Alpha x Kenzio Sepatu Pan...920000IDRAlpha ManBandung51200
100276171891Leedoo Sepatu Hiking Hitam Pria Sepatu Cowok Outd...152640IDRLeedooTangerang5100
103325017203SPOTEC Running Twizzy Sepatu Olahraga Lari Pria W...321404IDRSpotecKab. Tangerang570

Output fields (16)

Every field is present on every row. Missing values are always null.

id source source_url scraped_at input_query product_id name price currency shop_name shop_city rating sold_count product_url error_code error

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.

Inputs6 parameters
FieldTypeDefaultDescription
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.
Products for a keyword (the default run)
{ "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 MCPMCP, curl, Python
MCP server URL
https://mcp.apify.com?tools=crawldart/tokopedia-scraper
Example 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"])
FAQ5 questions
Is it legal?

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.

Do I need an account?

You need a free Apify account to run it. You do not need a Tokopedia account.

How much does it cost?

Pay per result, price shown on Apify. Empty searches, duplicate rows, error rows and the run summary are free.

Why did I get 0 results?

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.

Can I schedule it?

Yes. Save your input as a Task and add a Schedule in Apify Console, for example daily, to track prices over time.