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

Scrape Domain.com.au, Australia's #2 property marketplace. Get listing & project details by id or URL, search homes For Sale / Rent / Sold by suburb, coordinates or URL, search agents & agencies with their listings & reviews, and resolve locations via autocomplete.

- **URL**: https://apify.com/one-api/domain-scraper.md
- **Developed by:** [ONE API](https://apify.com/one-api) (community)
- **Categories:** Lead generation, Real estate
- **Features:** Limited permissions
- **Stats:** 44 total users, 14 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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

## Domain.com.au Scraper

Scrape **Domain.com.au**, **Australia's #2 real-estate marketplace**. Look up full listing & new-development details by id or URL, search homes **For Sale / For Rent / Sold** (plus Rural, Retirement, House & Land and New Homes) by suburb, by coordinates + radius, or by a domain.com.au search URL with filters, search **agents & agencies** with their listings and reviews, and resolve locations via autocomplete.

### What it does

- **🏠 Property Details** — auto-detects each input as a numeric Domain listing / project id (`/details/byid`) or a `domain.com.au/...` URL (`/details/byurl`); returns the full record: price, beds / baths / cars, land area, description, photos & floorplans, agency + agents, schools and market insights. New-development projects also emit their child units as bonus rows.
- **🔎 Search Listings** — auto-detects a free-text location / postcode (`/search/bylocation`) or a domain.com.au results URL (`/search/byurl`), plus a **Coordinates** mode (`/search/bycoordinates`) for radius search around a point. Deal type, property type / category, price / beds / baths / cars / land-area filters, keywords and sort all apply.
- **👤 Agents & Agencies** — find agents or agencies active in a suburb (`/agent/search`), or pass an agent / agency id or profile URL to pull a full profile (`/agent/details`) together with all their current & sold listings (`/agent/listings`) and reviews (`/agent/reviews`).
- **📍 Location Autocomplete** — resolve free text (suburb / postcode / region / area) to Domain's location data used by search (`/autocomplete`).

### Output

- **One flat dataset row per listing, agent, agency, review or location suggestion** — sortable, filterable, CSV / Excel / JSON exportable.
- Columns: `Mode`, `Input Given`, `ID`, `Type`, `Name`, `Title`, `Deal`, `Price`, `Bedrooms`, `Bathrooms`, `Carspaces`, `Land Area`, `Address`, `Suburb`, `State`, `Postcode`, `Latitude`, `Longitude`, `Agency`, `Phone`, `Rating`, `Reviews`, `Date`, `Cover Photo`, `Listing URL`.
- The complete upstream JSON for each row is kept in the `Raw` column for power users.

### Inputs

- Each section is independent — fill only the ones you need; multiple inputs per section, one per line.
- The Search filters (deal type, property type, ranges, keywords, sort, pages, results-per-page) apply to every location, coordinate and URL search.
- **Coordinates** entries use the format `latitude,longitude` or `latitude,longitude,radiusKm`, e.g. `-33.8915,151.2767,2` (2 km around Bondi Beach).
- **Agents** — the *Search for* toggle picks agents or agencies for the location search; the *Agent / agency id or profile URL* list pulls full profiles (each entry yields a profile row plus its listings and reviews).

### Pricing

- Pay per result: **$3 per 1,000 dataset items** — the same rate on every Apify plan tier.
- Apify start fee: $0.00005 per run.

### Notes

- Domain serves roughly **20 listings per page** — raise *Pages per search* to fetch more.
- Deal type is **For Sale**, **For Rent** or **Sold**. The **New Homes**, **House & Land** and **Retirement** property-type categories return new-development project rows.
- Prices are in **AUD** (displayed as Domain shows them, e.g. `$4,153,000`, `Auction`, `FOR SALE`); land area in **m²**. Beds / baths / cars are numeric.

### Errors

- Failures land in the dataset as rows with `Mode = "ERROR"` and the upstream message in `Title` — nothing is silently dropped.

# Actor input Schema

## `property_inputs` (type: `array`):

Auto-detects each entry and calls the right endpoint:
• A numeric Domain listing or project id (e.g. `2020755515`) → /details/byid
• A `https://www.domain.com.au/...` listing or project URL → /details/byurl

Each row = one full record (price, beds/baths/cars, land area, description, photos & floorplans, agency + agents, schools, market insights). New-development projects also emit their child units as bonus rows.

## `search_inputs` (type: `array`):

Auto-detects each entry and routes to the right /search endpoint:
• A domain.com.au results URL (e.g. `https://www.domain.com.au/sale/bondi-beach-nsw-2026/`) → /search/byurl
• Anything else (suburb, postcode, region, e.g. `Bondi Beach NSW`, `2026`) → /search/bylocation

The filters below apply to every location search. One row per listing.

## `coordinate_inputs` (type: `array`):

Radius search around a point via /search/bycoordinates. One point per line as `latitude,longitude` or `latitude,longitude,radiusKm` (radius 0.1–50 km, default 2). Example: `-33.8915,151.2767,2` searches 2 km around Bondi Beach. The filters below also apply. One row per listing.

## `searchType` (type: `string`):

Listing status to search for. Applies to every Search and Coordinates query.

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

Type of property, also covering Domain's top-nav categories. Leave as Any for all types. New Homes / House & Land / Retirement return new-development project rows.

## `priceRange` (type: `string`):

Format: `min:500000,max:1500000` — or just `min:500000` / `max:1500000`. For rent this filters the weekly rent.

## `bedrooms` (type: `string`):

Number of bedrooms, e.g. `min:3` or `min:2,max:4`.

## `bathrooms` (type: `string`):

Number of bathrooms, e.g. `min:2`.

## `carspaces` (type: `string`):

Number of car spaces / parking, e.g. `min:1`.

## `landArea` (type: `string`):

Land area in square metres, e.g. `min:300,max:800`.

## `keywords` (type: `string`):

Comma-separated keywords to match in listings, e.g. `pool,ocean view,renovated`.

## `sortOrder` (type: `string`):

Result ordering for /search/bylocation and /search/bycoordinates.

## `pages` (type: `integer`):

How many result pages to fetch for each location / coordinate / URL search (~20 listings per page).

## `resultCount` (type: `integer`):

Listings per page for every search (1–100).

## `agent_search_inputs` (type: `array`):

Find agents or agencies active in a suburb via /agent/search. One free-text location per line (e.g. `Double Bay NSW`, `Bondi Beach`). The 'Search for' toggle below picks agents or agencies; 'Agent name filter' narrows agents by name. One row per agent/agency.

## `agentType` (type: `string`):

Whether the location search above returns individual agents or whole agencies. Also used as the type hint for bare numeric ids in the profiles list below.

## `agentName` (type: `string`):

Optional keyword to filter agents by name within the location search (agents only).

## `agent_inputs` (type: `array`):

Full profile for a specific agent or agency via /agent/details + /agent/listings + /agent/reviews. Accepts a numeric id (e.g. `1843243`) or a domain.com.au real-estate-agent / real-estate-agencies URL (type auto-detected from the URL). Each entry emits a profile row, its current & sold listings, and its reviews. Bare ids use the 'Search for' toggle above as the agent/agency hint.

## `autocomplete_inputs` (type: `array`):

Resolve a suburb / postcode / region / area name to Domain's location data (slug, state, postcode) used by Search, via /autocomplete. Each suggestion = one row.

## Actor input object example

```json
{
  "property_inputs": [
    "2020755515",
    "https://www.domain.com.au/9-cox-avenue-bondi-beach-nsw-2026-2020755515"
  ],
  "search_inputs": [
    "Bondi Beach NSW"
  ],
  "coordinate_inputs": [
    "-33.8915,151.2767,2"
  ],
  "searchType": "For_Sale",
  "propertyType": "",
  "priceRange": "",
  "bedrooms": "",
  "bathrooms": "",
  "carspaces": "",
  "landArea": "",
  "keywords": "",
  "sortOrder": "Featured",
  "pages": 1,
  "resultCount": 20,
  "agent_search_inputs": [
    "Double Bay NSW"
  ],
  "agentType": "agent",
  "agentName": "",
  "agent_inputs": [
    "1843243"
  ],
  "autocomplete_inputs": [
    "Bondi"
  ]
}
```

# 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 = {
    "property_inputs": [
        "2020755515",
        "https://www.domain.com.au/9-cox-avenue-bondi-beach-nsw-2026-2020755515"
    ],
    "search_inputs": [
        "Bondi Beach NSW"
    ],
    "coordinate_inputs": [
        "-33.8915,151.2767,2"
    ],
    "agent_search_inputs": [
        "Double Bay NSW"
    ],
    "agent_inputs": [
        "1843243"
    ],
    "autocomplete_inputs": [
        "Bondi"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("one-api/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 = {
    "property_inputs": [
        "2020755515",
        "https://www.domain.com.au/9-cox-avenue-bondi-beach-nsw-2026-2020755515",
    ],
    "search_inputs": ["Bondi Beach NSW"],
    "coordinate_inputs": ["-33.8915,151.2767,2"],
    "agent_search_inputs": ["Double Bay NSW"],
    "agent_inputs": ["1843243"],
    "autocomplete_inputs": ["Bondi"],
}

# Run the Actor and wait for it to finish
run = client.actor("one-api/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 '{
  "property_inputs": [
    "2020755515",
    "https://www.domain.com.au/9-cox-avenue-bondi-beach-nsw-2026-2020755515"
  ],
  "search_inputs": [
    "Bondi Beach NSW"
  ],
  "coordinate_inputs": [
    "-33.8915,151.2767,2"
  ],
  "agent_search_inputs": [
    "Double Bay NSW"
  ],
  "agent_inputs": [
    "1843243"
  ],
  "autocomplete_inputs": [
    "Bondi"
  ]
}' |
apify call one-api/domain-scraper --silent --output-dataset

```

## MCP server setup

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