# Tokopedia Product Reviews: Text and Ratings

**Use case:** 

Product link to its reviews, one row each, with rating, message, variant, reviewer and seller reply, plus the product page row.

## Input

```json
{
  "mode": "product",
  "queries": [
    "kaos polos",
    "lampu darurat"
  ],
  "categoryIds": [
    "3231"
  ],
  "shops": [
    "avvic"
  ],
  "productUrls": [
    "https://www.tokopedia.com/cotton-apparel-by-kl/yontik-100-cotton-24s-kaos-distro-unisex-original-motif-cilantro-katun-24s-cewe-cowo-basic-style-crewneck-baju-nyaman-pasangan-lembut-oblong-panjang-atasan-dewasa-keren-cewek-pendek-polos-oversize-combed-wanita-1733476672462619729"
  ],
  "maxItems": 10,
  "maxPages": 10,
  "rowsPerPage": 60,
  "sortBy": "relevance",
  "officialOnly": false,
  "cod": false,
  "includeDetails": true,
  "includeReviews": true,
  "reviewsPerProduct": 50,
  "requestDelayMs": 300,
  "requestTimeoutSecs": 30,
  "runBudgetSecs": 205
}
```

## Output

```json
{
  "productId": {
    "label": "Product id",
    "format": "string"
  },
  "reviewId": {
    "label": "Review id",
    "format": "string"
  },
  "variantName": {
    "label": "Variant",
    "format": "string"
  },
  "rating": {
    "label": "Rating",
    "format": "number"
  },
  "userName": {
    "label": "Buyer",
    "format": "string"
  },
  "message": {
    "label": "Review",
    "format": "string"
  },
  "createdAt": {
    "label": "Written",
    "format": "string"
  },
  "sellerReply": {
    "label": "Seller reply",
    "format": "string"
  },
  "totalLike": {
    "label": "Likes",
    "format": "number"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "reason": {
    "label": "Reason",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Tokopedia Scraper - Products, Prices, Shops, Reviews Actor is ready to run with the inputs already set for "Tokopedia Product Reviews: Text and Ratings". [Sign up or log in](https://console.apify.com/create-task-from-example/n4gjeuviu6ELZhg1v) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Tokopedia Product Reviews: Text and Ratings" task

The Tokopedia Scraper - Products, Prices, Shops, Reviews Actor will start running based on the input automatically. You can also change all the input fields, like mode, search keywords, and more, to match your specific use case.

### 3. Receive the "Tokopedia Product Reviews: Text and Ratings" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as product id, review id, variant, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Tokopedia Product Reviews: Text and Ratings" task via API](https://apify.com/ai-lead-gen-tools/tokopedia-scraper.md).

## FAQ

### What does one review row contain?

reviewId, productId, rating, message, variantName, userID, userName, userUrl, isAnonymous, totalLike, sellerReply, sellerReplyAt and the scrape time.

### How many reviews can I get per product?

Up to reviewsPerProduct. The Tokopedia review API caps one request at 50 reviews, so the actor pages with the source hasNext flag in pages of at most 50.

### Why did a product return no reviews?

The review endpoint answers with an empty list for some products even when the product page shows a review counter. The actor writes a no_results row saying so instead of leaving an empty dataset.

### Do I also get the product page data?

Yes when includeDetails is on: one extra product_detail row per product with stock, minimum order, weight, description, image gallery and units sold.

## About this Actor

This example demonstrates how to use [Tokopedia Scraper - Products, Prices, Shops, Reviews](https://apify.com/ai-lead-gen-tools/tokopedia-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ai-lead-gen-tools/tokopedia-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/ai-lead-gen-tools/tokopedia-scraper.md

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`).
