# RealEstate.co.nz Scraper (with Agents & details) (`ahmed_jasarevic/realestate-co-nz-scraper-with-agents-details`) Actor

Powerful RealEstate.co.nz scraper to extract property listings with full agent contact details (phone, email), precise GPS coordinates, and school zone data. Export NZ property leads to JSON, CSV, or Excel in seconds.

- **URL**: https://apify.com/ahmed\_jasarevic/realestate-co-nz-scraper-with-agents-details.md
- **Developed by:** [Ahmed Jasarevic](https://apify.com/ahmed_jasarevic) (community)
- **Categories:** Real estate, AI, Agents
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## RealEstate.co.nz Master Scraper 🚀

A high-performance, professional-grade Apify Actor designed to extract comprehensive real estate data from **realestate.co.nz**. This tool is built for developers, real estate investors, and data analysts who need deep insights into the New Zealand property market.

### Key Features ✨

* **Complete Property Specs**: Extract bedrooms, bathrooms, land area, study rooms, and more.
* **Full Agent Profiles**: Get agent names, direct phone numbers, emails, and profile photos.
* **Nearby Amenities**: Automatically maps school zones (in-zone status) and nearby childcare centers.
* **High-Res Media**: Scrapes all property images in full resolution and virtual tour links.
* **Geo-Location**: Precise GPS coordinates (Latitude/Longitude) for every listing.
* **Paywall Ready**: Integrated logic for Free (50 items) and Paid users.

---

### 🛠 Input Configuration

The Actor accepts the following input parameters via a user-friendly interface:

| Field | Type | Description |
|-------|------|-------------|
| **startUrl** | String | The search URL from realestate.co.nz (supports filters). |
| **maxItems** | Integer | Max number of listings to scrape (Default: 50). |
| **proxyConfiguration** | Object | Proxy settings (Residential proxies recommended). |

**Example Input JSON:**
```json
{
    "startUrl": "https://www.realestate.co.nz/residential/sale/auckland",
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
}
````

***

### 📊 Output Data Structure

The Actor stores results in a clean, structured JSON format. Below is an example of a single scraped listing:

```json
{
	"id": "43024506",
	"title": "Charming character + Space to grow!",
	"type": "House",
	"status": "active",
	"location": {
		"address": "22 Mason Terrace, Gonville",
		"full": "22 Mason Terrace, Gonville, Whanganui, Manawatu / Whanganui",
		"suburb": "Gonville",
		"district": "Whanganui",
		"region": "Manawatu / Whanganui",
		"coords": {
			"lat": "-39.94403076",
			"lng": "175.04153442"
		}
	},
	"price": {
		"display": "Offers Over $559,000",
		"code": 16
	},
	"specs": {
		"bedrooms": 4,
		"bathrooms": 1,
		"total_wc": 1,
		"parking_total": 2,
		"land_size": "754 SQM",
		"study": 0,
		"pool": false,
		"is_new_build": false
	},
	"media": {
		"url": "https://www.realestate.co.nz/43024506/residential/sale/22-mason-terrace-gonville",
		"external_link": "https://www.propertybrokers.co.nz/listing/WGU225983",
		"images": [
			"https://static-platform.realestate.co.nz/listings/43024506/8c26d4880d086507447b3e4558f6cf34.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/bd2c399505f2fe06470aaf63fafb3897.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/c35eb9fc1ad8a5a8eef68bd70e9633ba.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/c62cc900da2aae8e2011025535da86fd.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/a8aa93f0c4bae3aba8e7dc498450ab02.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/dd4bc78900f182fe1b9d0d688e41af11.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/3b3a3581436b3f7a5933a039ced18bd7.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/a42b6df3d627e25a80cbf30767e6972c.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/819b189b0b335b1ea0ae7e5ea93b432f.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/59b8460fc243c1fe30a7be892dec097b.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/ba88aa84a47efd23bbcf2f8cbfc5d9f9.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/03af716d504f9ea9092152e7a83c7cb8.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/da1362df999dc8231da25bfeadb5087d.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/cf5e7af1616a8637b7e7a34d728add0a.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/f6d7dc3cb24d653a67cb1b854820aa78.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/e3d61196f6f94d2189fc62d9b862a77e.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/3afa53047ec7331441e24465f717a3ac.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/0a880a93b5cdc8e46e5fde72e1fe731e.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/f59a4c20aea1d3f4c8ff5a779572d9ec.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/d01ba69f424af010d832c102d340a461.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/dee57eb954da3b331cd981a57899a34d.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/6708fa19293dfecbc12e16cdc0680cef.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/b4bd52ba4e33eadfbdca089f7e952f9c.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/1deff264e48ecbbb48d73a7fad0e6230.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/448f58c6c069cdce24e54f044ce46c1d.crop.140x178.jpg",
			"https://static-platform.realestate.co.nz/listings/43024506/e96560597007743f206242c6a70cd08c.crop.140x178.jpg"
		],
		"virtual_tours": []
	},
	"nearby": {
		"schools": [
			{
				"name": "Wanganui Collegiate School",
				"dist": "1.63km",
				"in_zone": true
			},
			{
				"name": "Carlton School",
				"dist": "1.34km",
				"in_zone": false
			},
			{
				"name": "Durie Hill School",
				"dist": "2.85km",
				"in_zone": false
			},
			{
				"name": "St John's Hill School",
				"dist": "3.13km",
				"in_zone": false
			},
			{
				"name": "Mosston School",
				"dist": "3.67km",
				"in_zone": false
			}
		],
		"childcare": [
			"Little Flyers Early Learning",
			"Noah's Ark Early Learning Centre",
			"Wonder Kids Whanganui"
		]
	},
	"agents": [
		{
			"name": "Nikki Groves",
			"phone": "0273783054",
			"email": "nikki.groves@pb.co.nz",
			"photo": null,
			"profile_url": "https://www.realestate.co.nz/agent/nikki-groves"
		}
	],
	"published_at": "2026-04-09T15:47:47+12:00",
	"last_updated": "2026-04-09T15:47:47+12:00"
}
```

***

### Why use this Scraper? 💡

Unlike basic scrapers, this tool handles the complex **JSON:API** structure of the source website, linking "included" agent data and amenities directly to the property object. This saves you hours of post-processing and data cleaning.

***

> **Note**: This Actor is intended for ethical data scraping. Please ensure your use case complies with the website's Terms of Service.

# Actor input Schema

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

The URL of the realestate.co.nz search page (e.g., for a specific suburb or region).

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

Maximum number of listings to scrape (Free users: 50).

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

Select proxies to be used. Residential proxies are recommended.

## Actor input object example

```json
{
  "startUrl": "https://www.realestate.co.nz/residential/sale",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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://www.realestate.co.nz/residential/sale",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ahmed_jasarevic/realestate-co-nz-scraper-with-agents-details").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://www.realestate.co.nz/residential/sale",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("ahmed_jasarevic/realestate-co-nz-scraper-with-agents-details").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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://www.realestate.co.nz/residential/sale",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call ahmed_jasarevic/realestate-co-nz-scraper-with-agents-details --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=ahmed_jasarevic/realestate-co-nz-scraper-with-agents-details",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "RealEstate.co.nz Scraper (with Agents & details)",
        "description": "Powerful RealEstate.co.nz scraper to extract property listings with full agent contact details (phone, email), precise GPS coordinates, and school zone data. Export NZ property leads to JSON, CSV, or Excel in seconds.",
        "version": "0.0",
        "x-build-id": "weKYG133nwCwJUn4d"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/ahmed_jasarevic~realestate-co-nz-scraper-with-agents-details/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-ahmed_jasarevic-realestate-co-nz-scraper-with-agents-details",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/ahmed_jasarevic~realestate-co-nz-scraper-with-agents-details/runs": {
            "post": {
                "operationId": "runs-sync-ahmed_jasarevic-realestate-co-nz-scraper-with-agents-details",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/ahmed_jasarevic~realestate-co-nz-scraper-with-agents-details/run-sync": {
            "post": {
                "operationId": "run-sync-ahmed_jasarevic-realestate-co-nz-scraper-with-agents-details",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrl",
                    "maxItems"
                ],
                "properties": {
                    "startUrl": {
                        "title": "Start URL",
                        "type": "string",
                        "description": "The URL of the realestate.co.nz search page (e.g., for a specific suburb or region)."
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of listings to scrape (Free users: 50).",
                        "default": 50
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Select proxies to be used. Residential proxies are recommended."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
