# 🇻🇳 Batdongsan Vietnam Scraper | Hanoi & HCMC Homes (`misterkhan/batdongsan-vietnam-scraper`) Actor

Extract property listings from Batdongsan Vietnam (batdongsan.com.vn) across Ho Chi Minh City, Hanoi & Da Nang from $0.65/1k results — prices in VND, bedrooms, bathrooms, floor area, addresses, coordinates, photos & agent details.

- **URL**: https://apify.com/misterkhan/batdongsan-vietnam-scraper.md
- **Developed by:** [Khan](https://apify.com/misterkhan) (community)
- **Categories:** Real estate, AI, Automation
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.65 / 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.
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

### What does Batdongsan Vietnam Scraper do?

**Batdongsan Vietnam Scraper** is an Apify Actor that extracts residential and commercial property listings from **Batdongsan Vietnam (batdongsan.com.vn)** across Ho Chi Minh City, Hanoi, Da Nang, Binh Duong, Dong Nai, and Nha Trang—capturing asking prices in Vietnamese Dong (VND), bedrooms, bathrooms, floor area in m², full addresses, property images, and listing URLs.

Built for Vietnamese real estate analysts, ASEAN PropTech valuation platforms, foreign direct investment (FDI) property funds, and brokerage intelligence teams, this scraper processes batdongsan.com.vn search result URLs (nha-dat-ban, nha-dat-cho-thue) and individual property pages and exports clean, structured records in JSON, CSV, or Excel with zero manual proxy configuration.

***

> 🛡️ **Zero Proxy Configuration Required:** Anti-blocking and regional routing are **handled automatically out of the box** — just paste your target URLs and click **Start**.

### What data can you extract with Batdongsan Vietnam Scraper?

**💰 Price & Currency** — numeric `price` (485000), formatted `price_formatted` (VND 485,000), and `currency` (VND) <br>
**🏢 Listing Identity & Portal** — unique listing `id`, `portal` (batdongsan.com.vn), `country` (Vietnam), and property `title` <br>
**🛏️ Unit Specs & Floor Area** — `bedrooms`, `bathrooms`, and floor `area` (132 m²) <br>
**📍 Location & Address** — ward, district, and city/province `address` across Ho Chi Minh City (Thu Duc, District 1, District 7), Hanoi, and Da Nang <br>
**🖼️ Media & Direct Links** — high-resolution property images array, canonical listing `url`, and ISO-8601 `scraped_at` timestamp <br>

***

### Why scrape Batdongsan Vietnam property listings?

**💪 Track Vietnam Apartment, Shophouse & Land Prices** — monitor asking prices in VND across Ho Chi Minh City, Hanoi, Da Nang, and emerging industrial-corridor provinces <br>
**🕵️ Benchmark Developer Projects & Secondary Market Liquidity** — compare resale apartments (ban-can-ho-chung-cu), townhouses (ban-nha-rieng), and villas (ban-nha-biet-thu-lien-ke) <br>
**✨ Automated Multi-Page Search Extraction** — pass any filtered batdongsan.com.vn search URL and collect structured listing telemetry without manual copy-pasting <br>
**👍 Zero Vietnamese Proxy Configuration** — country-targeted routing and anti-blocking are handled automatically on the backend <br>
**📩 Real-Time Streaming to Apify Dataset** — every listing streams immediately to your dataset for live export to Google Sheets, BigQuery, Make, or n8n <br>

***

### How do I use Batdongsan Vietnam Scraper?

1. Open **Batdongsan Vietnam Scraper** in Apify Console.
2. Paste one or more batdongsan.com.vn search or listing URLs into **Start URLs** (`startUrls`).
3. Set **Max Results** (`maxItems`) to specify the maximum number of Vietnamese property listings to collect.
4. Click **Start** and watch structured VND property records stream into the dataset log in real time.
5. Download your dataset in **JSON, CSV, Excel (.xlsx), or HTML table** format from the **Output** or **Dataset** tab.

***

### Input

Batdongsan Vietnam Scraper accepts a JSON configuration object. Click on the [Input tab](https://apify.com/misterkhan/batdongsan-vietnam-scraper/input-schema) for the interactive visual form.

```json
{
  "startUrls": [
    {
      "url": "https://batdongsan.com.vn/nha-dat-ban"
    }
  ],
  "maxItems": 40
}
```

**📍 `location`** — search city or region in Vietnam (e.g. `Hanoi`). Optional when `startUrls` is provided <br>
**🇻🇳 Start URLs (`startUrls`)** — one or more batdongsan.com.vn search result URLs (nha-dat-ban for sale, nha-dat-cho-thue for rent, or district-filtered searches) or individual property listing URLs <br>
**🔢 Max Results (`maxItems`)** — maximum number of property listings to collect per run (default: 40) <br>

***

### Output sample

Results are packed into a structured dataset where each record represents a single Vietnamese property listing. Below is an excerpt of the JSON output:

```json
[
  {
    "id": "prop-948271",
    "portal": "batdongsan.com.vn",
    "country": "Vietnam",
    "currency": "VND",
    "title": "Modern 3-Bedroom Residence in Ho Chi Minh City",
    "price": 485000,
    "price_formatted": "VND 485,000",
    "bedrooms": 3,
    "bathrooms": 2,
    "area": "132 m²",
    "address": "Ho Chi Minh City, Vietnam",
    "url": "https://batdongsan.com.vn/nha-dat-ban",
    "images": [
      "https://batdongsan.com.vn/images/listing-948271-1.jpg"
    ],
    "scraped_at": "2026-10-16T00:00:00Z"
  }
]
```

***

### How much does it cost to scrape Batdongsan Vietnam?

This Actor uses **Pay-Per-Event (Pay-Per-Result)** pricing with a **`$0.00` Actor start fee**. You only pay for Vietnamese property listings delivered to your dataset, and the `128 MB` runtime keeps platform compute costs near zero:

**🆓 Free Plan** — `$5.00 / 1,000 results` ($0.0050 per result, up to 40 results per run) <br>
**🥉 Starter Plan (Bronze)** — `$1.35 / 1,000 results` ($0.00135 per result, unlimited results) <br>
**🥈 Scale Plan (Silver)** — `$0.95 / 1,000 results` ($0.00095 per result, unlimited results) <br>
**🥇 Business+ Plan (Gold / Platinum / Diamond)** — `$0.65 / 1,000 results` ($0.00065 per result, unlimited results) <br>

***

> 💡 **Predictable, All-Inclusive Pay-Per-Event Pricing:** There is a **`$0.00` run start fee** and **no separate proxy configuration required**. You only pay the flat per-result rate above for data successfully delivered to your dataset — works out of the box on both **Free** and **Paid** Apify plans.

### How many listings can you scrape with Batdongsan Vietnam Scraper?

Batdongsan Vietnam Scraper supports city-level, district-level, and project-level real estate harvesting across Vietnam:

- **Province & District Filtered URLs:** Apply filters on batdongsan.com.vn (TP.HCM, Ha Noi, Da Nang, property category, area in m², or VND budget) and paste the resulting URLs into `startUrls`.
- **Multi-District Batching:** Pass multiple district or master-planned project search URLs in a single run to capture comprehensive Vietnamese property datasets.
- **Exact Budget Caps:** Use `maxItems` to cap each run at the exact number of listings required for your valuation workflow.

***

### Want to scrape other European & Global Real Estate Portals?

Combine this Actor with our other published European and global property scrapers:

🇪🇸 **[Idealista Property Scraper](https://apify.com/misterkhan/idealista-scraper)** — extract Spanish residential and commercial property listings, EUR prices, m², and rooms (From $0.75 / 1K) <br>
🇫🇷 **[PAP.fr France FSBO Property Scraper](https://apify.com/misterkhan/pap-fr-particuliers-scraper)** — scrape direct private-owner (Particulier à Particulier) property sales and rentals across France (From $0.75 / 1K) <br>
🇫🇷 **[MeilleursAgents France Property Scraper](https://apify.com/misterkhan/meilleursagents-france-scraper)** — scrape French property listings and price-per-m² valuation benchmarks (From $0.75 / 1K) <br>
🇫🇷 **[BellesDemeures Luxury Property Scraper](https://apify.com/misterkhan/bellesdemeures-luxury-scraper)** — extract high-end European villas, châteaux, alpine chalets, and luxury estates (From $0.75 / 1K) <br>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

### Integrations and Batdongsan Vietnam Scraper

Batdongsan Vietnam Scraper connects with any cloud data pipeline or BI tool through [Apify integrations](https://docs.apify.com/platform/integrations):

- **No-Code Automation:** Trigger runs and route Vietnamese property listings via **Make, Zapier, n8n, or Pipedream**.
- **Spreadsheets & Warehouses:** Sync VND property inventory directly into **Google Sheets, Airtable, BigQuery, Snowflake, or PostgreSQL**.
- **Webhooks:** Configure run-completion webhooks to alert your investment team when new listings appear in Ho Chi Minh City or Hanoi.

***

### Using Batdongsan Vietnam Scraper with the Apify API

The Apify API gives you programmatic access to launch runs, monitor execution status, and stream dataset items in JSON, CSV, or Excel format.

- **Node.js:** Install the `apify-client` NPM package to call `misterkhan/batdongsan-vietnam-scraper`.
- **Python:** Install the `apify-client` PyPI package to pull Vietnamese real estate datasets directly into pandas or analytics pipelines.
- **AI Agents & MCP:** Connect this Actor to Claude, Cursor, or custom AI agents via the **Apify MCP Server** (`https://mcp.apify.com`).

Check out the [Apify API reference docs](https://docs.apify.com/api/v2) or click on the [API tab](https://apify.com/misterkhan/batdongsan-vietnam-scraper/api) for ready-to-run code snippets.

***

### Frequently asked questions about Batdongsan Vietnam Scraper

**🛡️ Do I need to configure Vietnamese proxies? <br>**
**No — everything works out of the box with zero setup.** Regional routing, session management, and anti-blocking are handled automatically so you do not need to configure custom proxy settings.

**🏙️ Can I scrape both properties for sale (nha-dat-ban) and properties for rent (nha-dat-cho-thue)? <br>**
Yes. Paste any nha-dat-ban or nha-dat-cho-thue search URL—filtered by province, district, project, or VND price bracket—into `startUrls`.

**🇸🇬 Which Actor should I use for Singapore, Malaysia, or Thailand PropertyGuru portals? <br>**
This Actor is dedicated exclusively to batdongsan.com.vn (Vietnam). For neighboring ASEAN PropertyGuru Group portals, use **Singapore PropertyGuru Scraper**, **PropertyGuru Malaysia Scraper**, and **DDproperty Thailand Scraper**.

***

### Is it legal to scrape Batdongsan Vietnam data?

Our scrapers are ethical and only extract publicly available property listing information displayed on batdongsan.com.vn. They do not access private user accounts or password-protected pages. Always ensure your use of extracted data complies with applicable Vietnamese data protection regulations and international privacy laws. Read Apify's [blog post on the legality of web scraping](https://blog.apify.com/is-web-scraping-legal/) to learn more.

***

### Your feedback

We keep this Actor under active maintenance. If a run finishes successfully but returns fewer results than you expected, hangs, or errors — please **open an Issue before posting a public review** so we can diagnose and fix it for you.

**🛠️ How to report** — Use the Actor’s [Issues tab](https://apify.com/misterkhan/batdongsan-vietnam-scraper/issues/open) in Apify Console. Include the run ID, your input JSON, and what you expected vs. what you got. <br>
**⏱️ Response time** — We aim to reply within 24 hours on business days. <br>
**⭐ Reviews** — Happy with the results? A short positive review helps other users find a reliable scraper. Ran into a problem? Open an Issue first — we’ll work with you to resolve it before you leave a rating. <br>

# Actor input Schema

## `location` (type: `string`):

City, region, or municipality in Vietnam (e.g. 'Hanoi'). Optional when startUrls is provided.

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

Paste one or more Batdongsan Vietnam (batdongsan.com.vn) search or listing URLs (e.g., `https://batdongsan.com.vn/nha-dat-ban`).

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

Maximum number of property listings to collect (Free plan runs collect up to 40 results per run; paid plans support unlimited results).

## Actor input object example

```json
{
  "location": "Hanoi",
  "startUrls": [
    {
      "url": "https://batdongsan.com.vn/nha-dat-ban"
    }
  ],
  "maxItems": 20
}
```

# Actor output Schema

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

All extracted property listings from Batdongsan Vietnam (batdongsan.com.vn).

## `usage_summary` (type: `string`):

Execution telemetry and extraction summary stored in the default key-value store.

# 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 = {
    "location": "Hanoi",
    "startUrls": [
        {
            "url": "https://batdongsan.com.vn/nha-dat-ban"
        }
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("misterkhan/batdongsan-vietnam-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 = {
    "location": "Hanoi",
    "startUrls": [{ "url": "https://batdongsan.com.vn/nha-dat-ban" }],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("misterkhan/batdongsan-vietnam-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 '{
  "location": "Hanoi",
  "startUrls": [
    {
      "url": "https://batdongsan.com.vn/nha-dat-ban"
    }
  ],
  "maxItems": 20
}' |
apify call misterkhan/batdongsan-vietnam-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,misterkhan/batdongsan-vietnam-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/06sODikaPrYA3Whcx/builds/axlycMIjWvI3NOhOP/openapi.json
