# Domain.com.au Scraper (`scrapeai/domain-scraper`) Actor

Standalone public-page Domain.com.au scraper with detailed structured live output.

- **URL**: https://apify.com/scrapeai/domain-scraper.md
- **Developed by:** [ScrapeAI](https://apify.com/scrapeai) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.49 / 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

## Domain.com.au Scraper

### Overview

Extract public Domain.com.au listing pages. This is a standalone Apify Actor for **Domain.com.au** with its own input schema, source adapter, dataset, run summary, diagnostics, and output files.

### Features

- Extracts publicly visible listing fields and structured page data.
- Opens detail pages when available to enrich title, price, address, features, media, and facts.
- Deduplicates records by source listing URL or identifier.
- Emits only source-backed live records with `dataOrigin: "live-page"`.
- Omits unknown values instead of inventing them or inserting JSON `null` values.
- Saves per-run status and access-block diagnostics in `storage/key_value_stores/default`.

### Default source URL

`https://www.domain.com.au/sale/`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `startUrls` | array | source default | Public search, listing, or detail URLs for this portal. |
| `maxItemsPerActor` | integer | 10 | Maximum detailed records. |
| `maxPagesPerActor` | integer | 2 | Maximum list/search pages. |
| `includeDetails` | boolean | true | Enrich records from detail pages. |
| `includeRawData` | boolean | true | Keep selected structured source data. |
| `proxyEnabled` | boolean | false | Use an authorized Apify or user-supplied proxy. |
| `maxRequestRetries` | integer | 3 | Bounded retry/backoff for transient failures. |

### Sample live output

The latest direct check did not expose a source-backed record (blocked). This Actor emits no placeholder or synthetic rows.

### Local development

Run this folder as its own Actor:

```bash
apify run --input-file storage/key_value_stores/default/INPUT.json
```

Validate the Actor contract and stored live records:

```bash
apify validate-schema
node dataset-validator.js
```

### Access and compliance

The latest direct check was blocked by the source portal (Source returned HTTP 403 Forbidden.). The Actor records diagnostics in the local Apify key-value store and omits blocked pages from the dataset. Use only public pages and an authorized purpose. Proxy access can incur account costs and does not authorize bypassing CAPTCHA, authentication, robots directives, or other access controls.

### Output files

- `.actor`: Actor metadata and schemas.
- `src`: This portal's standalone adapter and shared extraction runtime.
- `storage/datasets/default`: Apify-style local result records.
- `storage/key_value_stores/default/RUN_SUMMARY.json`: run result and diagnostics summary.
- `output/dataset.json` and `output/dataset.jsonl`: exported live-only result files.

# Changelog

This Actor's version history is a separate document: https://apify.com/scrapeai/domain-scraper/changelog.md

# Actor input Schema

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

Public Domain.com.au search, listing, or detail URLs.

## `query` (type: `string`):

Optional query metadata passed to adapters. Use explicit public startUrls when the portal requires a concrete route or search identifier.

## `location` (type: `string`):

Optional city, postcode, state, country, or neighbourhood.

## `listingType` (type: `string`):

Preferred transaction or accommodation mode where supported.

## `propertyType` (type: `string`):

Optional portal-specific property type filter.

## `maxItemsPerActor` (type: `integer`):

Maximum detailed records emitted by each selected adapter.

## `maxPagesPerActor` (type: `integer`):

Maximum search/list pages followed per actor.

## `includeDetails` (type: `boolean`):

Open each listing detail page to enrich the output.

## `includeRawData` (type: `boolean`):

Keep selected JSON-LD, metadata, card data, and JSON responses under rawData.

## `scrollCount` (type: `integer`):

Number of incremental scrolls used for lazy-loaded results.

## `requestTimeoutSecs` (type: `integer`):

Maximum seconds allowed for one page.

## `maxConcurrency` (type: `integer`):

Concurrent browser pages. Keep low for public portals.

## `maxRequestRetries` (type: `integer`):

Retries for transient HTTP blocks and navigation failures. Retries use session rotation and backoff.

## `sameDomainDelaySecs` (type: `integer`):

Minimum delay between requests to the same portal, in seconds.

## `proxyEnabled` (type: `boolean`):

Use an authorized Apify or user-supplied proxy route when available. This does not bypass access controls and may incur proxy costs.

## `proxyUrls` (type: `array`):

Optional custom proxy URLs (http://user:pass@host:port) to route requests through.

## `serpApiKey` (type: `string`):

Optional SerpApi API key used as fallback data provider when portals are blocked.

## `captchaApiKey` (type: `string`):

Optional CapSolver, 2Captcha, or Anti-Captcha API key to automatically solve challenge pages.

## `headless` (type: `boolean`):

Run Chromium without a visible window.

## `testMode` (type: `boolean`):

Run an offline fixture smoke test for every selected adapter instead of visiting websites.

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

Optional Apify proxy configuration used when proxyEnabled is true.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.domain.com.au/sale/"
    }
  ],
  "query": "",
  "location": "",
  "listingType": "sale",
  "propertyType": "",
  "maxItemsPerActor": 10,
  "maxPagesPerActor": 2,
  "includeDetails": true,
  "includeRawData": true,
  "scrollCount": 3,
  "requestTimeoutSecs": 45,
  "maxConcurrency": 2,
  "maxRequestRetries": 3,
  "sameDomainDelaySecs": 3,
  "proxyEnabled": false,
  "proxyUrls": [],
  "serpApiKey": "",
  "captchaApiKey": "",
  "headless": true,
  "testMode": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Detailed, non-null records from every selected adapter.

## `files` (type: `string`):

Run summary, per-actor counters, and blocked-page diagnostics.

# 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("scrapeai/domain-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("scrapeai/domain-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 scrapeai/domain-scraper --silent --output-dataset

```

## MCP server setup

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