# Chotot Scraper – Vietnam Classifieds (Chợ Tốt) (`realletoangt/chotot-scraper`) Actor

Scrape Chotot.com (Chợ Tốt) classified ads in Vietnam: phones, motorbikes, cars, real estate, electronics. Get title, price, location, seller name, posting time, images and attributes by keyword, category, region and price range. Fast JSON API, no browser.

- **URL**: https://apify.com/realletoangt/chotot-scraper.md
- **Developed by:** [Toàn](https://apify.com/realletoangt) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Chotot Scraper: Vietnam Classifieds Listings, Prices & Sellers (Chợ Tốt)

> **Unofficial tool.** Not affiliated with, endorsed by, or sponsored by Chotot. The name is used only to describe compatibility.

Collect public classified ads from **Chotot.com (Chợ Tốt)**, Vietnam's largest marketplace for used phones, motorbikes, cars, real estate, electronics and more. Search by keyword, category, region or price range, or paste individual ad URLs. Export to Excel, CSV or JSON, or call the API. No Chotot login or browser needed — it uses the public JSON API, so runs stay fast and cheap.

**Built for** Vietnam market researchers, used-vehicle dealers, real-estate monitors, resale price trackers and anyone building datasets from Chợ Tốt.

### What you get

- 🏷️ **Listing basics:** title, price (VND), price string, category, condition.
- 📍 **Location:** region (e.g. TP Hồ Chí Minh, Hà Nội), district/area, ward, optional lat/long.
- 👤 **Seller:** display name, private vs business, shop verification flag.
- 🕒 **Timing:** posted timestamp and relative age.
- 🖼️ **Media:** image count, main image URL; with details on, full image list.
- 🔧 **Attributes:** brand, model, year, km, area m² and other category-specific fields (when details are enabled).
- 🔗 **URL:** stable `https://www.chotot.com/<listId>.htm` link for each ad.

Phone numbers are **not** collected.

### Use cases

- **Used-vehicle price indices:** track Honda Vision, Toyota Vios and other models by city and year.
- **Real-estate monitoring:** watch căn hộ / nhà đất listings in selected districts.
- **Resale research:** compare iPhone, laptop and electronics asking prices over time.
- **Dealer lead lists:** export recent private or business ads in your category and region.
- **Market sizing:** count supply per province, category and price band.

### Quick start

1. Add **search keywords** (e.g. `honda vision`, `iphone 15`) and/or **ad URLs**.
2. Optionally set **category ID**, **region ID**, and **price min/max** (VND).
3. Set **Max items** and turn on **Include details** if you need full attributes and image galleries.
4. Click **Start**, then export from the **Output** tab (use the **Overview** view for a compact table).

### Input example

```json
{
  "keywords": ["honda vision"],
  "categoryId": 2020,
  "regionId": 13000,
  "priceMax": 30000000,
  "maxItemsPerSource": 60,
  "includeDetails": true,
  "sort": "newest"
}
```

| Field | What it does |
|---|---|
| `keywords` | Search terms (Vietnamese or English) |
| `startUrls` | Individual ad URLs ending in `<id>.htm` |
| `categoryId` | e.g. 5010 phones, 2020 motorbikes, 2010 cars, 1010 apartments |
| `regionId` | e.g. 13000 TP HCM, 12000 Hà Nội |
| `priceMin` / `priceMax` | Filter by asking price (VND) |
| `sort` | `newest`, `price_asc`, or `price_desc` |
| `maxItemsPerSource` | Cap per keyword or URL source (default 50) |
| `includeDetails` | Fetch full attributes and all images per ad |

Category and region IDs match the filters in Chotot's own URLs.

### Output example

```json
{
  "type": "listing",
  "listId": 134565349,
  "title": "Honda Vision 2023 Đen",
  "price": 25500000,
  "priceString": "25.500.000 đ",
  "categoryName": "Xe máy",
  "regionName": "Tp Hồ Chí Minh",
  "areaName": "Quận Tân Phú",
  "sellerName": "Tuanduy",
  "sellerType": "private",
  "postedAt": "2026-10-14T03:44:20.158Z",
  "url": "https://www.chotot.com/134565349.htm",
  "attributes": {
    "Hãng xe": "Honda",
    "Dòng xe": "Vision",
    "Năm sản xuất": "2023",
    "Số Km đã đi": "10"
  }
}
```

### Pricing

Pay per result: you are charged for each listing written to the dataset. See the **Pricing** tab for the current rate. Failed sources do not invent fake rows.

### Notes & FAQ

- **Unofficial / public data only.** You are responsible for using the data in line with Chotot's terms and applicable law.
- **No phone numbers.** Seller contact phones are deliberately omitted.
- **Proxy:** optional Apify Proxy or custom proxies if you run large volumes.
- **Speed:** JSON API, no headless browser — typical runs finish in seconds to a few minutes depending on `maxItemsPerSource` and `includeDetails`.

# Actor input Schema

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

Search terms, e.g. "iphone 15", "honda vision".

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

Individual Chotot ad URLs ending in <id>.htm.

## `categoryId` (type: `integer`):

Chotot category id (e.g. 5010 = Điện thoại, 2010 = Ô tô, 2020 = Xe máy, 1010 = Căn hộ/Chung cư). Optional.

## `regionId` (type: `integer`):

Chotot region id (e.g. 13000 = TP Hồ Chí Minh, 12000 = Hà Nội). Optional.

## `priceMin` (type: `integer`):

Optional minimum price.

## `priceMax` (type: `integer`):

Optional maximum price.

## `sort` (type: `string`):

Order of results.

## `maxItemsPerSource` (type: `integer`):

Maximum listings per keyword (or per filter-only search).

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

Extra request per ad: all images and structured attributes (brand, model, mileage, area…).

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

Usually not needed. Apify Proxy (requires Apify account) or your own proxyUrls.

## Actor input object example

```json
{
  "keywords": [
    "iphone 15"
  ],
  "sort": "newest",
  "maxItemsPerSource": 50,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

All classified listing items in the dataset.

## `overview` (type: `string`):

Dataset in the overview table view (title, price, location, seller, URL).

# 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": [
        "iphone 15"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("realletoangt/chotot-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": ["iphone 15"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("realletoangt/chotot-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": [
    "iphone 15"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call realletoangt/chotot-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,realletoangt/chotot-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/rixZJAihvIbRUYoKh/builds/SmBRKdyieq5ttyK3v/openapi.json
