# Chotot.com Scraper — Vietnam Classifieds & Property (`muhammadafzal/chotot-com-scraper`) Actor

Scrape permitted public Chotot.com, NhaTot.com, and Xe.Chotot.com search pages and return structured Vietnam classifieds, property, vehicle, price, location, seller, image, and attribute records for research and inventory workflows.

- **URL**: https://apify.com/muhammadafzal/chotot-com-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** Real estate, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 listing returneds

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Chotot.com Scraper — Vietnam Classifieds & Property

Scrape public Chotot-family search pages and return structured Vietnam classifieds, real-estate, vehicle, electronics, and other marketplace listings for research, inventory monitoring, and lead discovery workflows. Use only URLs and data you are permitted to collect under Chợ Tốt terms and applicable law.

### What it extracts

One dataset item represents one public listing:

| Field | Description |
| --- | --- |
| `listingId`, `listingUrl` | Public ID and canonical detail URL |
| `title`, `description` | Listing headline and public body text |
| `priceAmount`, `priceText`, `currency` | Numeric and human-readable asking price; currency is normally VND |
| `category`, `attributes` | Category and flat public fields such as area, model, condition, or bedrooms |
| `location`, `latitude`, `longitude` | Public location data when exposed |
| `sellerName`, `sellerType` | Public seller label or business/private classification |
| `postedAt`, `imageUrls` | Public timing and image URLs |
| `sourceSearchUrl`, `scrapedAt` | Provenance and extraction timestamp |

### Input

Provide public search-result URLs from `chotot.com`, `nhatot.com`, or `xe.chotot.com`. The default is a small iPhone search canary:

```json
{
  "startUrls": [{"url": "https://www.chotot.com/mua-ban?q=iphone"}],
  "maxResults": 25,
  "maxPages": 1,
  "enrichDetails": false,
  "proxyCountry": "VN"
}
```

`maxResults` accepts 1–500 across all URLs. `maxPages` accepts 1–20 per URL. Set `enrichDetails` to `true` when public detail-page fetching is useful; it adds requests and is off by default. Search pages can be category pages such as `https://www.nhatot.com/mua-ban-nha-dat` or keyword searches such as `https://www.chotot.com/mua-ban?q=iphone`.

### Pricing

| Event | Price |
| --- | ---: |
| Actor start | $0.00005 per run |
| Listing returned | $0.003 per valid dataset record |

For example, a run returning 25 listings costs approximately $0.076 in listing events including the start event, before any platform proxy or compute charges that may apply. The Actor charges after successfully writing each validated listing. It stops when the Apify event charge limit is reached.

### Reliability and limitations

The Actor uses the public server-rendered page payload delivered by Chợ Tốt and does not require login credentials, seller phone numbers, or private sessions. It uses bounded concurrency and pagination. A protection page is reported as `blocked` with zero fabricated records; a valid search with no records is reported as `empty`. Run-level warnings and counts are stored in `RUN_SUMMARY`.

The target may change page payloads, URL formats, categories, or access policies. Public fields can be unavailable or null. Relative dates such as `20 giờ trước` are preserved as displayed rather than converted to an invented timestamp. This Actor does not bypass CAPTCHAs, authentication, paywalls, or other access controls.

### Data-use note

Collect only public data for a lawful purpose and in accordance with Chợ Tốt, NhaTot, and Xe Chợ Tốt terms, robots guidance, privacy obligations, and applicable Vietnamese or other law. Do not use the Actor to obtain restricted contact information, spam sellers, discriminate in housing or employment, or evade platform controls.

### Use cases

- Compare listings, locations, availability, and market signals for property research.
- Build public prospect lists and qualify organizations or professionals before responsible outreach.
- Run a one-off research job and export the structured result as JSON, CSV, Excel, XML, or RSS from Apify.
- Schedule the same input to monitor changes over time and send completed datasets to a webhook or integration.
- Feed schema-shaped records into a database, spreadsheet, BI tool, or AI workflow with the source URL retained for verification.

### Output example

```json
{
  "listingId": "134300372",
  "title": "Nhà phố Quận 1",
  "description": "Nhà đẹp, vị trí trung tâm.",
  "priceAmount": 2500000000,
  "priceText": "2,5 tỷ",
  "currency": "VND",
  "category": "Nhà đất",
  "location": "Phường Bến Nghé, Quận 1, TP Hồ Chí Minh",
  "latitude": 10.7769,
  "longitude": 106.7009,
  "sellerName": "Người bán",
  "sellerType": "business"
}
```

The exact fields depend on the selected input and what the public source exposes. Use the dataset schema as the machine-readable contract and retain source URLs for verification.

### Run Chotot.com Scraper — Vietnam Classifieds & Property with the Apify API

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('muhammadafzal/chotot-com-scraper').call({
  "startUrls": [
    "https://www.chotot.com/mua-ban?q=iphone"
  ],
  "maxResults": 5,
  "maxPages": 1,
  "enrichDetails": false,
  "proxyCountry": "VN"
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

You can also run the Actor from Apify Console, schedules, webhooks, the REST API, Make, Zapier, n8n, or the hosted Apify MCP server.

### Support

When reporting a problem, include the **Actor run ID**, a redacted input, the expected result, and a small public example URL when applicable. Do not post API tokens, cookies, credentials, or personal data in an issue.

# Actor input Schema

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

Use this when you have Chotot.com, Nhatot.com, or Xe.Chotot.com public search-result URLs. Pass full HTTPS URLs such as https://www.chotot.com/mua-ban?q=iphone. Defaults to an iPhone search and is not for private seller pages.

## `maxResults` (type: `integer`):

Use this to cap total listing records returned and billed across all URLs. Accepts 1–500; defaults to 50. For a quick canary, use 5.

## `maxPages` (type: `integer`):

Use this to follow Chotot search pagination. Set 1 for the first page or up to 20 for more pages; defaults to 1. This does not create new searches.

## `enrichDetails` (type: `boolean`):

Use this when you need detail-page fields beyond the search payload. It adds one public detail request per listing and may be slower; defaults to false.

## `proxyCountry` (type: `string`):

Use this to request a two-letter proxy country for geo-sensitive Vietnamese results, for example VN. Leave blank for the default Apify proxy route; this is not an access-control bypass.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.chotot.com/mua-ban?q=iphone"
  ],
  "maxResults": 5,
  "maxPages": 1,
  "enrichDetails": false,
  "proxyCountry": "VN"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

## `consoleRun` (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 = {
    "startUrls": [
        "https://www.chotot.com/mua-ban?q=iphone"
    ],
    "maxResults": 5,
    "maxPages": 1,
    "enrichDetails": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/chotot-com-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 = {
    "startUrls": ["https://www.chotot.com/mua-ban?q=iphone"],
    "maxResults": 5,
    "maxPages": 1,
    "enrichDetails": False,
}

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/chotot-com-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 '{
  "startUrls": [
    "https://www.chotot.com/mua-ban?q=iphone"
  ],
  "maxResults": 5,
  "maxPages": 1,
  "enrichDetails": false
}' |
apify call muhammadafzal/chotot-com-scraper --silent --output-dataset

```

## MCP server setup

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