# Rakuya Taiwan Scraper (`rainminer/rakuya-tw-scraper`) Actor

Extract for-sale and rental property listings from Rakuya (樂屋網) Taiwan search pages — prices in TWD, addresses, layouts, ping size, floor info, and listing images. Export structured JSON or CSV for Taiwan real-estate market research.

- **URL**: https://apify.com/rainminer/rakuya-tw-scraper.md
- **Developed by:** [rainminer](https://apify.com/rainminer) (community)
- **Categories:** E-commerce, Real estate, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.37 / 1,000 listing scrapeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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?

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

## Rakuya Taiwan Scraper

Extract for-sale and rental property listings from [Rakuya](https://www.rakuya.com.tw/) (樂屋網) — a popular Taiwan property portal for homes, apartments, and commercial listings.

![Rakuya Taiwan](https://www.rakuya.com.tw/favicon.ico)

### What does Rakuya Taiwan Scraper do?

The **Rakuya Taiwan Scraper** crawls Rakuya buy and rent search results and exports structured data for every listing card on the page. Prices in TWD, addresses, layouts, ping size, floor info, and thumbnail images are parsed directly from the search results.

For each listing the Actor collects:

| Field | Description |
| --- | --- |
| id | Rakuya listing ID (ehid) |
| title | Listing headline |
| price / priceText | Monthly rent or sale price in TWD |
| currency | TWD |
| address | Street or area address |
| city | Detected Taiwan city |
| propertyType | Property category (e.g. 整層住家) |
| layout | Room layout (e.g. 2房1廳1衛) |
| sizePing | Size in ping (坪) |
| floor | Floor information |
| imageUrl | Listing thumbnail |
| url | Rakuya detail page URL |
| searchUrl | Source search URL |

### How to use

1. Open the Actor in [Apify Console](https://console.apify.com/).
2. Paste one or more **Rakuya Taiwan search URLs** into **Start URLs**.
3. Set **Maximum items** to control how many listings to collect per URL.
4. Enable **Proxy configuration** with **residential TW** proxies (required for reliable access).
5. Click **Start**. Results appear in the **Dataset** tab.

#### Example start URLs

```
https://www.rakuya.com.tw/sell/sell_search?search=city&city=0&page=1
https://www.rakuya.com.tw/sell/list
https://www.rakuya.com.tw/rent/rent_search?search=city&city=15&page=1
https://www.rakuya.com.tw/rent/list
```

City codes (`city` query parameter): `0` = Taipei, `2` = New Taipei, `8` = Taichung, `14` = Tainan, `15` = Kaohsiung.

#### Pagination

The Actor increments the `page` query parameter until it reaches **maxItems** or no new listings are found.

### Output example

```json
{
  "id": "1234567",
  "title": "信義區電梯兩房",
  "price": 25000,
  "currency": "TWD",
  "priceText": "25,000元",
  "address": "台北市信義區...",
  "city": "台北市",
  "propertyType": "整層住家",
  "layout": "2房1廳1衛",
  "sizePing": 33.8,
  "floor": "5F/12F",
  "imageUrl": "https://www.rakuya.com.tw/...",
  "url": "https://www.rakuya.com.tw/sell/house/...",
  "searchUrl": "https://www.rakuya.com.tw/sell/sell_search?search=city&city=0&page=1"
}
```

### Integrations

Export to JSON, CSV, Excel, or connect via [Apify API](https://docs.apify.com/api/v2) and webhooks.

### Image Credit

Image credit: [rakuya.com.tw](https://www.rakuya.com.tw/)

# Actor input Schema

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

Rakuya Taiwan search URLs (e.g. https://www.rakuya.com.tw/sell/sell\_search?search=city\&city=0 or /sell/list).

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

Maximum number of property listings to return per start URL.

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

Residential Taiwan proxies are required for reliable Rakuya access.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.rakuya.com.tw/sell/sell_search?search=city&city=0&page=1"
    }
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "TW"
  }
}
```

# Actor output Schema

## `overview` (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": [
        {
            "url": "https://www.rakuya.com.tw/sell/sell_search?search=city&city=0&page=1"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "TW"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rainminer/rakuya-tw-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": [{ "url": "https://www.rakuya.com.tw/sell/sell_search?search=city&city=0&page=1" }],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "TW",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("rainminer/rakuya-tw-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": [
    {
      "url": "https://www.rakuya.com.tw/sell/sell_search?search=city&city=0&page=1"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "TW"
  }
}' |
apify call rainminer/rakuya-tw-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rainminer/rakuya-tw-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/u4eUbfCYBBxdKVnv1/builds/gmzW2eOOvIGKZdSsG/openapi.json
