Skip to main content
AI Studio  add-on for Spider.
International
tokopedia.com Verified

Tokopedia Scraper

Extract product listings, shop ratings, pricing in IDR, and promotional deals from Tokopedia Indonesia. Built on spider-browser .

Get started Docs
target
tokopedia.com
success rate
99.9%
latency
~4ms
POST /fetch/tokopedia.com/
return_format
curl -X POST https://api.spider.cloud/fetch/tokopedia.com/ \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"return_format": "json"}'
200 OK · cache hit · response shape
{
  "url": "https://tokopedia.com/",
  "status": 200,
  "data": {
    "product_name": "string",
    "price": "string",
    "shop_name": "string",
    "rating": "string",
    "sold_count": "string",
    "location": "string",
    "badge": "string",
    "image_url": "string"
  }
}
Quick start

Extract data in minutes.

Structured JSON from tokopedia.com with a single POST. AI-resolved selectors, cached on the first call.

tokopedia-scraper.ts
import { SpiderBrowser } from "spider-browser";

const spider = new SpiderBrowser({
  apiKey: process.env.SPIDER_API_KEY!,
  stealth: 2,
  captcha: "solve",
});

await spider.connect();
const page = spider.page!;
await page.goto("https://www.tokopedia.com/search?q=smartphone");
await page.content(12000);

const data = await page.evaluate(`(() => {
  const items = [];
  document.querySelectorAll("[data-testid='divProductWrapper']").forEach(el => {
    const name = el.querySelector("[data-testid='spnSRPProdName']")?.textContent?.trim();
    const price = el.querySelector("[data-testid='spnSRPProdPrice']")?.textContent?.trim();
    const shop = el.querySelector("[data-testid='spnSRPProdShop']")?.textContent?.trim();
    const rating = el.querySelector("[data-testid='spnSRPProdRating']")?.textContent?.trim();
    if (name) items.push({ name, price, shop, rating });
  });
  return JSON.stringify({ total: items.length, items: items.slice(0, 10) });
})()`);

console.log(JSON.parse(data));
await spider.close();
ready to run · spider-browser · TypeScript
Extraction

Fields you can pull.

Product namePriceShop nameRatingSold countLocationBadgeImage URL
Geo-Proxy

Regional access

Access geo-restricted content on tokopedia.com via local proxies.

Rendering

Multi-language SPA

Handle internationalized React/Vue storefronts with dynamic content.

Scale

Global coverage

Scrape marketplace listings across multiple countries and currencies.

Related

More International scrapers.

Start

Start scraping tokopedia.com.

Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.