# Thuviennhadat.vn Vietnam Real Estate Scraper: Sale and Rent (`recordsdata/thuviennhadat-scraper`) Actor

Scrape thuviennhadat.vn, Vietnam's property portal: sale and rent listings with price, area, rooms, legal status, address and photos, plus new-build projects and listing counts by province. Filter by price, area, bedrooms and direction. Export JSON, CSV, Excel.

- **URL**: https://apify.com/recordsdata/thuviennhadat-scraper.md
- **Developed by:** [RecordsData](https://apify.com/recordsdata) (community)
- **Categories:** Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 96.2% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $22.00 / 1,000 listings

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

![RecordsData](https://api.apify.com/v2/key-value-stores/AAm3a1h3Z9nYfrvh9/records/banner?v=3)

## Thuviennhadat.vn Vietnam Real Estate Scraper: Sale and Rent Listings

> **Thuviennhadat.vn Vietnam Real Estate Scraper exports property data from Thư Viện Nhà Đất (thuviennhadat.vn), a Vietnamese property portal with about 151,800 listings for sale and 43,100 for rent on 2026-10-27. Each row has the price in dong, area, bedrooms, bathrooms, legal status, address down to the ward, photos and dates, and the actor also returns new-build projects and listing counts by province. Export JSON, CSV, Excel, XML or HTML. No login, no API key, no proxy.**

Thuviennhadat.vn publishes "bán nhà đất" (property for sale) and "cho thuê" (for rent) ads for all 63 provinces and cities of Vietnam, in 16 property categories from apartments and houses to land plots, boarding rooms and offices. This actor reads the same public pages a visitor sees, applies the site's own filters, opens every listing page and gives you clean, typed rows.

### What can you scrape from thuviennhadat.vn?

| Record type (`recordTypes`) | What one row is | Size on 2026-10-27 |
|---|---|---|
| `listings` | One sale or rent ad with price, area, rooms, legal status, address, photos, dates | 151,853 for sale and 43,163 for rent |
| `projects` | One new-build development with developer, status, scale, price per square meter, amenities | about 2,100 projects |
| `market-stats` | One search with the number of live listings that match, optionally split by price band | any province, district or category |

Every row has up to 56 typed fields. Fields a listing does not have are left out, never filled with null.

### Why use this actor?

- **The whole site is reachable.** Page 10,000 of 151,853 still returns listings.
- **Real filters, applied by the site.** If the site did not apply your filters, the run stops with a clear message.
- **Full detail on every listing,** from exact price to the complete photo list.
- **Market statistics in one row,** with price bands on request.
- **Plain HTTP requests, no browser.** 3 results take about 3 seconds.
- **Privacy first.** No phone numbers or emails, and private sellers are never named.

### How to scrape thuviennhadat.vn in four steps

1. Create a free account at https://console.apify.com and open the actor.
2. Choose what to collect, then add filters such as a province, a category and a price range.
3. Set the maximum number of results and click **Start**.
4. Download the dataset from the **Storage** tab as JSON, CSV or Excel.

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `recordTypes` | array | `["listings"]` | `listings`, `projects`, `market-stats` |
| `operation` | string | `sale` | Sale or rent (3 values) |
| `propertyTypes` | array | all | Property categories, 16 in total |
| `provinces`, `locations` | array | all | Province or city slug, then district or ward names inside it |
| `minPrice`, `maxPrice` | number | 0 | Price in million dong |
| `minArea`, `maxArea` | number | 0 | Area in square meters |
| `bedrooms`, `houseDirection`, `balconyDirection` | array | all | Room count and compass directions |
| `keyword`, `brokerOnly`, `postedWithinDays` | mixed | off | Text search, verified brokers, posting age |
| `startUrls`, `listingIds` | array | empty | Site addresses or listing numbers instead of filters |
| `fetchDetails` | boolean | true | Open every listing page for the full detail |
| `includePriceBands` | boolean | false | Price bands on market statistics |
| `maxItems`, `maxItemsPerSearch` | integer | none, 0 | Total cap, and a cap per search |
| `onlyNew`, `stateKey`, `resetSeen` | mixed | off | Monitor mode |
| `includeContactDetails` | boolean | false | Verified broker name and link |
| `maxRunSeconds` | integer | 1800 | Run time limit |

Example input, two- and three-bedroom apartments for sale in Cầu Giấy, Hà Nội, priced between 3 and 8 billion dong (prices are in million dong):

```json
{
  "recordTypes": ["listings"],
  "operation": "sale",
  "provinces": ["ha-noi"],
  "locations": ["Cầu Giấy"],
  "propertyTypes": ["can-ho-chung-cu"],
  "minPrice": 3000,
  "maxPrice": 8000,
  "bedrooms": ["2", "3"],
  "maxItems": 100
}
```

Other ways to start a run: paste thuviennhadat.vn addresses in `startUrls` or give listing ids in `listingIds`.

### What data do you get?

Every row has a `recordType`: `listing`, `project` or `market-stat`.

| Field | Description |
|---|---|
| `listingId`, `url`, `title`, `sourceSite`, `country` | Listing number, address, title, `thuviennhadat.vn` and `VN` |
| `operation`, `propertyType`, `propertyTypeVi` | `sale` or `rent`, English category (`apartment`, `house`, `villa-townhouse`, `street-front-house`, `land-for-housing`, `boarding-room`, `office` and more) and the Vietnamese category name |
| `price`, `currency`, `priceText`, `isPriceNegotiable`, `rentPeriod` | Price in whole dong (monthly for rentals), the text as shown, and a flag for "Thỏa thuận" (negotiable) listings, which carry no price |
| `pricePerM2`, `areaM2`, `bedrooms`, `bathrooms`, `legalStatus`, `furnishing` | Dong per square meter, area, rooms, legal papers (for example `Sổ đỏ / Sổ hồng`) and furnishing |
| `houseDirection`, `balconyDirection` | Compass direction in Vietnamese (`Đông Nam`, `Tây Bắc`) |
| `address`, `ward`, `district`, `province`, `fullAddress` | Street or project, ward, district, province and the full address line |
| `publishedAt`, `expiresAt`, `isExpired`, `postedLabel`, `postedDaysAgo` | ISO timestamps from the listing page, an expired flag, the posting label of the search card and whole days since posting |
| `listingTier`, `isVerifiedBroker`, `agentName`, `agentUrl` | Ad tier, verified broker flag, broker profile only with **Include broker profile** |
| `projectName`, `projectUrl` | The new-build project the listing belongs to |
| `imageCount`, `thumbnailUrl`, `images`, `description`, `features` | Photos, the seller text without contact lines, and every labelled row of the listing page |
| `projectId`, `projectStatus`, `developer`, `scale`, `scaleHa`, `pricePerM2Min`, `pricePerM2Max`, `amenities` | Project rows: status such as `Đang mở bán`, developer, size and the price per square meter range |
| `placeName`, `placeSlug`, `totalListings`, `priceBands` | Market-stat rows: the place, the live listing count and the optional count per price band |
| `scrapedAt` | When the row was read |

In a sample of 101 listings, price was present in 96 percent, legal status 95, bedrooms 84 and bathrooms 80. Project name (20), balcony direction (14) and house direction (10) are rarer because many listings do not state them.

#### Sample output

A real `listing` row from a cloud run (description and photo list shortened):

```json
{
  "recordType": "listing",
  "listingId": "225853",
  "url": "https://thuviennhadat.vn/ban-can-ho-chung-cu-phuong-mo-lao-pj-seasons-avenue/ban-can-ho-seasons-avenue-2pn-s4-80m-ban-cong-dong-nam-cuc-thoang-gia-hon-6-ty-pst225853.html",
  "sourceSite": "thuviennhadat.vn",
  "country": "VN",
  "operation": "sale",
  "propertyType": "apartment",
  "propertyTypeVi": "Căn hộ chung cư",
  "title": "Bán căn hộ Seasons Avenue, 2PN S4 80m² ban công Đông Nam cực thoáng giá hơn 6 tỷ",
  "price": 6000000000,
  "currency": "VND",
  "priceText": "6 tỷ",
  "isPriceNegotiable": false,
  "pricePerM2": 71430000,
  "areaM2": 84,
  "bedrooms": 2,
  "bathrooms": 2,
  "legalStatus": "Sổ đỏ / Sổ hồng",
  "balconyDirection": "Đông Nam",
  "furnishing": "Đầy đủ",
  "address": "Seasons Avenue",
  "ward": "Phường Mộ Lao",
  "district": "Hà Đông",
  "province": "Hà Nội",
  "fullAddress": "Seasons Avenue, Phường Mộ Lao, Quận Hà Đông, Hà Nội",
  "publishedAt": "2026-10-27T04:48:00.000Z",
  "expiresAt": "2026-11-03T04:48:00.000Z",
  "isExpired": false,
  "postedLabel": "Đăng hôm nay",
  "postedDaysAgo": 0,
  "listingTier": "standard",
  "isVerifiedBroker": false,
  "projectName": "Seasons Avenue",
  "projectUrl": "https://thuviennhadat.vn/du-an-bat-dong-san/seasons-avenue-1363.html",
  "imageCount": 6,
  "thumbnailUrl": "https://cdn.thuviennhadat.vn/Upload/images/post-image/20261027/2610271148376113-110405-efddb9d828833ff7b9e9.jpg",
  "images": ["https://cdn.thuviennhadat.vn/Upload/images/post-image/20261027/2610271148376113-110405-efddb9d828833ff7b9e9.jpg"],
  "description": "Bán căn hộ Seasons Avenue, 2PN S4 80m² ban công Đông Nam cực thoáng giá hơn 6 tỷ ...",
  "features": {
    "Mức giá": "6 tỷ",
    "Diện tích": "84 m²",
    "Số phòng ngủ": "2 phòng",
    "Pháp lý": "Sổ đỏ / Sổ hồng",
    "Nội thất": "Đầy đủ"
  },
  "scrapedAt": "2026-10-27T05:03:09.208Z"
}
```

A `market-stat` row with the price bands switched on, for rentals in Hồ Chí Minh City on the same day:

```json
{
  "recordType": "market-stat",
  "url": "https://thuviennhadat.vn/cho-thue-nha-dat-thanh-pho-ho-chi-minh",
  "operation": "rent",
  "propertyType": "all",
  "province": "Hồ Chí Minh",
  "placeSlug": "thanh-pho-ho-chi-minh",
  "totalListings": 27214,
  "priceBands": [
    { "label": "under 1 million", "minPriceVnd": 0, "maxPriceVnd": 1000000, "listings": 165 },
    { "label": "3-5 million", "minPriceVnd": 3000000, "maxPriceVnd": 5000000, "listings": 6594 }
  ]
}
```

### How much does the Thuviennhadat.vn Scraper cost?

Pay per event, no monthly fee. Rates are in USD per result on the Free tier. Four events exist:

| Event | Charged for | Rate per result | Per 1,000 |
|---|---|---|---|
| `listing-record` | One listing taken from the search list, no listing page read | $0.022 | $22.00 |
| `listing-detail-record` | One listing with its own page read (**Fetch full listing details** on) | $0.022 | $22.00 |
| `project-record` | One new-build project | $0.044 | $44.00 |
| `market-stat-record` | One market statistics row | $0.044 | $44.00 |

Worked examples: 1,000 listings cost $22.00, 1,000 projects cost $44.00, and 100 market statistics rows cost $4.40. Error rows, empty searches and rows skipped by monitor mode are charged $0.

### Monitor new listings

Switch on **Only new rows (monitor mode)** and the actor remembers every listing and project it delivered, in a named key-value store called `thuviennhadat-seen` in your own Apify account. A scheduled run of the same search then returns only unseen rows, and rows skipped by the monitor are never charged. Use **State key** to keep two monitors apart, and **Reset seen list** to start again.

For a fixed time window, **Posted within (days)** keeps only listings from the last N days.

### How does it compare with other Vietnamese property scrapers? (read on 2026-10-29)

No other actor on the Apify Store covers thuviennhadat.vn. The nearest Vietnamese property actors read other portals.

| | This actor | abotapi/batdongsan-com-vn-scraper | rainminer/alonhadat-scraper |
|---|---|---|---|
| Source | thuviennhadat.vn | batdongsan.com.vn | alonhadat.com.vn |
| Published fields | 56 data fields | 69 | 17 |
| Record types | Listings, projects, market statistics | Listings | Listings |
| Price bands and listing counts | Yes, one row per search | Not stated | Not stated |
| Monitor mode | Built in, charged only for new rows | Change tracking fields | Not stated |
| Runs and users in 30 days | New actor | 697 runs, 7 users | 83 runs, 1 user |

The batdongsan.com.vn actor publishes more fields, including coordinates and agent phone numbers; this actor does not return coordinates and never returns phone numbers. Choose this actor when you need thuviennhadat.vn data, project rows or listing counts.

### Is it legal to scrape thuviennhadat.vn? Limits and responsible use

The actor reads publicly visible pages without a login, without solving captchas and without bypassing any protection, at about four requests per second. The robots.txt of thuviennhadat.vn allows crawling. Names, phone numbers and emails of private sellers are never output. Check the site terms before republishing commercially, and follow the data protection law that applies to you.

Limits:

- Listings with "Thỏa thuận" (negotiable) have no price. Those rows carry `isPriceNegotiable: true`.
- The site keeps some listings visible after their expiry date. They come back with `isExpired: true`, so you can filter them out.
- Free Apify plans are limited to 10 results per run.

### Use with AI agents (MCP)

Connect the Apify MCP server to Claude, Cursor or another MCP client and this actor appears as a tool: `https://mcp.apify.com?tools=RecordsData/thuviennhadat-scraper`.

Example prompt: "Find the 20 newest apartments for sale in Cầu Giấy, Hà Nội, between 3 and 8 billion dong, and list price, area, bedrooms and legal status." The agent fills the same input fields shown above and analyzes the rows.

### Run it from code

Call the actor with the `apify-client` package for JavaScript or Python, or from Make, Zapier or n8n, using the input fields above, and schedule it from the Apify Console.

### Frequently Asked Questions

#### What does the Thuviennhadat.vn Scraper return?

Listings for sale and for rent, new-build projects and listing counts, all from thuviennhadat.vn. A listing row has the price in dong, area, rooms, legal status, address, photos, dates and every labelled row of the listing page. Choose the record types with `recordTypes`; the default is `listings`.

#### Do I need a proxy, a login or an API key?

No. The actor sends plain requests to the public pages of thuviennhadat.vn and needs no proxy, browser or account on that site. You only need an Apify account to start runs, and the free plan returns up to 10 results per run.

#### How many listings can I get in one run?

The site sets no practical limit: page 10,000 of 151,853 sale listings still returns results. Set `maxItems` to what you need. **Max items per search** keeps one large search from using the whole budget.

#### How do I search one district, ward or price range?

Pick one province, then add district or ward names in `locations`, for example `Cầu Giấy`, `Quận 1` or `Phường Dịch Vọng`. Prices are entered in million dong, so 3000 is 3 billion. Areas are in square meters. A name the site does not know ends the run with one free error row that says so, instead of returning the whole country.

#### How is the price stored?

As a whole number in Vietnamese dong in `price`, with the site text in `priceText`. Rentals are monthly. Listings marked "Thỏa thuận" have no price and `isPriceNegotiable: true`. `pricePerM2` is dong per square meter as the page states it, or price divided by area.

#### Does it return phone numbers and seller names?

No phone numbers or emails, ever, and private sellers are never named. For verified professional brokers, the public profile name and link are returned only when you switch on **Include broker profile (name and link)**. Contact lines are also removed from the listing descriptions before they reach the dataset.

#### What are market statistics?

One row per search with `totalListings`, the number of live listings that match a place and category, for example 9,214 apartments for sale in Hà Nội on 2026-10-27. With **Add price bands to market statistics** the row also counts the listings in each site price band (14 for sale and 9 for rent). It costs one extra request per band.

#### Can I read one listing or one project?

Yes. Paste listing or project addresses in `startUrls`, or listing ids in `listingIds`. A removed listing returns one free error row that says so, and the other addresses of the same run are still processed, so one dead link does not stop a batch.

#### Can I get only the newest listings?

Yes, in two ways. **Posted within (days)** reads the posting label of each search card and stops as soon as the cards are older. **Only new rows (monitor mode)** returns only rows an earlier run of the same search has not delivered, so a scheduled daily run returns just the new ones.

#### What happens when the search finds nothing or the input is wrong?

A valid search with no hits ends as succeeded with an empty dataset. A wrong value, such as an unknown district, a rent-only category asked for sale or a minimum price above the maximum, ends as succeeded with one free error row that explains the problem. Nothing is charged for error rows, empty searches or rows skipped by the monitor.

#### How much does a run cost?

The actor is billed per result, with no monthly fee. On the Free tier a listing costs $0.022, so 1,000 listings cost $22.00. A project or a market statistics row costs $0.044, so 1,000 of them cost $44.00. Error rows, empty searches and rows skipped by monitor mode cost nothing. The Pricing tab shows the live rates.

### Support

Questions, a missing field or a feature request: contact.punkrecordsdata@gmail.com.

This actor is an independent tool and is not affiliated with thuviennhadat.vn. It reads only publicly available data.

Last updated: 2026-10-29

# Actor input Schema

## `recordTypes` (type: `array`):

Listings = one row per sale or rent ad. Projects = one row per new-build development. Market statistics = one row per search with counts. Default: Listings.

## `operation` (type: `string`):

Properties for sale, for rent, or both (both runs every search twice). Rows say which one in the operation field.

## `provinces` (type: `array`):

One search per province or city. Example: Ha Noi, Ho Chi Minh. Empty = all of Vietnam.

## `locations` (type: `array`):

District or ward names inside the ONE province chosen above. Examples: Cầu Giấy, Quận 1, Phường Dịch Vọng. An unknown or ambiguous name stops the run with a clear message.

## `propertyTypes` (type: `array`):

Categories to search. Empty = all. Land is sale only; boarding rooms, offices and shops are rent only.

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

Free text matched against the listing text. Examples: mặt tiền, view hồ. Empty = none.

## `minPrice` (type: `number`):

Lowest price in million VND (1000 = 1 billion). For rent it is the monthly rent. 0 = no limit.

## `maxPrice` (type: `number`):

Highest price in million VND (5000 = 5 billion). For rent it is the monthly rent. 0 = no limit.

## `minArea` (type: `number`):

Smallest living or plot area in whole square meters. 0 = no limit.

## `maxArea` (type: `number`):

Largest area in whole square meters. 0 = no limit.

## `bedrooms` (type: `array`):

Bedroom counts to search (one search each). Empty = any.

## `houseDirection` (type: `array`):

Direction the house or apartment faces (one search each). Empty = any.

## `balconyDirection` (type: `array`):

Direction the balcony faces (one search each). Empty = any.

## `brokerOnly` (type: `boolean`):

Only listings posted by verified professional brokers.

## `postedWithinDays` (type: `integer`):

Only listings posted in the last N days. Example: 7. 0 = any age.

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

Pages to read: a listing, a project, a project list or a search page. Example: https://thuviennhadat.vn/ban-can-ho-chung-cu-quan-cau-giay. When set, the search filters above are not used.

## `listingIds` (type: `array`):

The number after pst at the end of a listing URL. Example: 225837. Each is fetched directly with full detail.

## `fetchDetails` (type: `boolean`):

Adds full description, all photos, exact price, price per m², ward, legal status, furnishing, directions, dates and project name. Costs one request per listing. Off = faster and cheaper, search-card fields only.

## `includeContactDetails` (type: `boolean`):

Adds the public profile name and link of verified brokers. Private sellers are never named; phone numbers and emails are never returned.

## `includePriceBands` (type: `boolean`):

Counts listings in each site price band (14 for sale, 9 for rent). Costs one extra request per band for every statistics row.

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

Maximum rows in total. Example: 100. Free plan: 10 rows (preview). Paid plans: up to 1,000,000.

## `maxItemsPerSearch` (type: `integer`):

Stops one big search (for example one province) from using the whole Max rows budget when several searches run.

## `maxRunSeconds` (type: `integer`):

Stop after this many seconds and return what was gathered, so a very wide search never runs unbounded.

## `onlyNew` (type: `boolean`):

Skip listings or projects this same search already returned. You are not charged for skipped rows. Max rows then counts new rows. Market statistics are always returned.

## `stateKey` (type: `string`):

Label to separate monitors with identical searches (for example one per client). Empty = use only the search filters.

## `resetSeen` (type: `boolean`):

Forget what earlier runs returned and start the monitor again.

## Actor input object example

```json
{
  "recordTypes": [
    "listings"
  ],
  "operation": "sale",
  "provinces": [],
  "locations": [],
  "propertyTypes": [],
  "keyword": "",
  "minPrice": 0,
  "maxPrice": 0,
  "minArea": 0,
  "maxArea": 0,
  "bedrooms": [],
  "houseDirection": [],
  "balconyDirection": [],
  "brokerOnly": false,
  "postedWithinDays": 0,
  "startUrls": [],
  "listingIds": [],
  "fetchDetails": true,
  "includeContactDetails": false,
  "includePriceBands": false,
  "maxItems": 10,
  "maxItemsPerSearch": 0,
  "maxRunSeconds": 1800,
  "onlyNew": false,
  "stateKey": "",
  "resetSeen": false
}
```

# Actor output Schema

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

Key fields per row

## `fullData` (type: `string`):

Complete dataset with all fields

# 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 = {
    "recordTypes": [
        "listings"
    ],
    "operation": "sale",
    "locations": [],
    "startUrls": [],
    "listingIds": [],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("recordsdata/thuviennhadat-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 = {
    "recordTypes": ["listings"],
    "operation": "sale",
    "locations": [],
    "startUrls": [],
    "listingIds": [],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("recordsdata/thuviennhadat-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 '{
  "recordTypes": [
    "listings"
  ],
  "operation": "sale",
  "locations": [],
  "startUrls": [],
  "listingIds": [],
  "maxItems": 10
}' |
apify call recordsdata/thuviennhadat-scraper --silent --output-dataset

```

## MCP server setup

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