# Vietnam Real Estate Scraper: Chợ Tốt, Nhà Tốt & Batdongsan (`jaclfruit_296/vn-realestate-actor`) Actor

Scrape Nhà Tốt, Chợ Tốt and Batdongsan.com.vn listings: price in VND, area, price per m², bedrooms, district and date. CSV, Excel or JSON.

- **URL**: https://apify.com/jaclfruit_296/vn-realestate-actor.md
- **Developed by:** [Huy Tran](https://apify.com/jaclfruit_296) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 listing (chợ tốt / nhà tốt)s

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Vietnam Real Estate Scraper: Chợ Tốt, Nhà Tốt & Batdongsan

💰 $1 per 1,000 listings from Nhà Tốt and Chợ Tốt, $4 per 1,000 from Batdongsan. Pay only for listings saved. A typical run of 100 Nhà Tốt listings costs about $0.10 in listing fees, plus a few cents of Apify platform usage. No subscription, no API key.

Scrape property and classified listings from **Nhà Tốt**, **Chợ Tốt** and **Batdongsan.com.vn**, Vietnam's
largest property and classifieds sites. Get price in VND, area, **price per m²**, bedrooms, district, city,
posting date and photo for every listing, in one table.

### What you get

| Field | Example |
|---|---|
| `title` | Căn hộ 2 phòng ngủ Quận 7 |
| `sourceLabel` | Nhà Tốt / Chợ Tốt / Batdongsan |
| `price`, `priceText` | 3500000000, "3,5 tỷ" |
| `areaM2`, `pricePerM2` | 70, 50000000 |
| `bedrooms`, `bathrooms` | 2, 2 |
| `category` | Căn hộ/Chung cư (Nhà Tốt), Bán / Cho thuê (Batdongsan) |
| `city`, `district`, `ward`, `address` | Tp Hồ Chí Minh, Quận 7, Phường Tân Phong |
| `sellerType` | Private / Professional (Nhà Tốt, Chợ Tốt) |
| `postedAt` | 2026-10-26 |
| `imageUrl`, `imageCount` | Main photo and number of photos |
| `latitude`, `longitude` | When the listing has them (Nhà Tốt, Chợ Tốt) |
| `description` | Optional, up to 3,000 characters |
| `url`, `listingId` | Link and ID |

Prices are converted to numbers in VND ("3,2 tỷ" → 3200000000, "26 triệu/tháng" → 26000000), so you can
sort, filter and chart them right away. Export as **CSV, Excel, JSON** or use the API.

### Use cases

- **Price per m² by district**: compare apartments in Quận 7, Thủ Đức or Cầu Giấy.
- **Market tracking**: run weekly to follow asking prices and new supply.
- **Investment research**: find listings below the district median price per m².
- **Proptech and data products**: feed listings into dashboards, valuation models or newsletters.
- **Classifieds beyond property**: cars (Xe cộ) and electronics (Đồ điện tử) on Chợ Tốt.

### How to use it

**Chợ Tốt / Nhà Tốt (fast, recommended to start)**

1. Choose a **category**, for example *Căn hộ / Chung cư*, and a **region** (HCMC, Hanoi or nationwide).
2. Optionally add a **keyword** such as `vinhomes`.

**Batdongsan**

1. Open batdongsan.com.vn and set your filters (city, type, price, area).
2. Copy the result page URL and paste it into **Batdongsan search URLs**.
3. Add **Batdongsan** to Sources.

#### Example input

```json
{
  "sources": ["chotot", "batdongsan"],
  "chototCategory": "1010",
  "chototRegion": "13000",
  "batdongsanUrls": [{"url": "https://batdongsan.com.vn/ban-can-ho-chung-cu-tp-hcm"}],
  "maxItemsPerSource": 200
}
```

### How it works

- **Nhà Tốt and Chợ Tốt** are read through the public JSON data that powers the websites. Fast and cheap.
- **Batdongsan** shows listings with JavaScript and protects them with Cloudflare, so the scraper opens a real
  browser through Vietnamese residential proxies. It is slower and costs more per listing.

### Pricing

Pay per result, plus Apify platform usage:

- Nhà Tốt / Chợ Tốt listings: low price per listing.
- Batdongsan listings: higher price per listing, because each one needs a browser page and residential proxy traffic.

Set a maximum cost per run in the run options and the scraper stops when it is reached.

### Privacy

The scraper does **not** collect seller or agent names, phone numbers or emails. It saves listing data only.
You are responsible for using the data in line with the websites' terms and the laws that apply to you,
including Vietnam's personal data protection rules.

### Tips

- Start with Nhà Tốt: it returns hundreds of listings in seconds.
- If Batdongsan pages fail, lower **Parallel browser pages** to 1–2.
- `pricePerM2` is empty when a listing has no price ("Thỏa thuận") or no area.

### Related

- Vietnam Jobs Scraper: TopCV and ITviec jobs and salaries (same author)
- [App Idea Validator](https://apify.com/jaclfruit_296/app-idea-validator-actor)
- [App Review Analyzer](https://apify.com/jaclfruit_296/audience-radar-actor)

Found a problem? Open an issue on the **Issues** tab with your run link.

# Actor input Schema

## `sources` (type: `array`):

Chợ Tốt / Nhà Tốt is fast and cheap. Batdongsan uses a real browser, so it is slower.

## `chototCategory` (type: `string`):

Real-estate categories come from Nhà Tốt, the others from Chợ Tốt.

## `chototRegion` (type: `string`):

City or province.

## `keyword` (type: `string`):

Search words, for example "vinhomes" or "quận 7".

## `batdongsanUrls` (type: `array`):

Open batdongsan.com.vn, set your filters (city, price, area), then paste the result page URL. Default: homes for sale in Ho Chi Minh City.

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

How many listings to save from each source.

## `includeDescription` (type: `boolean`):

Adds the seller's description text (up to 3,000 characters).

## `maxConcurrency` (type: `integer`):

Lower it if many Batdongsan pages fail.

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

Batdongsan blocks data-center IPs. Vietnamese residential proxies are recommended.

## Actor input object example

```json
{
  "sources": [
    "chotot"
  ],
  "chototCategory": "1000",
  "chototRegion": "13000",
  "batdongsanUrls": [
    {
      "url": "https://batdongsan.com.vn/nha-dat-ban-tp-hcm"
    }
  ],
  "maxItemsPerSource": 20,
  "includeDescription": false,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "VN"
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

One row per listing: price, area, price per m², bedrooms, location, date, photo and link.

## `summary` (type: `string`):

Listings saved per source and any source errors.

# 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 = {
    "sources": [
        "chotot"
    ],
    "batdongsanUrls": [
        {
            "url": "https://batdongsan.com.vn/nha-dat-ban-tp-hcm"
        }
    ],
    "maxItemsPerSource": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "VN"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("jaclfruit_296/vn-realestate-actor").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 = {
    "sources": ["chotot"],
    "batdongsanUrls": [{ "url": "https://batdongsan.com.vn/nha-dat-ban-tp-hcm" }],
    "maxItemsPerSource": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "VN",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("jaclfruit_296/vn-realestate-actor").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 '{
  "sources": [
    "chotot"
  ],
  "batdongsanUrls": [
    {
      "url": "https://batdongsan.com.vn/nha-dat-ban-tp-hcm"
    }
  ],
  "maxItemsPerSource": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "VN"
  }
}' |
apify call jaclfruit_296/vn-realestate-actor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jaclfruit_296/vn-realestate-actor"
        }
    }
}
```

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/JsxPTneuxmKcBOwXb/builds/DIkgDvF2ABnlCNlyT/openapi.json
