# 591.com.tw Property Listings Scraper (`bovi/591-scraper`) Actor

Collect 591 rental, sale, land, and commercial listings. Get structured dataset records. Run with an HTTPS list URL, maxResults, and optional Apify Proxy; hosts: rent.591.com.tw, sale.591.com.tw, land.591.com.tw, business.591.com.tw. Pricing: $0.0015 per dataset item.

- **URL**: https://apify.com/bovi/591-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 591.com.tw property listings scrapers

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

## 591.com.tw Property Listings Scraper

Extract public rental, resale, land, and commercial property listings from 591.com.tw into Apify dataset records with listing details, pricing, location, and image URLs. Each run writes up to `maxResults` records and scans at most 100 pages.

- Compare rental and resale listings using price, area, location, and property type; rent, land and commercial records also carry update text.
- Build a property inventory with listing IDs, sections, tags, transit details, and image URLs.
- Start from a filtered 591 list URL and cap the dataset with `maxResults`.
- No login or sign-in is required.

### What you get

The Actor writes one dataset item for each listing.

| Field | Type | Description | Availability |
|---|---|---|---|
| `id` | string | Listing ID | Required |
| `section` | string | Property section, such as rent, sale, land, or commercial | Required |
| `url` | string | Listing URL | Required |
| `title` | string | Listing title | Required |
| `price_twd` | integer | Parsed price in TWD | Where available |
| `price_text` | string | Displayed price text | Where available |
| `price_unit` | string | Price unit shown by the listing | Where available |
| `additional_fee_twd` | integer | Additional monthly fee in TWD | Where available |
| `property_type` | string | Property type | Where available |
| `room` | string | Room layout | Where available |
| `area_ping` | number | Area in ping | Where available |
| `floor` | string | Floor information | Where available |
| `region_name` | string | City or county | Where available |
| `section_name` | string | District | Where available |
| `address` | string | Address or street name | Where available |
| `location` | string | Combined location text | Where available |
| `nearby_transit` | string | Nearby transit information | Where available |
| `updated_text` | string | Last-updated text shown on the listing | Where available |
| `tags` | array of strings | Listing tags | Where available |
| `image_url` | string | Image URL | Where available |

Fields that are not published for a listing are omitted. Contact names and phone numbers are not collected.

### Sample output

```json
{
  "id": "22166171",
  "section": "rent",
  "title": "社會住宅*免服務費可租補*全新整理*會再買新冰箱*歡迎洽詢",
  "url": "https://rent.591.com.tw/22166171",
  "price_twd": 12000,
  "price_text": "12,000 元/月 (額外費用 600元/月)",
  "price_unit": "元/月",
  "area_ping": 5.3,
  "property_type": "獨立套房",
  "location": "中山區-新生北路二段",
  "section_name": "中山區",
  "address": "新生北路二段",
  "nearby_transit": "距中山里(民生) 140公尺",
  "floor": "11F/12F",
  "updated_text": "17小時內更新",
  "additional_fee_twd": 600,
  "tags": ["近捷運", "新上架", "免服務費", "社會住宅", "租金補貼", "可報稅"],
  "image_url": "https://img1.591.com.tw/house/2026/10/20/179247157347891700.jpg!510x400.jpg"
}
```

### Pricing

The billing model is pay per event. `apify-default-dataset-item` charges one event for each scraped result with all fields, and `apify-actor-start` charges when the Actor starts; its event count depends on memory, with one event per GB and a minimum of one event.

You pay only for the events listed below. This Actor does not use the Pay per event + usage option, so the platform usage of your runs (compute, proxy traffic and storage) is not billed to you separately.

| Charge event | Condition | Free-plan price |
|---|---|---:|
| `apify-actor-start` | Charged when the Actor starts. One event per GB of run memory, with a minimum of one event. | $0.00005 per event |
| `apify-default-dataset-item` | One scraped result with all fields | $0.0015 per event |

The figures below use the Free-plan price and assume one start event (1 GB of memory or less).

Worked example at the Free-plan price: **10 results = $0.01505**, consisting of one `apify-actor-start` event at **$0.00005** and 10 `apify-default-dataset-item` events at **$0.0015** each.

At the Free-plan price, **1,000 results = $1.50005** and **10,000 results = $15.00005**.

The Apify Free plan includes **$5 of monthly platform usage credit**, which covers **3,333 results** at the Free-plan price.

### How to use

1. **Open** a rental, sale, land, or commercial search on 591.com.tw.
2. **Apply** the filters you want to use on 591.
3. **Copy** the resulting HTTPS list URL, not a property detail URL.
4. **Set** `maxResults` and optionally adjust `proxyConfiguration`.
5. **Run** the Actor with the list URL as `startUrl`.
6. **Inspect** the default dataset for listing records and the fields published by each section.
7. **Repeat** the run through Apify Schedules, using daily as a starting point for listing collection.

```json
{
  "startUrl": "https://rent.591.com.tw/list?region=1&page=1",
  "maxResults": 50
}
```

Export the dataset as JSON or CSV, or read it through the Apify dataset API.

### Input parameters

| Parameter | What it does | Default |
|---|---|---|
| `startUrl` | HTTPS 591 list URL for rent, sale, land, or commercial properties. Apply filters on 591 before copying the URL. | `https://rent.591.com.tw/list?region=1&page=1` |
| `maxResults` | Maximum number of listing records to write. | `50` |
| `proxyConfiguration` | Apify Proxy settings. If you omit `proxyConfiguration`, the Actor uses a direct connection. | Apify Proxy enabled with the `RESIDENTIAL` group |

Supported list hosts are `rent.591.com.tw`, `sale.591.com.tw`, `land.591.com.tw`, and `business.591.com.tw`. The URL must use HTTPS and point to a list page. For sale, use the https://sale.591.com.tw/ address with shType=list in the query.

### Limits and edge cases

| Condition | What you see | What to do |
|---|---|---|
| `startUrl` is not an HTTPS supported list URL, or it is a detail page | The Actor logs an error and returns without collecting records. | Paste a supported 591 list-page URL and confirm that it uses HTTPS. |
| `maxResults` is zero or negative | The Actor returns before fetching pages, so no records are written. | Use an integer of at least `1`. |
| The requested number of results is reached | The Actor stops after writing up to `maxResults` records. | Increase `maxResults` for a larger dataset. |
| A run scans 100 pages from the starting page | The Actor does not request pages beyond that 100-page run limit. | Apply narrower 591 filters or run again from a more relevant list URL. |
| A page request fails after three attempts | A warning is logged and the Actor stops requesting later pages. Records already pushed before the failure remain in the dataset. | Check the list URL and try a different Apify Proxy configuration before rerunning. |
| A fetched page contains no records, or fewer than 30 parsed records | The Actor logs a warning for an empty page, or stops after a page with fewer than 30 records. Records already collected remain available. | Check the filters and list URL, then rerun if more records are expected. |
| The same listing ID appears more than once while paging | Duplicate IDs are skipped. | No action is required unless the source list itself needs different filters. |
| A listing section does not publish a field | That field is omitted from the record. | Handle optional fields when processing the dataset. |

### FAQ

#### How much does it cost to scrape 591.com.tw property listings?

See the Pricing section for the per-event Free-plan prices and worked totals.

#### Why is my dataset empty?

Check that `startUrl` is an HTTPS list URL on a supported 591 host and is not a detail page. Also confirm that `maxResults` is at least `1` and that the applied 591 filters return listings. An invalid URL stops before collection, while a page with no records stops further paging.

#### What happens if a 591 page does not load?

The Actor tries a page up to three times. If it still cannot load, try a different Apify Proxy configuration before rerunning.

#### Does the Actor collect contact names or phone numbers?

No. The output does not collect contact names or phone numbers. It collects listing fields such as the ID, title, URL, price where available, location, tags, and image URL where published.

#### Is it legal to use public data from 591.com.tw?

The Actor extracts public listing data from 591.com.tw. Whether a particular use is allowed depends on the source terms and applicable law for your use case; review those requirements before using the data. This Actor does not provide a legal guarantee.

# Actor input Schema

## `startUrl` (type: `string`):

A public list URL for rent, sale, land, or commercial listings on 591.com.tw. Apply filters on the site before copying the URL.

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

Maximum number of listing records to collect.

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

Optional Apify Proxy settings. With useApifyProxy set to false, requests use the direct connection.

## Actor input object example

```json
{
  "startUrl": "https://rent.591.com.tw/list?region=1&page=1",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset with the scraped records.

# 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 = {
    "startUrl": "https://rent.591.com.tw/list?region=1&page=1",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/591-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 = {
    "startUrl": "https://rent.591.com.tw/list?region=1&page=1",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/591-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 '{
  "startUrl": "https://rent.591.com.tw/list?region=1&page=1",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/591-scraper --silent --output-dataset

```

## MCP server setup

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