# Tiki.vn Scraper — Vietnam Products, Prices, Sellers & Reviews (`truongnat/tiki-vn-scraper`) Actor

Extract public product data from Tiki.vn: search keywords, category pages or product URLs. Get prices in VND, discounts, sold counts, sellers, specifications and optional reviews. No login required.

- **URL**: https://apify.com/truongnat/tiki-vn-scraper.md
- **Developed by:** [Dao Quang Truong](https://apify.com/truongnat) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.10 / 1,000 products

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

## Tiki.vn Scraper — Vietnam Products, Prices, Sellers & Reviews

Extract public catalog data from [Tiki.vn](https://tiki.vn), one of Vietnam's largest e-commerce marketplaces. Give the Actor a keyword, a category URL, or a product URL and get structured records: current and original prices in VND, discounts, units sold, seller, official-store and TikiNow badges, specifications, warranty, and optional customer reviews.

No Tiki account or login is required. The Actor only reads publicly listed product information.

### Why this Actor

- Built specifically for **Tiki.vn** (not a generic SEA marketplace wrapper).
- Works from **search keywords**, **category pages** (`/c1789`) and **product URLs** (`…-p123456.html`).
- Returns Vietnam-specific fields: **VND prices**, sold counts, **TikiNow** delivery, authentic / official-store badges, and other sellers on the same product.
- Optional **reviews** with reviewer names, account IDs and avatars removed.
- HTTP API based (no headless browser), so runs are fast and platform usage stays low.
- Ready for automation, price monitoring, catalogs, and MCP / agent workflows via the Apify API.

### What you get

Each dataset item is one product, for example:

| Field | Description |
| --- | --- |
| `productId`, `sku`, `name`, `url` | Product identity and public URL |
| `price`, `originalPrice`, `discount`, `discountRate`, `currency` | Prices in VND |
| `quantitySold`, `ratingAverage`, `reviewCount` | Popularity and rating |
| `brandName`, `categoryName`, `breadcrumbs` | Brand and taxonomy |
| `sellerName`, `sellerId`, `sellerUrl`, `otherSellers` | Who is selling it |
| `isOfficialStore`, `isAuthentic`, `isTikiNow` | Marketplace badges |
| `specifications`, `warranty`, `images` | Detail fields (when enabled) |
| `reviews` | Optional public reviews, without personal identifiers |

### How to use

1. Open the Actor in Apify Console.
2. Enter at least one input:
   - **Search keywords** — e.g. `iphone 17`, `binh giu nhiet`
   - **Start URLs** — product, category, or search URLs from tiki.vn
   - **Product IDs** or **Category IDs**
3. Set **Maximum products**.
4. Optionally turn on **Fetch full product details** and **Include reviews**.
5. Click **Start** and export the dataset as JSON, CSV, or Excel.

#### Example input

```json
{
  "keywords": ["binh giu nhiet"],
  "maxItems": 50,
  "includeDetails": true,
  "includeReviews": false
}
```

#### Example product URL

```json
{
  "startUrls": [
    { "url": "https://tiki.vn/binh-giu-nhiet-locknlock-lhc4247-p123456.html" }
  ],
  "includeDetails": true,
  "includeReviews": true,
  "maxReviewsPerProduct": 10
}
```

#### Example category URL

```json
{
  "startUrls": [
    { "url": "https://tiki.vn/dien-thoai-may-tinh-bang/c1789" }
  ],
  "maxItems": 100
}
```

### Pricing (suggested)

Pay per event, charged only for useful output:

- **Product result:** $0.002 each — **$2.00 per 1,000 products** (Free plan tier). Volume discounts on higher Apify plans.
- **Actor start:** $0.005 per run.
- **Review add-on** (optional): $0.0005 per review — **$0.50 per 1,000 reviews**.

This is in line with other Southeast Asia marketplace Actors (Lazada often around $2–4 / 1k, cheaper Shopee listing Actors around $0.40–9 / 1k) while covering Tiki detail fields. Platform compute is usually low because the Actor does not launch a browser.

Final Store prices are set in Apify Console when the Actor is published.

### Output sample

```json
{
  "itemType": "product",
  "source": "tiki.vn",
  "productId": 278628812,
  "name": "Apple iPhone 17 Pro",
  "url": "https://tiki.vn/apple-iphone-17-pro-p278628812.html?spid=278630772",
  "brandName": "Apple",
  "categoryName": "Điện thoại Smartphone",
  "price": 30990000,
  "originalPrice": 30990000,
  "discountRate": 0,
  "currency": "VND",
  "quantitySold": 671,
  "ratingAverage": 5,
  "reviewCount": 30,
  "sellerName": "Tiki Trading",
  "isTikiNow": true,
  "inventoryStatus": "available"
}
```

### Limits and notes

- Only **public catalog data** is collected. Login-walled pages, carts, and personal accounts are not supported.
- Reviews omit reviewer names, user IDs and avatars.
- Tiki may cap or paginate some category listings. Use more specific categories or keywords if you need a tighter slice of the catalog.
- Be polite: the default delay is 250 ms between requests. Raise it if you see HTTP 429 responses.
- For large runs on the Apify platform, enable a proxy if Tiki starts blocking datacenter IPs.
- You are responsible for using the data in line with Tiki's terms and applicable law. This Actor is intended for public product research, price monitoring and analysis — not for collecting personal data.

### Integrations

Run on a schedule, call the Apify API, or connect the dataset to Make, n8n, Google Sheets, or an MCP client. Each run returns a standard Apify dataset that agents can page through as JSON.

### Development

```bash
npm install
## Local run (writes to ./storage)
npx apify run
## or
npm run start:dev
```

Requires Node.js 22 or later.

### Changelog

- **0.1** — First release: keyword search, category and product URLs, optional details and reviews, VND price fields, official-store / TikiNow badges.

# Actor input Schema

## `keywords` (type: `array`):

Tiki.vn search terms, for example "iphone 17" or "binh giu nhiet". Each keyword is scraped up to maxItems.

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

Public Tiki.vn URLs: product pages (…-p123.html), category pages (…/c1789), or search pages (tiki.vn/search?q=…).

## `productIds` (type: `array`):

Numeric Tiki product IDs (the number after -p in the URL).

## `categoryIds` (type: `array`):

Numeric Tiki category IDs (the number after /c in a category URL). Example: 1789 for Phones & Tablets.

## `maxItems` (type: `integer`):

Stop after this many unique products. Applies across all keywords, categories and URLs.

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

Request the product detail API for specifications, warranty, images, breadcrumbs and other sellers. Turn off for faster, cheaper listing-only results.

## `includeReviews` (type: `boolean`):

Attach public reviews to each product. Reviewer names, account IDs and avatars are not stored.

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

Only used when Include reviews is on.

## `sortReviewsBy` (type: `string`):

Sort order for reviews.

## `delayMs` (type: `integer`):

Polite delay between Tiki API calls. Increase this if you see rate limits.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy. Tiki often works without a proxy for modest volumes; use a proxy if you hit blocks at scale.

## Actor input object example

```json
{
  "keywords": [
    "binh giu nhiet"
  ],
  "startUrls": [
    {
      "url": "https://tiki.vn/search?q=binh%20giu%20nhiet"
    }
  ],
  "maxItems": 50,
  "includeDetails": true,
  "includeReviews": false,
  "maxReviewsPerProduct": 10,
  "sortReviewsBy": "score_desc",
  "delayMs": 250,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

# 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 = {
    "keywords": [
        "binh giu nhiet"
    ],
    "startUrls": [
        {
            "url": "https://tiki.vn/search?q=binh%20giu%20nhiet"
        }
    ],
    "maxItems": 50,
    "maxReviewsPerProduct": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("truongnat/tiki-vn-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 = {
    "keywords": ["binh giu nhiet"],
    "startUrls": [{ "url": "https://tiki.vn/search?q=binh%20giu%20nhiet" }],
    "maxItems": 50,
    "maxReviewsPerProduct": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("truongnat/tiki-vn-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 '{
  "keywords": [
    "binh giu nhiet"
  ],
  "startUrls": [
    {
      "url": "https://tiki.vn/search?q=binh%20giu%20nhiet"
    }
  ],
  "maxItems": 50,
  "maxReviewsPerProduct": 10
}' |
apify call truongnat/tiki-vn-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,truongnat/tiki-vn-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/m3focGQMYKrRgcLSi/builds/3Dzcegt9mJQOFP33U/openapi.json
