# Tokopedia Products, Shops & Reviews Scraper (`datascraperes/tokopedia-product-intelligence`) Actor

Scrape Tokopedia search results, full product details, shop catalogs and written reviews. Get IDR prices, stock, variants, images, descriptions and seller data in clean JSON.

- **URL**: https://apify.com/datascraperes/tokopedia-product-intelligence.md
- **Developed by:** [DataScraperES](https://apify.com/datascraperes) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 96.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.75 / 1,000 product listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

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

Scrape Tokopedia search results, full product pages, shop catalogs and written reviews from one Actor. Enter a keyword or Tokopedia URL and get **clean product rows with IDR prices, stock, variants, images, descriptions, category breadcrumbs and seller data**. Reviews mode returns one row per review with text, rating, photos and the seller's response.

### What this Actor does

Tokopedia is an Indonesian marketplace. This Actor collects public product data from four entry points:

- **Keyword search** - reads Tokopedia's search landing pages, up to 60 products per page, with price, city and Official Store filters.
- **Product URLs** - returns one fully enriched product: price, original price, discount, stock, condition, weight, order limits, description, gallery, category path and variants.
- **Shop URLs** - walks a shop's catalog and its shelves, deduplicated across pages.
- **Reviews** - collects written product reviews, including rating, text, buyer display name, variant bought, photos, videos and seller replies.

Search, product details, shop catalogs, variants and written reviews are returned as structured rows. Products are deduplicated by their Tokopedia product ID.

### Use cases

- Build Tokopedia price, stock and assortment datasets for market research.
- Monitor a set of products or a shop catalog and compare results between runs.
- Export variant-level prices and stock for pricing or PIM work.
- Collect written reviews for sentiment, complaint or product-quality analysis.
- Audit a shop's catalog across its shelves and categories.

### How to use

1. Open the Actor in Apify Console.
2. Enter a keyword in **Search queries** or paste product and shop URLs in **Product or shop URLs**.
3. Choose **Products** or **Reviews**, set **Maximum rows**, and click **Start**.
4. Open the Dataset when the run finishes and export JSON, CSV or Excel.

### Input

Provide at least one search query or one start URL.

For a basic run, use the first four fields: **Search queries**, **Product or shop URLs**, **Output mode** and **Maximum rows**. Product details, review settings, search filters and page limits are grouped in optional sections. Existing API field names and defaults are unchanged.

Pasted product and shop links may omit `https://`; mobile Tokopedia links are normalized to the same public target. Unsupported links and conflicting settings are checked before collection. For example, adding shop statistics to search results requires full details, and the maximum price must be at least the minimum price. The Actor does not silently change your filters, result limit or paid enrichment settings.

If the input needs correction after the run starts, the Actor stops without collecting or charging results. Its status message explains what to change; no collection is marked as completed. Invalid JSON, wrong field types and schema limits can also be rejected by Apify before a run starts. Correct the indicated field and submit again.

- **Search queries** accept Indonesian keywords or full Tokopedia `/find/` URLs. Each query is paginated up to **Maximum pages per query**; one page contains up to 60 products.
- **Product or shop URLs** accept public Tokopedia product URLs and shop URLs, including `/etalase/` shelf URLs. Product URLs always return full details, even when **Enrich products with full details** is off.
- **Maximum rows** is the global ceiling across all queries and URLs. Products and reviews are deduplicated, so a repeated product or review does not produce a second row.
- **Enrich products with full details** reads each product page for description, gallery, stock, condition, weight and variants. It costs more because each enriched row is a separate billable event.
- **Add shop statistics** adds shop rating and reputation to enriched rows.
- **Search order**, **Minimum price**, **Maximum price**, **Seller city ID** and **Official stores only** apply to keyword searches. Price, city and store filters in a `/find/` URL are kept unless you supply replacements. **Search order** controls the ordering.
- **Reviews mode** uses **Maximum reviews per product** as the per-product cap. A shop URL in Reviews mode walks the shop's products and collects their reviews, up to **Maximum rows** overall.

Quick start:

```json
{
  "searchQueries": ["laptop"],
  "outputMode": "products",
  "maxResults": 1,
  "maxPagesPerQuery": 1,
  "includeDetails": true,
  "includeShopInfo": false,
  "maxReviewsPerProduct": 50,
  "sortBy": "relevance",
  "officialOnly": false,
  "cityId": ""
}
```

```json
{
  "searchQueries": ["laptop"],
  "startUrls": [],
  "outputMode": "products",
  "maxResults": 100,
  "maxPagesPerQuery": 3,
  "includeDetails": false,
  "includeShopInfo": false,
  "maxReviewsPerProduct": 50,
  "sortBy": "relevance",
  "minPrice": 0,
  "maxPrice": 1000000000,
  "cityId": "",
  "officialOnly": false
}
```

| Field | What it controls |
|---|---|
| `searchQueries` | Keywords or `/find/` URLs to search. |
| `startUrls` | Product and shop URLs to read directly. |
| `outputMode` | `products` for product rows or `reviews` for review rows. |
| `maxResults` | Global row ceiling, 1 to 5000. |
| `maxPagesPerQuery` | Search and shop page cap, 1 to 100. |
| `includeDetails` | Read product pages for descriptions, images, stock and variants. |
| `includeShopInfo` | Add shop rating and reputation to enriched products. |
| `maxReviewsPerProduct` | Per-product review cap, 1 to 1000 in Reviews mode; ignored in Products mode. |
| `sortBy` | `relevance` or `price_low` for keyword searches. |
| `minPrice`, `maxPrice` | IDR price bounds for keyword searches. |
| `cityId` | Tokopedia seller city ID (`fcity`). |
| `officialOnly` | Keep Official Store products when the source applies the filter. |

### Output

Results are stored in the default Dataset. One product row represents one unique product; one review row represents one written review. Accepted targets that are unavailable during collection produce a free `error` row with `errorCode` and `errorMessage`, while already delivered rows remain in the Dataset. Expected target failures finish with an explicit partial or source_unavailable collection status, preserving confirmed rows. Empty searches and collection limits have separate summary statuses. A successful platform status alone does not prove complete data. Unsupported input links are checked before collection and produce a correction message instead.

A verified product row from the quick-start run:

```json
{
  "recordType": "product",
  "source": "search",
  "searchKeyword": "laptop",
  "page": 1,
  "position": 1,
  "productId": "103400227062",
  "name": "Thermalright PA120 SE CPU Cooler Dual Tower Air Pendingin CPU Gaming PC 6 Heatpipe PWM Fan Intel AMD Silent Cooler untuk Laptop - PA120 SE",
  "url": "https://www.tokopedia.com/thermalright-id-store/thermalright-pa120-se-cpu-cooler-dual-tower-air-cooler-pendingin-cpu-gaming-pc-6-heatpipe-pwm-fan-intel-amd-silent-cooler-1735689080408081873-1735689353161770449",
  "appLink": "tokopedia://product/103400227062?extParam=ivf%3Dfalse%26keyword%3Dlaptop%26search_id%3D20261027131350F8C1F23D6A8D8D117O7H%26src%3Dsearch",
  "imageUrl": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/6b1ec5ef832f40418127a35789614f61~tplv-aphluv4xwc-white-pad-v1:200:200.jpeg?lk3s=97278606&x-expires=1793110430&x-signature=9hwTnEyCaR7zM7FPgcT7FfMTRPo%3D&x-signature-webp=l%2B3STQiMfn2of7Xvy51%2B2NEJDR0%3D",
  "price": 866700,
  "priceText": "Rp866.700",
  "originalPriceText": "Rp1.289.000",
  "discountPercentage": 33,
  "currency": "IDR",
  "rating": "5.0",
  "soldCount": 6,
  "soldText": "6 terjual",
  "shopId": "7494326471956202961",
  "shopName": "Thermalright ID Store",
  "shopUrl": "https://www.tokopedia.com/thermalright-id-store",
  "shopCity": "Kab. Tangerang",
  "shopTier": 2,
  "isOfficialStore": true,
  "badgeTitle": "Kab. Tangerang",
  "categoryId": "310",
  "categoryName": "Internal Fan & Cooler",
  "description": null,
  "stock": 15,
  "condition": "NEW",
  "weight": 1.5,
  "weightUnit": "KILOGRAM",
  "minOrder": 1,
  "maxOrder": 15,
  "isCod": false,
  "isPowerMerchant": true,
  "hasVariant": true,
  "images": [
    "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/6b1ec5ef832f40418127a35789614f61~.jpeg",
    "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/02ae8bea96714b69a7eb5f91c8a0daeb~.jpeg",
    "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/471dbf1efe704b89a995c3984de48626~.jpeg",
    "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/5716122fb87e42f1a8192bee724f12fa~.jpeg",
    "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/cdbf1caf939e4db0800cac4257e17d19~.jpeg",
    "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/e62ff6790bf944bab17d8559d97ef6a9~.jpeg",
    "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/5692e8fc4cd947b581d898b9f3b8e060~.jpeg",
    "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/9255c5ccae274e40b7f3e1a2ef3fd8be~.jpeg.webp",
    "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/78fc4a64eb474c96a2edb362d943c364~.jpeg.webp",
    "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/fbf7412892ac4d989ca1ecf0d22e5917~.jpeg.webp",
    "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/a9711fdbd1cb4a9eb3b0c782de9246bf~.jpeg.webp"
  ],
  "imageCount": 11,
  "specs": [
    {
      "name": "Kondisi",
      "value": "Baru"
    },
    {
      "name": "Pemesanan Minimum",
      "value": "1 Buah"
    },
    {
      "name": "Kategori",
      "value": "Internal Fan & Cooler"
    },
    {
      "name": "Etalase",
      "value": "Semua Etalase"
    }
  ],
  "variantGroups": [
    {
      "name": "pendingin cpu",
      "identifier": "",
      "options": [
        {
          "value": "PA120 SE",
          "optionId": "2",
          "image": "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/9255c5ccae274e40b7f3e1a2ef3fd8be~.jpeg"
        },
        {
          "value": "PA120 SE BLACK",
          "optionId": "3",
          "image": "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/78fc4a64eb474c96a2edb362d943c364~.jpeg"
        },
        {
          "value": "PA120 SE ARGB WHITE",
          "optionId": "5",
          "image": "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/fbf7412892ac4d989ca1ecf0d22e5917~.jpeg"
        },
        {
          "value": "PA120 SE ARGB",
          "optionId": "4",
          "image": "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/a9711fdbd1cb4a9eb3b0c782de9246bf~.jpeg"
        }
      ]
    }
  ],
  "variantSkus": [
    {
      "productId": "103400227062",
      "name": "Thermalright PA120 SE CPU Cooler Dual Tower Air Pendingin CPU Gaming PC 6 Heatpipe PWM Fan Intel AMD Silent Cooler untuk Laptop - PA120 SE",
      "url": "https://www.tokopedia.com/thermalright-id-store/thermalright-pa120-se-cpu-cooler-dual-tower-air-cooler-pendingin-cpu-gaming-pc-6-heatpipe-pwm-fan-intel-amd-silent-cooler-1735689080408081873-1735689353161770449",
      "sku": "TR-PA120 SE",
      "options": [
        "PA120 SE"
      ],
      "price": 866700,
      "priceText": "Rp866.700",
      "originalPrice": 1289000,
      "discountPercentage": 33,
      "stock": "15",
      "isBuyable": true,
      "minOrder": "1",
      "maxOrder": "15",
      "isCod": false,
      "image": "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/9255c5ccae274e40b7f3e1a2ef3fd8be~.jpeg"
    },
    {
      "productId": "103400227063",
      "name": "Thermalright PA120 SE CPU Cooler Dual Tower Air Pendingin CPU Gaming PC 6 Heatpipe PWM Fan Intel AMD Silent Cooler untuk Laptop - PA120 SE BLACK",
      "url": "https://www.tokopedia.com/thermalright-id-store/thermalright-pa120-se-cpu-cooler-dual-tower-air-cooler-pendingin-cpu-gaming-pc-6-heatpipe-pwm-fan-intel-amd-silent-cooler-1735689080408081873-1735689353161835985",
      "sku": "TR-PA120 SE BLACK",
      "options": [
        "PA120 SE BLACK"
      ],
      "price": 1046700,
      "priceText": "Rp1.046.700",
      "originalPrice": 1469000,
      "discountPercentage": 29,
      "stock": "12",
      "isBuyable": true,
      "minOrder": "1",
      "maxOrder": "12",
      "isCod": false,
      "image": "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/78fc4a64eb474c96a2edb362d943c364~.jpeg"
    },
    {
      "productId": "103400227064",
      "name": "Thermalright PA120 SE CPU Cooler Dual Tower Air Pendingin CPU Gaming PC 6 Heatpipe PWM Fan Intel AMD Silent Cooler untuk Laptop - PA120 SE ARGB",
      "url": "https://www.tokopedia.com/thermalright-id-store/thermalright-pa120-se-cpu-cooler-dual-tower-air-cooler-pendingin-cpu-gaming-pc-6-heatpipe-pwm-fan-intel-amd-silent-cooler-1735689080408081873-1735689353161901521",
      "sku": "TR-PA120 SE ARGB",
      "options": [
        "PA120 SE ARGB"
      ],
      "price": 916700,
      "priceText": "Rp916.700",
      "originalPrice": 1339000,
      "discountPercentage": 32,
      "stock": "0",
      "isBuyable": true,
      "minOrder": "1",
      "maxOrder": "0",
      "isCod": false,
      "image": "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/a9711fdbd1cb4a9eb3b0c782de9246bf~.jpeg"
    },
    {
      "productId": "103400227065",
      "name": "Thermalright PA120 SE CPU Cooler Dual Tower Air Pendingin CPU Gaming PC 6 Heatpipe PWM Fan Intel AMD Silent Cooler untuk Laptop - PA120 SE ARGB WHITE",
      "url": "https://www.tokopedia.com/thermalright-id-store/thermalright-pa120-se-cpu-cooler-dual-tower-air-cooler-pendingin-cpu-gaming-pc-6-heatpipe-pwm-fan-intel-amd-silent-cooler-1735689080408081873-1735689353161967057",
      "sku": "TR-PA120 SE WHITE ARGB",
      "options": [
        "PA120 SE ARGB WHITE"
      ],
      "price": 1086700,
      "priceText": "Rp1.086.700",
      "originalPrice": 1509000,
      "discountPercentage": 28,
      "stock": "8",
      "isBuyable": true,
      "minOrder": "1",
      "maxOrder": "8",
      "isCod": false,
      "image": "https://images.tokopedia.net/img/cache/700/aphluv/1997/1/1/fbf7412892ac4d989ca1ecf0d22e5917~.jpeg"
    }
  ],
  "categoryPath": [
    "Komputer & Laptop",
    "Komponen Komputer",
    "Internal Fan & Cooler"
  ],
  "categoryUrl": "https://www.tokopedia.com/p/komputer-laptop/komponen-komputer/internal-fan-cooler",
  "ttsCategoryId": "825480",
  "ratingCount": 1,
  "reviewTopics": [
    {
      "key": "kualitas",
      "count": 1,
      "rating": 5
    }
  ],
  "scrapedAt": "2026-10-27T13:13:50.781727+00:00"
}
```

Key fields:

- `productId`, `name`, `url`, `imageUrl` identify the product.
- `price`, `priceText`, `originalPriceText`, `discountPercentage` and `currency` describe IDR pricing.
- `rating`, `ratingCount`, `soldCount`, `reviewTopics` describe demand and feedback.
- `stock`, `condition`, `weight`, `minOrder` and `maxOrder` come from the product page.
- `variantGroups` and `variantSkus` contain option values, SKU price, stock and product IDs.
- `description`, `images`, `specs`, `categoryPath` and `ttsCategoryId` support catalog and PIM work.
- `shopId`, `shopName`, `shopCity`, `isOfficialStore` and `isPowerMerchant` describe the seller.
- Review rows add `reviewId`, `text`, `reviewerName`, `rating`, `variantName`, `images`, `videos`, `likes` and `sellerResponse`.

### Pricing

This Actor uses pay-per-event pricing. You are charged only for rows written to the Dataset.

Prices are in USD. Each cell shows the price per delivered row and its equivalent per 1,000 rows.

| Tier | Product listing: each / 1,000 | Product with details: each / 1,000 | Written review: each / 1,000 |
| --- | --- | --- | --- |
| FREE | $0.001 / $1.00 | $0.004 / $4.00 | $0.0012 / $1.20 |
| BRONZE | $0.0009 / $0.90 | $0.0036 / $3.60 | $0.00108 / $1.08 |
| SILVER | $0.0008 / $0.80 | $0.0032 / $3.20 | $0.00096 / $0.96 |
| GOLD | $0.00075 / $0.75 | $0.003 / $3.00 | $0.0009 / $0.90 |
| PLATINUM | $0.00075 / $0.75 | $0.003 / $3.00 | $0.0009 / $0.90 |
| DIAMOND | $0.00075 / $0.75 | $0.003 / $3.00 | $0.0009 / $0.90 |

There is no additional start fee. The Pricing tab shows the current prices for your plan.

A listing row without details is charged as **Product listing**. A row enriched from its product page is charged once as **Product with full details**, not as both events. Each review row is charged as **Written review**. Error rows, duplicate products and duplicate reviews are not charged. The Pricing tab is the source of truth for current plan pricing.

### Related Actors

| Actor | Best for |
|---|---|
| [Shopify Products Scraper | Prices & Variants](https://apify.com/datascraperes/shopify-products-scraper) | Comparing Tokopedia catalogs with public Shopify storefronts, including variants and availability. |
| [Houzz Scraper | Photos, Products, Pros & Ideas](https://apify.com/datascraperes/houzz-content-scraper) | Extending home-goods and product-review research beyond Tokopedia. |
| [Wallapop Scraper | Spain Listings & Sellers](https://apify.com/datascraperes/wallapop-marketplace-scraper) | Marketplace listing and seller research for another market. |

### Limits and data quality

- Oversized or unusable source records produce free error rows. Repeated source errors can stop a run; already saved results remain available.

- Keyword search returns up to 60 products per page. **Maximum pages per query** limits how far a query or shop goes; **Maximum rows** caps the total.

- Product details depend on the public product page. Some pages may be incomplete. Unavailable product URLs produce an error row; optional detail enrichment may instead preserve the listing without full details.

- Listing-only rows carry the search card price. Exact stock and the full gallery require **Enrich products with full details**.

- Large detail runs take longer than listing-only runs; start with a small **Maximum rows** to size the run.

- Tokopedia images are signed and can expire. Enriched rows also include durable image URLs built from the public product gallery.

- Search ranking, ads, prices and stock change between runs. The product ID is the stable key for comparisons.

- Reviews are limited to the public review feed and **Maximum reviews per product**. Not every rating has written text.

- The Actor reads public pages only. It does not sign in, use account cookies or return private buyer data.

### Frequently asked questions

#### Do I need a Tokopedia account?

No. The Actor reads public search, product, shop and review pages. It does not access cart, orders, chat, wishlist or seller-center data.

#### Why do I get fewer products than requested?

Tokopedia may have fewer matching products, the page cap may be reached, or **Maximum rows** may have been hit. Check the run summary and the search URL in a browser before assuming a failure.

#### What is the difference between products and reviews mode?

Products mode returns one row per product and can add full product details. Reviews mode returns one row per written review and uses **Maximum reviews per product** as the per-product cap.

#### Why do some products have no variants?

Only products with variants expose option groups and child SKUs. Products without variants return an empty `variantGroups` and `variantSkus` list.

#### Why are image links different between listing-only and enriched rows?

Enriched rows use durable public gallery URLs. Listing-only rows keep the image from the search card, which may be signed and expire.

### Responsible use

You are responsible for using this Actor lawfully and in line with applicable terms, privacy rules and regulations. Collect only public data you are entitled to use, and do not use it to identify or contact individuals without a lawful basis.

### Support

Open an issue in the Actor's **Issues** tab with the input, run ID and the product or shop URL involved. Include whether the run was in Products or Reviews mode so the problem can be reproduced.

[Python, JavaScript and CSV examples on GitHub](https://github.com/datacrawler-edu/tokopedia-scraper-python)

# Actor input Schema

## `searchQueries` (type: `array`):

Enter keywords, one per line, or leave empty when using URLs below. Indonesian terms usually give broader coverage. Tokopedia search links are also accepted.

## `startUrls` (type: `array`):

Paste Tokopedia product, shop, shelf or search links, one per line. Leave empty when searching by keyword. Product links always return full details. Links without https:// are accepted.

## `outputMode` (type: `string`):

Products returns one row per product. Reviews returns one row per written review, including text, photos, rating, variant and seller response.

## `maxResults` (type: `integer`):

Global ceiling of product or review rows written to the dataset. Source availability can produce fewer rows.

## `includeDetails` (type: `boolean`):

Read each product page for description, images, stock, condition, weight, variants and exact category. Product URLs always receive full details.

## `includeShopInfo` (type: `boolean`):

Add seller rating and reputation to detailed products. For search or shop results, enable full details above first. Ignored in Reviews mode.

## `maxReviewsPerProduct` (type: `integer`):

Limit written reviews per product. Use at least 1 in Reviews mode. This setting is ignored in Products mode.

## `maxPagesPerQuery` (type: `integer`):

Safety cap for search pagination and shop catalog pages. Each search page returns up to 60 products.

## `sortBy` (type: `string`):

Tokopedia search ordering used for keyword queries. The selected order also applies to /find/ URLs; other existing URL filters are preserved unless replaced.

## `minPrice` (type: `integer`):

Only return products at or above this price in Indonesian Rupiah. Leave empty for no lower bound.

## `maxPrice` (type: `integer`):

Only return products at or below this price in Indonesian Rupiah. Leave empty for no upper bound.

## `cityId` (type: `string`):

Optional numeric city ID copied from fcity in a filtered Tokopedia search link. Multiple IDs may be comma-separated. You can instead paste the filtered search link above.

## `officialOnly` (type: `boolean`):

Keep only products from Tokopedia Official Store sellers when the source applies the filter.

## Actor input object example

```json
{
  "searchQueries": [
    "laptop"
  ],
  "startUrls": [],
  "outputMode": "products",
  "maxResults": 3,
  "includeDetails": false,
  "includeShopInfo": false,
  "maxReviewsPerProduct": 5,
  "maxPagesPerQuery": 1,
  "sortBy": "relevance",
  "minPrice": 0,
  "maxPrice": 1000000000,
  "cityId": "",
  "officialOnly": false
}
```

# Actor output Schema

## `results` (type: `string`):

Product, review and error rows in the default dataset.

# 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 = {
    "searchQueries": [
        "laptop"
    ],
    "startUrls": [],
    "outputMode": "products",
    "maxResults": 3,
    "includeDetails": false,
    "includeShopInfo": false,
    "maxReviewsPerProduct": 5,
    "maxPagesPerQuery": 1,
    "sortBy": "relevance",
    "minPrice": 0,
    "maxPrice": 1000000000,
    "cityId": "",
    "officialOnly": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascraperes/tokopedia-product-intelligence").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 = {
    "searchQueries": ["laptop"],
    "startUrls": [],
    "outputMode": "products",
    "maxResults": 3,
    "includeDetails": False,
    "includeShopInfo": False,
    "maxReviewsPerProduct": 5,
    "maxPagesPerQuery": 1,
    "sortBy": "relevance",
    "minPrice": 0,
    "maxPrice": 1000000000,
    "cityId": "",
    "officialOnly": False,
}

# Run the Actor and wait for it to finish
run = client.actor("datascraperes/tokopedia-product-intelligence").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 '{
  "searchQueries": [
    "laptop"
  ],
  "startUrls": [],
  "outputMode": "products",
  "maxResults": 3,
  "includeDetails": false,
  "includeShopInfo": false,
  "maxReviewsPerProduct": 5,
  "maxPagesPerQuery": 1,
  "sortBy": "relevance",
  "minPrice": 0,
  "maxPrice": 1000000000,
  "cityId": "",
  "officialOnly": false
}' |
apify call datascraperes/tokopedia-product-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datascraperes/tokopedia-product-intelligence"
        }
    }
}
```

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/rn4AU2d3ER20XmBtq/builds/5LsiYG7h3K9FGtD4V/openapi.json
