# DDProperty Scraper | Fast & Reliable (`codingfrontend/ddproperty-scraper`) Actor

Extract publicly visible DDProperty Thailand property listings and listing metadata.

- **URL**: https://apify.com/codingfrontend/ddproperty-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 93.1% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

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?

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 this Actor do?

The **DDProperty scraper** collects public property listing details from [DDProperty Thailand](https://www.ddproperty.com/). Give it sale or rental search pages, or individual public listing pages, and it saves validated property records to the run dataset.

You can use the results to compare listings, research property markets, or build a property dataset for your own analysis. The Actor only reads public pages. It does not sign in, solve CAPTCHAs, or bypass access controls; if a page is blocked or unavailable, it records that in the run log.

### Get started

1. Open the Actor's **Input** tab. Enter one or more DDProperty search or listing URLs, or leave **Start URLs** blank to use the Thailand sale search.
2. Choose the listing and page limits. Turn off descriptions if you only need the shorter listing fields.
3. Click **Start** and wait for the run to finish.
4. Open **Results** to view or download the property dataset. Open **Output summary** to see the saved-record count and whether a failure limited collection.

### Input

All input fields are optional. If `startUrls` is omitted, the Actor uses its default Thailand sale search. When you provide `startUrls`, include at least one public DDProperty HTTPS search or listing URL. Exact duplicate URLs are removed.

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `startUrls` | Array of URL strings | Optional | Thailand sale search URL | DDProperty sale or rental search pages, or individual listing pages. Enter up to 20 URLs. An empty array is not valid. |
| `maxItems` | Integer | Optional | `10`; minimum `1`, maximum `100` | Maximum number of distinct property records saved across the run. Listings with the same property ID are deduplicated. |
| `maxPages` | Integer | Optional | `3`; minimum `1`, maximum `10` | Maximum search and listing-detail pages requested across all start URLs, including automatic enrichment. This is one shared limit for the run, not a separate allowance for each URL. Robots-policy requests do not use this page allowance. |
| `includeDescription` | Boolean | Optional | `true` | Include complete listing descriptions (including available languages), agent biographies, and project descriptions. Set to `false` to omit all these description fields; other details are still collected. |

#### Simple search

This uses the default Thailand sale search and saves up to five listings:

```json
{
  "maxItems": 5
}
```

#### Multiple searches and pagination

You can combine sale and rental searches. The duplicate sale URL below is removed. `maxPages` applies to all of these URLs together:

```json
{
  "startUrls": [
    "https://www.ddproperty.com/en/property-for-sale/p/property-for-sale-in-thailand",
    "https://www.ddproperty.com/en/property-for-rent/p/property-for-rent-in-thailand",
    "https://www.ddproperty.com/en/property-for-sale/p/property-for-sale-in-thailand"
  ],
  "maxItems": 20,
  "maxPages": 6
}
```

#### Start from a listing page and omit descriptions

```json
{
  "startUrls": [
    "https://www.ddproperty.com/en/property/the-address-siam-for-sale-500072168"
  ],
  "maxItems": 1,
  "includeDescription": false
}
```

### Advanced settings (Developer Options)

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `timeoutSecs` | Integer | Optional | `45`; minimum `5`, maximum `180` | Maximum wait for each page request, in seconds. |
| `maxResponseBytes` | Integer | Optional | `5000000`; minimum `100000`, maximum `10000000` | Maximum HTML response size accepted for each page. |
| `proxyConfiguration` | Object | Optional | No Actor proxy selected | Standard Apify Proxy settings or custom HTTP/HTTPS proxy URLs. Explicit settings take precedence over a hosting environment's configured HTTPS proxy. Otherwise requests use that environment route, or direct HTTPS when no route is configured. |

The optional `proxyConfiguration` object accepts these settings:

| Setting | Type | Default and bounds | What it does |
| --- | --- | --- | --- |
| `useApifyProxy` | Boolean | `false` unless enabled | Use Apify Proxy. Set this to `true` to apply Apify Proxy group or country settings. |
| `apifyProxyGroups` | Array of non-empty strings | No actor-defined item limit | Select Apify Proxy groups. Use with `useApifyProxy: true`. |
| `apifyProxyCountry` | Two-letter uppercase country code | No country selected by this Actor | Set the Apify Proxy country, for example `TH`. Use with `useApifyProxy: true`. |
| `proxyUrls` | Array of HTTP or HTTPS URL strings | Up to `10` URLs | Use custom proxy endpoints instead of Apify Proxy. Do not combine non-empty `proxyUrls` with `useApifyProxy: true`. Proxy URLs may contain credentials; keep them private and out of shared examples. |

For example, this enables Apify Proxy without adding credentials to the input:

```json
{
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

Search URLs must use HTTPS on `ddproperty.com` or `www.ddproperty.com` and match a supported sale or rent search path. Listing URLs must be public DDProperty listing paths. The Actor does not have separate filters or sorting controls; it follows the pages you provide and their supported next-page links or published search pagination routes. When the page budget allows, it visits each distinct search result’s listing page before saving that record. Detail requests use the same `maxPages` allowance as search pages. Once that allowance is used, remaining search results can still be saved with their available base fields. No duplicate record is added for enrichment. If a search page contains fewer listings than the remaining result limit, one page of budget is reserved for its next search page so enrichment does not prevent pagination.

For predictable detail coverage, use individual listing URLs, or allow at least one search page plus one detail page per desired result. For example, `maxItems: 2` with `maxPages: 3` allows a search and two detail requests. The Actor combines visible sections, structured listing data, and the listing’s embedded business sections: complete unit amenities, native area units, price-per-area values, listing dates, public location coordinates, agent biographies, agency details, and associated project information. It keeps project photographs separate from the property gallery. It does not request linked agent or project pages automatically. Unavailable values and empty lists are omitted; source-published zero and false values are preserved.

### Output

The dataset contains property records only. Required fields are `propertyId`, `title`, and `url`; other values are included only when the page provides them. Scraper status, scrape timestamps, request information, and failure details are kept out of property records. Published listing dates belong to the property and are included separately in `listingDates`.

The following complete example is **illustrative** documentation data, not a verified live listing. It shows every supported field and the nested business structures. Optional sections will vary between properties; a real listing need not publish every field shown here.

```json
{
  "propertyId": "12345",
  "title": "Example furnished house",
  "url": "https://www.ddproperty.com/en/property/example-house-for-rent-12345",
  "listingType": "rent",
  "price": 50000,
  "currency": "THB",
  "location": "Bangkok, TH",
  "address": "456 Example Road",
  "bedrooms": 2,
  "bathrooms": 2,
  "areaSqm": 80,
  "propertyType": "Single Detached House",
  "tenure": "Freehold",
  "yearBuilt": 2022,
  "description": "A furnished home with two bedrooms.\n\nClose to local shops.",
  "agent": "Example Property Agent",
  "images": [
    "https://th1-cdn.pgimgs.com/listing/12345/UPHO.555.V800/example.jpg"
  ],
  "priceText": "฿50,000 /mo",
  "areaText": "80 sqm",
  "agentUrl": "https://www.ddproperty.com/en/agent/example-agent-987",
  "roomCount": 3,
  "floorSize": {
    "@type": "QuantitativeValue",
    "name": "Floor area",
    "value": 80,
    "unitCode": "MTK",
    "unitText": "sqm",
    "minValue": 80,
    "maxValue": 80
  },
  "addressDetails": {
    "@type": "PostalAddress",
    "streetAddress": "456 Example Road",
    "addressLocality": "Example District",
    "addressRegion": "Bangkok",
    "addressCountry": "TH",
    "postalCode": "10400",
    "postOfficeBoxNumber": "Example box 10"
  },
  "descriptions": [
    {
      "locale": "en",
      "text": "A furnished home with two bedrooms.\n\nClose to local shops."
    }
  ],
  "pricing": {
    "min": 50000,
    "max": 50000,
    "currency": "THB",
    "formatted": "฿50,000 /mo",
    "type": {
      "code": "BAH",
      "text": "Baht"
    },
    "perArea": {
      "land": [
        {
          "uom": "sqm",
          "min": 347.22,
          "max": 347.22,
          "text": "฿347.22 / sqm"
        }
      ],
      "floor": [
        {
          "uom": "sqm",
          "min": 625,
          "max": 625,
          "text": "฿625 / sqm"
        }
      ]
    }
  },
  "listingDates": {
    "timezone": "UTC+08:00",
    "firstPosted": {
      "date": "2026-01-01 12:00:00",
      "timestamp": 1767240000
    },
    "lastPosted": {
      "date": "2026-01-02 12:00:00",
      "timestamp": 1767326400
    },
    "expiry": {
      "date": "2026-02-01 12:00:00",
      "timestamp": 1769918400
    },
    "contentUpdated": {
      "date": "2026-01-01 11:55:00",
      "timestamp": 1767239700
    }
  },
  "coordinates": {
    "latitude": 13.752162,
    "longitude": 100.534294
  },
  "locationDetails": {
    "formatted": "456 Example Road, Example District, Bangkok",
    "street": "Example Road",
    "streetNumber": "456",
    "floor": "2",
    "postalCode": "10400",
    "administrativeLevels": [
      {
        "level": 300,
        "levelName": "province",
        "id": "TH10",
        "value": "Bangkok"
      }
    ]
  },
  "unitDetails": {
    "furnishing": {
      "code": "FULL",
      "description": "Fully Furnished"
    },
    "floorLevel": {
      "code": "HIGH",
      "description": "High Floor"
    },
    "rentalType": {
      "code": "ENT",
      "description": "Entire Unit"
    },
    "parkingSpots": 2,
    "isAvailableNow": true,
    "tenancy": {
      "value": "UNTENANTED"
    },
    "dimensions": {
      "land": [
        {
          "uom": "sqm",
          "formatted": "144 sqm",
          "value": {
            "value": 144
          }
        },
        {
          "uom": "thai",
          "formatted": "36 sqw",
          "value": {
            "rai": 0,
            "ngan": 0,
            "waSquared": 36
          }
        }
      ],
      "floor": [
        {
          "uom": "sqm",
          "formatted": "80 sqm",
          "value": 80
        }
      ]
    }
  },
  "amenities": {
    "features": [
      {
        "code": "AIRC",
        "description": "Air-Conditioning"
      }
    ],
    "furnishingDetails": [
      {
        "code": "BED",
        "description": "Bed"
      }
    ]
  },
  "agentDetails": {
    "id": 987,
    "name": "Example Property Agent",
    "description": "An illustrative property agent biography.",
    "url": "https://www.ddproperty.com/en/agent/example-agent-987",
    "avatar": "https://th1-cdn.pgimgs.com/agent/987/example.png",
    "isVerified": true,
    "verifiedSince": "2023-01-26T10:24:12.000Z"
  },
  "agency": {
    "id": 123,
    "name": "Example Property Agency",
    "logo": "https://th1-cdn.pgimgs.com/agency/123/example.png"
  },
  "project": {
    "id": "example-project",
    "legacyId": 558,
    "projectId": 29950,
    "name": "Example development",
    "url": "https://www.ddproperty.com/en/project/558-example-development",
    "developer": "Example Developer",
    "completionYear": 2022,
    "completionMonth": 8,
    "totalUnits": 259,
    "floors": 2,
    "tenure": {
      "code": "F",
      "text": "Freehold"
    },
    "propertyType": {
      "code": "BUNG",
      "text": "Single Detached House"
    },
    "category": {
      "code": "R",
      "text": "Residential"
    },
    "facilities": [
      {
        "code": "SWI",
        "description": "Swimming pool"
      }
    ],
    "description": "An illustrative development description, kept in full when published.",
    "images": [
      "https://sg1-cdn.pgimgs.com/projectnet-project/558/example-project.jpg"
    ]
  },
  "gallery": [
    {
      "id": 555,
      "url": "https://th1-cdn.pgimgs.com/listing/12345/UPHO.555.V800/example.jpg",
      "caption": "Example furnished house",
      "mimeType": "image/jpg",
      "isCover": true
    }
  ]
}
```

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `propertyId` | String | Required | DDProperty's listing identifier. |
| `title` | String | Required | Listing title. |
| `url` | URL string | Required | Public property listing page. |
| `listingType` | String | Optional | Sale or rent when identified. |
| `price` | Number | Optional | Numeric price. |
| `currency` | String | Optional | Currency shown with the price; absent when the source does not identify it. |
| `location` | String | Optional | City, region, or location text. |
| `address` | String | Optional | Street address. |
| `bedrooms` | Number | Optional | Bedroom count. |
| `bathrooms` | Number | Optional | Bathroom count. |
| `areaSqm` | Number | Optional | Area in square metres when the source specifies that unit. |
| `propertyType` | String | Optional | Property type, such as a condo or house. |
| `tenure` | String | Optional | Tenure shown by the listing. |
| `yearBuilt` | Integer | Optional | Build year. |
| `description` | String | Optional | Public listing description, when available and enabled. |
| `agent` | String | Optional | Agent or representative name. |
| `images` | Array of URL strings | Optional | Public property image URLs, excluding agent portraits, interface icons, and placeholders. |
| `priceText` | String | Optional | Price in the source's original display text. |
| `areaText` | String | Optional | Area in the source's original display text and unit. |
| `agentUrl` | URL string | Optional | Public agent page when exposed in listing data or a visible agent link. |
| `roomCount` | Number | Optional | Total room count; it is kept separate from bedrooms. |
| `floorSize` | Object, number, or string | Optional | Source floor-size value, including a listing's structured Floor Size attribute. An object may include `@type`, `value`, `unitCode`, `unitText`, `minValue`, `maxValue`, and `name`. Numeric values inside it may be source strings; `areaSqm` is a number only when square-metre units are identified. |
| `addressDetails` | Object | Optional | Address components such as `streetAddress`, `addressLocality`, `addressRegion`, `addressCountry`, `postalCode`, and `postOfficeBoxNumber`. |

| `descriptions` | Array of objects | Optional | Complete available listing descriptions, each with source `locale` and `text`. The preferred English text, or first available text, also appears in `description`. Omitted when descriptions are disabled. |
| `pricing` | Object | Optional | Source `min`, `max`, `currency`, `formatted` price and `type` (`code`, `text`). `perArea.land` and `perArea.floor` contain all published unit-specific prices (`uom`, `min`, `max`, `text`). Rental periods remain in the original formatted price, such as `/mo`. No fees or conversions are inferred. |
| `listingDates` | Object | Optional | Source `timezone` and `firstPosted`, `lastPosted`, `expiry`, `contentUpdated` objects with original `date` text and Unix-seconds `timestamp`. These are listing publication, expiry, and content-edit dates, not collection dates. No timezone conversion is applied. |
| `coordinates` | Object | Optional | Published `latitude` and `longitude`; omitted when location is masked. No coordinates are guessed from address text. |
| `locationDetails` | Object | Optional | Source `formatted` address, `street`, `streetNumber`, `floor`, `postalCode`, and complete `administrativeLevels` (`level`, `levelName`, `id`, `value`). Masked street/location and floor components are excluded. |
| `unitDetails` | Object | Optional | `furnishing`, `floorLevel`, and `rentalType` each have `code` and `description`; `parkingSpots` is an integer, `isAvailableNow` a source boolean, and `tenancy.value` the published tenancy code. `dimensions.land` and `dimensions.floor` keep all source area entries (`uom`, `formatted`, `value`). A value is a number or an object with `value`, `rai`, `ngan`, `waSquared`; Thai land units are preserved, not converted. |
| `amenities` | Object | Optional | Complete `features` and `furnishingDetails` arrays, each entry containing source `code` and `description`. Project-wide facilities are separate. |
| `agentDetails` | Object | Optional | Native `id`, `name`, full `description`, public profile `url`, `avatar`, public badge `isVerified`, and source badge `verifiedSince` date. The public badge and account state can differ; verification is a DDProperty claim. Biography is omitted when descriptions are disabled. Gated contact data is excluded. |
| `agency` | Object | Optional | The listing’s agency `id`, `name`, and available `logo`. Agent biography text is not used to guess the agency identity. |
| `project` | Object | Optional | Associated development `id`, `legacyId`, `projectId`, `name`, public `url`, `developer`, `completionYear`, `completionMonth`, `totalUnits`, and `floors`. `tenure`, `propertyType`, and `category` have `code`/`text`; `facilities` have `code`/`description`. Full published `description` and separate project `images` are retained. Description is omitted when disabled. Unverified projects may publish fewer details. |
| `gallery` | Array of objects | Optional | Complete property-photo gallery with native `id`, public `url`, full `caption`, `mimeType`, and source `isCover` flag where provided. Project photos belong in `project.images`, not in this array. The property URLs also appear in `images` for convenient export. |

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. Optional fields may be absent when DDProperty does not expose them on the pages collected. Source descriptions and numeric attributes can disagree; the Actor preserves each published value rather than guessing a correction. It does not currently extract floor plans, videos, energy ratings, or maintenance fees. Listing contact-reveal gates are respected; visible contact text already supplied by the advertiser inside a description stays in that description. Linked-profile contact discovery is not implemented.

### Run status and output summary

A run succeeds when at least one validated property record has been saved. If a page, detail enrichment, source, or dataset write fails after collection has begun, saved records are kept and the run can still succeed with limited results. Reaching the requested item or page limit is normal completion. If no real property record is saved, the run fails; the Actor does not add placeholder or diagnostic rows.

The separate **Output summary** link opens `OUTPUT_SUMMARY` in the run's default **Key-value store**. It contains exactly these fields:

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `status` | String | Required | `SUCCEEDED` when at least one real property record was saved; otherwise `FAILED`. |
| `itemsStored` | Non-negative integer | Required | Number of validated property records whose dataset writes completed. |
| `isPartial` | Boolean | Required | `true` when a collection failure limited a run that saved records. |

Example completed-run summary:

```json
{
  "status": "SUCCEEDED",
  "itemsStored": 5,
  "isPartial": false
}
```

Source and storage failure details appear in the run log. A key-value-store write problem does not change the result-based run status, though it can make the summary unavailable.

### Tips, access, support, and cost

- Start with a small `maxItems` value while checking that your URLs and requested fields suit your needs.
- `maxPages` is shared across all start URLs. If you enter more URLs than the page limit, some URLs may not be reached. Automatic listing-detail requests also consume this budget. Use direct listing URLs when every requested property needs detailed fields.
- Public page structure and listing details can change. Access restrictions, unavailable robots rules, throttling, or challenges can limit collection; the Actor stops when access is denied rather than bypassing those controls.
- For help, use the Actor's **Issues** tab and include a run ID and sanitized input. Do not share proxy credentials.
- Collect only data you have the right to use, follow DDProperty's terms, and respect applicable privacy requirements.
- Runs use compute and storage under your Apify plan. Optional proxy use may have separate costs under that plan; check the current Apify pricing page for your account's rates.

# Actor input Schema

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

Public https://www.ddproperty.com property search/listing URLs.

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

Maximum property records emitted.

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

Maximum search and listing-detail pages across the run, including automatic enrichment.

## `includeDescription` (type: `boolean`):

Include complete available listing descriptions, agent biographies, and project descriptions.

## `timeoutSecs` (type: `integer`):

Maximum wait per public page request.

## `maxResponseBytes` (type: `integer`):

Safety cap for each downloaded public HTML response.

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

Optional standard Apify Proxy or custom proxy URL settings. Proxy use does not bypass source access controls.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.ddproperty.com/en/property-for-sale/p/property-for-sale-in-thailand"
  ],
  "maxItems": 10,
  "maxPages": 3,
  "includeDescription": true,
  "timeoutSecs": 45,
  "maxResponseBytes": 5000000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

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

Summary record stored separately 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/ddproperty-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("codingfrontend/ddproperty-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 '{}' |
apify call codingfrontend/ddproperty-scraper --silent --output-dataset

```

## MCP server setup

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