# Tokopedia Keyword Search: Products by Query

**Use case:** 

Keyword to products: every listing row carries price in rupiah, discount, rating, review count, units sold and the shop behind it.

## Input

```json
{
  "mode": "search",
  "queries": [
    "kaos polos"
  ],
  "categoryIds": [
    "3231"
  ],
  "shops": [
    "avvic"
  ],
  "productUrls": [
    "https://www.tokopedia.com/avvic/kaos-polos-pria-1749420110"
  ],
  "maxItems": 100,
  "maxPages": 3,
  "rowsPerPage": 60,
  "sortBy": "relevance",
  "officialOnly": false,
  "cod": false,
  "includeDetails": false,
  "includeReviews": false,
  "reviewsPerProduct": 10,
  "requestDelayMs": 300,
  "requestTimeoutSecs": 30,
  "runBudgetSecs": 205
}
```

## Output

```json
{
  "name": {
    "label": "Product",
    "format": "string"
  },
  "url": {
    "label": "Link",
    "format": "string"
  },
  "priceText": {
    "label": "Price",
    "format": "string"
  },
  "originalPrice": {
    "label": "Before",
    "format": "string"
  },
  "discountText": {
    "label": "Discount",
    "format": "string"
  },
  "rating": {
    "label": "Rating",
    "format": "number"
  },
  "countReview": {
    "label": "Reviews",
    "format": "number"
  },
  "countSold": {
    "label": "Sold",
    "format": "number"
  },
  "shopName": {
    "label": "Shop",
    "format": "string"
  },
  "shopCity": {
    "label": "City",
    "format": "string"
  },
  "shopOfficial": {
    "label": "Official",
    "format": "boolean"
  },
  "position": {
    "label": "Rank",
    "format": "integer"
  },
  "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 Keyword Search: Products by Query". [Sign up or log in](https://console.apify.com/create-task-from-example/LpLUdzac5VuotifnU) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Tokopedia Keyword Search: Products by Query" 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 Keyword Search: Products by Query" 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, link, price, 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 Keyword Search: Products by Query" task via API](https://apify.com/ai-lead-gen-tools/tokopedia-scraper.md).

## FAQ

### What does one row contain?

One product from the keyword listing with name, url, price and priceValue in rupiah, original price, discount percentage, image, rating, review count, units sold, shop id, shop name, shop city and the category breadcrumb.

### How deep does the keyword search go?

Up to maxItems products and maxPages listing requests. A keyword can report millions of products, so set both caps with the real total in mind.

### Do I need cookies or a proxy?

No. The actor calls the same public gateway the website calls, with the three headers the site itself sends, over plain HTTP.

### Can I keep only official stores?

Yes, turn on officialOnly. The gateway filter is real and shrinks the set sharply: one probe went from 13.8 million products to 71 thousand.

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