# Tokopedia Scraper

Scrape product name, price, rating, sold number, and the URL of the product details page from Tokopedia by listing page URL.

- Template page: [https://www.octoparse.com/template/tokopedia-scraper](https://www.octoparse.com/template/tokopedia-scraper)
- Categories: E-Commerce
- Status: `PUBLISHED`
- Run mode: `LOCAL`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from listing pages.

## Output

The current workflow extracts 6 fields, including `Product_Name`, `Seller_Name`, `Detail_Page_URL`, `Price`, `Rating`, `Sold`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete Listing page URLs (up to 100) and start the template in local mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Listing page URLs (up to 100)

Required. https://www.tokopedia.com/search?st=&q=IPhone&srp_component_id=02.01.00.00&srp_page_id=&srp_page_title=&navsource= https://www.tokopedia.com/search?st=&q=Huawei&srp_component_id=02.01.00.00&srp_page_id=&srp_page_title=&navsource= https://www.tokopedia.com/search?st=&q=Xiaomi&srp_component_id=02.01.00.00&srp_page_id=&srp_page_title=&navsource= Constraints: minItems=1; maxItems=100; items.minLength=1; items.maxLength=100.

## How to Use

# Tokopedia Search & Listing Page Scraper

Collects product names, sellers, product URLs, prices, ratings, and sold counts from supplied Tokopedia search or listing page URLs. Tokopedia is an Indonesian online marketplace.

## Pricing

**Free of charge** – no per‑line usage fee. Octoparse plan or resource limits may still apply.

## Output

Returns the following fields:

- `Product_Name`
- `Seller_Name`
- `Detail_Page_URL`
- `Price`
- `Rating`
- `Sold`

Example JSON:

```json
{
"Product_Name": "DEFCON Casing iPhone Magsafe 16 15 14 13 12 11 Pro Max Plus Umbral Series Black Matte Frosted Soft Hard Case Shockproof DMC02",
"Seller_Name": "AERO Gadget",
"Detail_Page_URL": "https://www.tokopedia.com/aerogadget/defcon-casing-iphone-magsafe-16-15-14-13-12-11-pro-max-plus-umbral-series-black-matte-frosted-soft-hard-case-shockproof-dmc02-ip14-plus-b94e0?extParam=ivf%3Dfalse%26keyword%3Diphone+case%26search_id%3D20250108062800E5B57C24B5F4BD2D9Z2E%26src%3Dsearch",
"Price": "Rp70.000",
"Rating": "4.9",
"Sold": "5rb+"
}
```

## Input

- **Listing page URLs** (Required) – up to 100 entries per run.

## How to Use

1. Open **Tokopedia Scraper** and click **Try it!**.
2. Enter up to 100 **Listing page URLs** using the supported format.
3. Run the task locally in Octoparse.
4. Review the output fields (e.g., `Product_Name`, `Detail_Page_URL`, `Price`) and export in your preferred format.

## Tips

- Test one representative value in **Listing page URLs** before submitting a large batch.
- Keep `Detail_Page_URL` in the export so every row can be traced back to its source.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Bic Camera Search Results Scraper](https://www.octoparse.com/template/bic-camera-search-results-scraper)
- [Google Search Scraper](https://www.octoparse.com/template/google-search-scraper)
- [Google Maps Listings Scraper (by Keywords)](https://www.octoparse.com/template/google-maps-scraper-listing-page-by-keyword)
- [Google Maps Email Scraper & Extractor](https://www.octoparse.com/template/google-maps-contact-scraper)
- [Google Maps Leads Scraper](https://www.octoparse.com/template/google-maps-scraper-store-details-by-keyword)

## Input Schema

```json
{
  "title": "Tokopedia Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "listing_page_URLs": {
      "title": "Listing page URLs (up to 100)",
      "description": "https://www.tokopedia.com/search?st=&q=IPhone&srp_component_id=02.01.00.00&srp_page_id=&srp_page_title=&navsource=\nhttps://www.tokopedia.com/search?st=&q=Huawei&srp_component_id=02.01.00.00&srp_page_id=&srp_page_title=&navsource=\nhttps://www.tokopedia.com/search?st=&q=Xiaomi&srp_component_id=02.01.00.00&srp_page_id=&srp_page_title=&navsource=",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      },
      "minItems": 1,
      "maxItems": 100,
      "x-octoparse": {
        "apiEnabled": false
      }
    }
  },
  "required": [
    "listing_page_URLs"
  ]
}
```

## Input JSON Example

No verified real input/output examples are currently available.


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Product_Name": {
      "type": "string",
      "description": ""
    },
    "Seller_Name": {
      "type": "string",
      "description": ""
    },
    "Detail_Page_URL": {
      "type": "string",
      "description": ""
    },
    "Price": {
      "type": "string",
      "description": ""
    },
    "Rating": {
      "type": "string",
      "description": ""
    },
    "Sold": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Tokopedia Scraper output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

No verified real input/output examples are currently available.

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

No verified real input/output examples are currently available.

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `tokopedia-scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/tokopedia-scraper.json)
- [Manifest](https://www.octoparse.com/templates/tokopedia-scraper-manifest.json)
