# Tokopedia Product Details Scraper (`ecomscrape/tokopedia-product-page-details-scraper`) Actor

The Tokopedia Product Details Scraper extracts detailed product data from all Tokopedia country sites, including name, brand, price, rating, image URLs, etc., by providing product details page urls.

- **URL**: https://apify.com/ecomscrape/tokopedia-product-page-details-scraper.md
- **Developed by:** [ecomscrape](https://apify.com/ecomscrape) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Full permissions
- **Stats:** 53 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

## Contact

If you encounter any issues or need to exchange information, please feel free to contact us through the following link:
[My profile](https://apify.com/ecomscrape)

## What does Tokopedia Product Details Scraper do?

### Introduction

Tokopedia stands as Indonesia's largest eCommerce marketplace, connecting millions of merchants and buyers across the archipelago. With thousands of products spanning over 25 categories, accessing and analyzing product data manually becomes increasingly challenging for businesses, researchers, and entrepreneurs.

The Tokopedia Product Details Scraper addresses this critical need by automating data extraction from product pages, enabling users to gather comprehensive market intelligence, monitor competitor pricing, and conduct thorough product research efficiently. This tool transforms hours of manual data collection into minutes of automated processing.

### Scraper Overview

The Tokopedia Product Details Scraper is a robust data extraction tool designed specifically for Indonesia's premier e-commerce platform. It captures detailed product information including pricing, inventory, reviews, seller metrics, and technical specifications from individual product pages.

**Key Strengths:**

- **Comprehensive Data Extraction**: Captures 20+ essential product fields including pricing, stock, reviews, and seller information
- **Retail Intelligence**: Perfect for market researchers, e-commerce analysts, and business owners
- **Reliable Performance**: Built-in retry mechanisms and proxy support ensure consistent data collection
- **Scalable Solution**: Handles single products or bulk data extraction for large-scale analysis

**Target Users:**

- Market researchers analyzing Indonesian e-commerce trends
- Business owners monitoring competitor pricing and inventory
- Data analysts conducting product performance studies
- Entrepreneurs researching market opportunities

### Input and Output Details

Example url 1: https://www.tokopedia.com/dorangadget/ixpand-luxe-128gb-sandisk-otg-flashdisk-for-iphone-type-c-original

Example url 2: https://www.tokopedia.com/myonlinecctv/kabel-cctv-jadi-tinggal-pasang-merk-lg-ls-coaxial-power-kuat-awet?extParam=ivf%3Dfalse%26search_id%3D202507241055438D3BBA7425E7C921FVGE

Example url 3: https://www.tokopedia.com/isyfalanaofficial/cermin-kamar-mandi-dinding-kotak-cermin-dinding-kamar-mandi-bulat-40-cm?extParam=ivf%3Dfalse%26search_id%3D2025072410563037BC2F75BF1BCF3E4B5B

Example Screenshot of product information page:

![](https://i.ibb.co/LNLb34R/Screenshot-from-2025-01-07-00-59-28.png)

#### Input Format

The scraper accepts a JSON configuration with the following structure:

```json
{
  "max_retries_per_url": 2, // Maximum waiting time when accessing the links you provided.
  "proxy": { // Add a proxy to ensure that during the data collection process, you are not detected as a bot.
    "useApifyProxy": false
  },
  "urls": [ // Links to product information pages.
    "https://www.tokopedia.com/dorangadget/ixpand-luxe-128gb-sandisk-otg-flashdisk-for-iphone-type-c-original",
    "https://www.tokopedia.com/myonlinecctv/kabel-cctv-jadi-tinggal-pasang-merk-lg-ls-coaxial-power-kuat-awet?extParam=ivf%3Dfalse%26search_id%3D202507241055438D3BBA7425E7C921FVGE",
    "https://www.tokopedia.com/isyfalanaofficial/cermin-kamar-mandi-dinding-kotak-cermin-dinding-kamar-mandi-bulat-40-cm?extParam=ivf%3Dfalse%26search_id%3D2025072410563037BC2F75BF1BCF3E4B5B"
  ]
}
```

**Input Parameters:**

- **max_retries_per_url**: Sets maximum retry attempts (recommended: 2-3) to handle temporary connection issues
- **proxy**: Enables proxy usage to avoid bot detection and ensure stable data collection
- **urls**: Array of Tokopedia product page URLs for data extraction

**Requirements:**

- URLs must be valid Tokopedia product pages
- Product pages must be publicly accessible
- Maximum recommended: 100 URLs per batch for optimal performance

#### Output Format

You get the output from the Tokopedia Product Details Page Scraper stored in a tab. The following is an example of the Information Fields collected after running the Actor.

```json
[ // List of product information
  {
    "id": "1788071227",
    "url": "https://www.tokopedia.com/dorangadget/ixpand-luxe-128gb-sandisk-otg-flashdisk-for-iphone-type-c-original",
    "alias": "ixpand-luxe-128gb-sandisk-otg-flashdisk-for-iphone-type-c-original",
    "created_at": "2021-04-22T21:47:46+07:00",
    "min_order": 1,
    "max_order": 3,
    "weight": 10.0,
    "weight_unit": "GRAM",
    "condition": "NEW",
    "status": "ACTIVE",
    "need_prescription": false,
    "is_leasing": false,
    "is_blacklisted": false,
    "is_toko_now": false,
    "category": {
      "id": "342",
      "name": "USB Flash Disk",
      "title": "",
      "breadcrumb_u_r_l": "https://www.tokopedia.com/p/komputer-laptop/media-penyimpanan-data/usb-flash-disk",
      "is_adult": false,
      "is_kyc": false,
      "min_age": 0,
      "detail": [
        {
          "id": "297",
          "name": "Komputer & Laptop",
          "breadcrumb_u_r_l": "https://www.tokopedia.com/p/komputer-laptop",
          "is_adult": false
        },
        {
          "id": "320",
          "name": "Media Penyimpanan Data",
          "breadcrumb_u_r_l": "https://www.tokopedia.com/p/komputer-laptop/media-penyimpanan-data",
          "is_adult": false
        },
        {
          "id": "342",
          "name": "USB Flash Disk",
          "breadcrumb_u_r_l": "https://www.tokopedia.com/p/komputer-laptop/media-penyimpanan-data/usb-flash-disk",
          "is_adult": false
        }
      ],
      "tts_i_d": "0",
      "tts_detail": []
    },
    "tx_stats": {
      "transaction_success": 79,
      "transaction_reject": 0,
      "count_sold": 81,
      "payment_verified": 81,
      "item_sold_fmt": "80+"
    },
    "total_reviews": 38,
    "rating_score": 5.0,
    "media": [
      {
        "type": "image",
        "url_original": "https://images.tokopedia.net/img/cache/700/hDjmkQ/2022/10/17/9a4072c5-ba7a-47ec-af3c-38ef469c3794.jpg",
        "url_thumbnail": "https://images.tokopedia.net/img/cache/200/hDjmkQ/2022/10/17/9a4072c5-ba7a-47ec-af3c-38ef469c3794.jpg",
        "url_max_res": "https://images.tokopedia.net/img/cache/700/hDjmkQ/2022/10/17/9a4072c5-ba7a-47ec-af3c-38ef469c3794.jpg",
        "video_url": "",
        "prefix": "https://images.tokopedia.net/img/cache/",
        "suffix": "/hDjmkQ/2022/10/17/9a4072c5-ba7a-47ec-af3c-38ef469c3794.jpg",
        "description": "",
        "variant_option_i_d": "0"
      },
      {
        "type": "image",
        "url_original": "https://images.tokopedia.net/img/cache/700/hDjmkQ/2022/10/17/8f5f89d5-c15d-40f5-b099-16cfcf637370.jpg",
        "url_thumbnail": "https://images.tokopedia.net/img/cache/200/hDjmkQ/2022/10/17/8f5f89d5-c15d-40f5-b099-16cfcf637370.jpg",
        "url_max_res": "https://images.tokopedia.net/img/cache/700/hDjmkQ/2022/10/17/8f5f89d5-c15d-40f5-b099-16cfcf637370.jpg",
        "video_url": "",
        "prefix": "https://images.tokopedia.net/img/cache/",
        "suffix": "/hDjmkQ/2022/10/17/8f5f89d5-c15d-40f5-b099-16cfcf637370.jpg",
        "description": "",
        "variant_option_i_d": "0"
      },
      {
        "type": "image",
        "url_original": "https://images.tokopedia.net/img/cache/700/hDjmkQ/2022/10/17/ad563a7a-d860-41cf-9213-6eb3a1f4b25f.jpg",
        "url_thumbnail": "https://images.tokopedia.net/img/cache/200/hDjmkQ/2022/10/17/ad563a7a-d860-41cf-9213-6eb3a1f4b25f.jpg",
        "url_max_res": "https://images.tokopedia.net/img/cache/700/hDjmkQ/2022/10/17/ad563a7a-d860-41cf-9213-6eb3a1f4b25f.jpg",
        "video_url": "",
        "prefix": "https://images.tokopedia.net/img/cache/",
        "suffix": "/hDjmkQ/2022/10/17/ad563a7a-d860-41cf-9213-6eb3a1f4b25f.jpg",
        "description": "",
        "variant_option_i_d": "0"
      },
      {
        "type": "image",
        "url_original": "https://images.tokopedia.net/img/cache/700/hDjmkQ/2022/10/17/92da49d5-64ec-4de0-8682-364966a2f481.jpg",
        "url_thumbnail": "https://images.tokopedia.net/img/cache/200/hDjmkQ/2022/10/17/92da49d5-64ec-4de0-8682-364966a2f481.jpg",
        "url_max_res": "https://images.tokopedia.net/img/cache/700/hDjmkQ/2022/10/17/92da49d5-64ec-4de0-8682-364966a2f481.jpg",
        "video_url": "",
        "prefix": "https://images.tokopedia.net/img/cache/",
        "suffix": "/hDjmkQ/2022/10/17/92da49d5-64ec-4de0-8682-364966a2f481.jpg",
        "description": "",
        "variant_option_i_d": "0"
      },
      {
        "type": "image",
        "url_original": "https://images.tokopedia.net/img/cache/700/hDjmkQ/2022/10/17/8dbe139a-beba-43ac-af59-4593a75dd395.jpg",
        "url_thumbnail": "https://images.tokopedia.net/img/cache/200/hDjmkQ/2022/10/17/8dbe139a-beba-43ac-af59-4593a75dd395.jpg",
        "url_max_res": "https://images.tokopedia.net/img/cache/700/hDjmkQ/2022/10/17/8dbe139a-beba-43ac-af59-4593a75dd395.jpg",
        "video_url": "",
        "prefix": "https://images.tokopedia.net/img/cache/",
        "suffix": "/hDjmkQ/2022/10/17/8dbe139a-beba-43ac-af59-4593a75dd395.jpg",
        "description": "",
        "variant_option_i_d": "0"
      }
    ],
    "price": 695300.0,
    "currency": "IDR",
    "price_txt": "Rp695.300",
    "stock_value": 3,
    "cashback_percentage": 0.0,
    "details": [
      {
        "title": "Kondisi",
        "subtitle": "Baru",
        "applink": "",
        "show_at_front": true,
        "is_annotation": false
      },
      {
        "title": "Berat Satuan",
        "subtitle": "10 g",
        "applink": "",
        "show_at_front": false,
        "is_annotation": false
      },
      {
        "title": "Min. Pemesanan",
        "subtitle": "1 Buah",
        "applink": "",
        "show_at_front": true,
        "is_annotation": false
      },
      {
        "title": "Kategori",
        "subtitle": "USB Flash Disk",
        "applink": "https://www.tokopedia.com/p/komputer-laptop/media-penyimpanan-data/usb-flash-disk",
        "show_at_front": false,
        "is_annotation": false
      },
      {
        "title": "Etalase",
        "subtitle": "SANDISK",
        "applink": "https://www.tokopedia.com/dorangadget/etalase/sandisk",
        "show_at_front": true,
        "is_annotation": false
      },
      {
        "title": "Deskripsi",
        "subtitle": "====================\nRaih Hadiah Hingga Ratusan Juta Melalui Undian Doraniversary\nPeriode : 1 Des 24 - 31 Jan 25\nPengumuman : Februari 25\nSegera Klaim Semua Transaksi Anda Menjadi Kupon Undian Doraniversary\n===================\n\nAlasan Kenapa Harus Beli di Doran Gadget :\n- Harga Sudah Termasuk PPN dan bisa terbitkan Faktur Pajak\n- Barang Asli, Baru dan Bergaransi Resmi (Gratis kalau tidak Original)\n- Selalu Ready Stock dan Siap Kirim\n- Packing Aman dan Rapi\n- Pengiriman Tepat Waktu\n- Pelayanan Ramah dengan Product Knowledge yang Baik\n- Proses Klaim Garansi Mudah &amp; dibantu Hingga Selesai\n- Banyak Bonus dan Voucher Cashback yang didapatkan\n- Memiliki Cabang Toko Resmi Offline yang tersebar di seluruh Indonesia\n**Free Stylus Pen/Bulpoin Sandisk min pembelian 100rb selama persediaan masih ada, Tidak berlaku kelipatan**\nSatu drive. Dua konektor.\nSanDisk iXpand Flash Drive Luxe disertai tidak hanya satu tetapi dua konektor, sehingga Anda dapat memindahkan file dengan mudah antar iPhone, iPad Pro, Mac, dan perangkat USB Type-C, termasuk ponsel Android.\n\nPindahkan konten Anda ke komputer dengan cepat\nTidak perlu lagi mengirim foto via email antar perangkat. Setelah file berada di drive, Anda dapat menggunakan konektor USB 3.0 berkecepatan tinggi untuk mentransfernya ke komputer USB Type-C.\n\nCara mudah untuk mengosongkan ruang\nCukup colokkan drive dan kosongkan ruang dengan mudah. Tidak perlu koneksi internet untuk mentransfer file. Sekarang Anda memiliki memori yang diperlukan untuk menyimpan lebih banyak foto, video, dan game.\n\nPencadangan otomatis tinggal menunggu dicolokkan\nTidak ada lagi kejadian kehilangan kenangan istimewa tersebut. Foto dan video otomatis dicadangkan di iPhone setiap kali Anda mencolokkan drive. Semudah itu..\n\n\nCapacity : 128 GB\nInterface : USB 3.1 Gen 1\nKonektor : Lightning &amp; USB-C\nDimensi (L x W x H) : 50mm x 15.6mm x 8.7mm",
        "applink": "",
        "show_at_front": true,
        "is_annotation": false
      },
      {
        "title": "Merek",
        "subtitle": "SanDisk",
        "applink": "",
        "show_at_front": false,
        "is_annotation": true
      }
    ],
    "shop_info": {
      "shop_tier": 2,
      "badge_u_r_l": "https://images.tokopedia.net/img/official_store/badge_os.png",
      "closed_info": {
        "closed_note": "",
        "reason": "Mohon maaf atas ketidaknyamanan yang Anda alami. Dengan berat hati toko Anda harus kami tutup atau moderasi permanen karena adanya indikasi pelanggaran Syarat dan Ketentuan Tokopedia. Pelanggaran yang dimaksud mengacu pada transaksi manipulasi (pemanfaatan promo, transaksi untuk meningkatkan reputasi toko dan/atau penggunaan resi yang tidak valid).<br><br>Demi kenyamanan dan keamanan bertransaksi di Tokopedia, kami himbau agar Anda dapat memperhatikan dan memahami dengan baik seluruh Syarat dan Ketentuan Transaksi Penjualan (Poin D) di <a href='https://www.tokopedia.com/terms.pl#sell'>https://www.tokopedia.com/terms.pl#sell</a>.",
        "detail": {
          "open_date": "0"
        }
      },
      "is_open": 0,
      "favorite_data": {
        "total_favorite": "0",
        "already_favorited": 0
      },
      "active_product": "1539",
      "create_info": {
        "epoch_shop_created": "1562336833"
      },
      "shop_assets": {
        "avatar": "https://images.tokopedia.net/img/cache/215-square/GAnVPX/2020/11/11/bbbed5d9-1027-4aa0-ada3-79dc1258ac08.jpg"
      },
      "shop_core": {
        "domain": "dorangadget",
        "shop_i_d": "6334987",
        "name": "Doran Gadget",
        "shop_score": 0,
        "url": "https://www.tokopedia.com/dorangadget?product_id=1788071227&source=pdp",
        "owner_i_d": "70067868"
      },
      "shop_last_active": "1736185247",
      "location": "Jakarta Pusat",
      "status_info": {
        "status_message": "",
        "shop_status": 1,
        "is_idle": false
      },
      "is_allow_manage": 0,
      "is_owner": 0,
      "owner_info": {
        "id": "0"
      },
      "is_c_o_d": false,
      "shop_type": 0,
      "ticker_data": [],
      "shop_credibility": {
        "show_online_status": true,
        "show_follow_button": true,
        "stats": [
          {
            "icon": "https://images.tokopedia.net/img/pdp/icons/shopcredibility/action-star-light.jpg",
            "value": "<span style=\"color:#212121;\">4.9</span> <span style=\"color:#6D7588\">(74,2 rb)</span>"
          },
          {
            "icon": "https://images.tokopedia.net/img/pdp/icons/shopcredibility/general-clock-light.jpg",
            "value": "<span style=\"color:#212121;\">± 4 jam</span> <span style=\"color:#6D7588\">pesanan diproses</span>"
          }
        ]
      },
      "partner_label": ""
    }
    }, // ... Many other product details
] 
```

The scraper returns comprehensive product data with 20+ fields:

**Core Product Information:**

- **Id**: Unique Tokopedia product identifier for database management
- **Url**: Original product page URL for reference and re-scraping
- **Alias**: Product slug/alias used in the URL structure
- **Created At**: Product listing timestamp for trend analysis

**Inventory & Ordering:**

- **Min Order**: Minimum purchase quantity (crucial for B2B analysis)
- **Max Order**: Maximum purchase limit (indicates stock constraints)
- **Weight & Weight Unit**: Shipping calculations and logistics planning
- **Stock Value**: Current inventory level for availability tracking

**Product Status:**

- **Condition**: New/used status affecting pricing strategy
- **Status**: Active/inactive product status
- **Need Prescription**: Medical/regulated product indicator
- **Is Leasing**: Rental/leasing product identification
- **Is Blacklisted**: Compliance and safety indicator
- **Is Toko Now**: Same-day delivery availability

**Performance Metrics:**

- **Total Reviews**: Customer engagement indicator
- **Rating Score**: Quality assessment (1-5 scale)
- **Tx Stats**: Transaction statistics for popularity analysis
- **Cashback Percentage**: Promotional incentive tracking

**Financial Data:**

- **Price**: Numerical price value for calculations
- **Currency**: Price currency (typically IDR)
- **Price Txt**: Formatted price string with currency symbols

**Rich Content:**

- **Media**: Product images and videos for visual analysis
- **Details**: Complete product descriptions and specifications
- **Category**: Product categorization for market segmentation
- **Shop Info**: Seller details including ratings and verification status

### Usage Guide

**Step 1: Prepare Your URLs**
Collect Tokopedia product page URLs you want to analyze. Ensure they're direct product links, not search or category pages.

**Step 2: Configure Settings**

- Set `max_retries_per_url` to 2-3 for reliability
- Enable `useApifyProxy: true` for large-scale scraping to avoid rate limiting
- Add your URLs to the `urls` array

**Step 3: Execute Scraping**
Run the scraper and monitor progress. The tool handles pagination and error recovery automatically.

**Best Practices:**

- Batch URLs in groups of 50-100 for optimal performance
- Use proxy rotation for large datasets
- Schedule scraping during off-peak hours (2-6 AM WIB)
- Implement delays between requests to respect server resources

**Common Issues:**

- **404 Errors**: Verify product URLs are active and accessible
- **Rate Limiting**: Enable proxy settings or reduce batch size
- **Incomplete Data**: Some fields may be empty for certain product types

### Benefits and Applications

**Time Efficiency**: Reduces manual data collection from hours to minutes, enabling faster market analysis and decision-making.

**Business Applications:**

- **Competitive Intelligence**: Monitor competitor pricing, stock levels, and promotional strategies
- **Market Research**: Analyze product trends, customer preferences, and market gaps
- **Inventory Management**: Track stock levels across multiple suppliers
- **Price Optimization**: Develop data-driven pricing strategies based on market data

**Data-Driven Insights**: Convert raw product information into actionable business intelligence for strategic planning and operational optimization.

### Conclusion

The Tokopedia Product Details Scraper transforms complex e-commerce data extraction into a streamlined, automated process. By providing comprehensive product insights from Indonesia's largest marketplace, it empowers businesses to make informed decisions and stay competitive in the dynamic e-commerce landscape.

Ready to unlock Tokopedia's product intelligence? Start extracting valuable market data today.

## Related Actors

- [**Tokopedia Product Search Scraper**](https://apify.com/ecomscrape/tokopedia-product-search-scraper): A specialized data extraction tool engineered to harvest comprehensive product information from Tokopedia's dominant Indonesian marketplace.

## Your feedback

We are always working to improve Actors' performance. So, if you have any technical feedback about Tokopedia Product Details Page Scraper or simply found a bug, please create an issue on the Actor's Issues tab in Apify Console.

# Actor input Schema

## `urls` (type: `array`):

Add the URLs of the Specific product urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.

## `max_retries_per_url` (type: `integer`):

Limit the number of retries for each URL, If an error occurs during the data scraping process.

## `proxy` (type: `object`):

Select proxies to be used by your scraper.

## Actor input object example

```json
{
  "urls": [
    "https://www.tokopedia.com/dorangadget/ixpand-luxe-128gb-sandisk-otg-flashdisk-for-iphone-type-c-original"
  ],
  "max_retries_per_url": 2,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "urls": [
        "https://www.tokopedia.com/dorangadget/ixpand-luxe-128gb-sandisk-otg-flashdisk-for-iphone-type-c-original"
    ],
    "max_retries_per_url": 2,
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ecomscrape/tokopedia-product-page-details-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 = {
    "urls": ["https://www.tokopedia.com/dorangadget/ixpand-luxe-128gb-sandisk-otg-flashdisk-for-iphone-type-c-original"],
    "max_retries_per_url": 2,
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("ecomscrape/tokopedia-product-page-details-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 '{
  "urls": [
    "https://www.tokopedia.com/dorangadget/ixpand-luxe-128gb-sandisk-otg-flashdisk-for-iphone-type-c-original"
  ],
  "max_retries_per_url": 2,
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call ecomscrape/tokopedia-product-page-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ecomscrape/tokopedia-product-page-details-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/VLqutmxfntffMWtAy/builds/sYfxJUTKPG8GAv4c8/openapi.json
