# Real Estate Scraper - Listing Price, Beds, Area & Agent (`tidytools/real-estate-listing-extractor`) Actor

Extract price, beds, area, address and agent from public real estate listing URLs or agency list pages. One row per property; one event per successful page.

- **URL**: https://apify.com/tidytools/real-estate-listing-extractor.md
- **Developed by:** [Yukai Lin](https://apify.com/tidytools) (community)
- **Categories:** Real estate, AI, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 1,000 extracted pages

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

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

## Real Estate Scraper — Price, Beds, Area & Agent from Any Listing URL

### What does it do?

Extract public estate agency listings into **one Dataset row per property**. Paste a single property URL or an agency list page; no platform-specific search or login is needed. It reads the URLs you give it and does not run searches on listing portals for you. The prefilled [Churcher Estates listing page](https://churcherestates.co.uk/listings/) is a public independent-agent example, not a guarantee of future access.

### How to use

Paste a public detail or list URL, keep the property preset and empty Fields, then run a small sample and check the source evidence. Enable pagination only when you want additional list pages.

### Input example

```json
{
  "urls": ["https://churcherestates.co.uk/listings/"],
  "preset": "property",
  "fields": {},
  "outputMode": "items",
  "followPagination": false,
  "maxPages": 2,
  "flatOutput": false
}
```

`startUrls` also accepts Apify request-list sources. For a single detail page, use the detail URL and keep `outputMode: "items"`; the main property should produce one row, excluding related-listing cards. A list page should produce one row per visible property. Enable `followPagination` to follow visible same-site Next or page-number links, capped by `maxPages`; pagination is off by default. `flatOutput: true` puts extracted fields in separate CSV-friendly columns. `followLinks` is a separate option that reads linked detail pages and can add one charge per successful detail page.

### Output fields

The default Dataset view shows `url` (source page), `data` (the property fields below), `success`, `charged`, `errorType`, and `error`. In item mode the full JSON also includes `itemIndex`, `itemCount`, extraction diagnostics, and source evidence where available. Missing property details are `null`.

| `data` field | Meaning |
| --- | --- |
| `name`, `listingUrl`, `address` | Property title, visible link to its detail page, and property address |
| `price`, `currency` | Displayed numeric amount and printed currency code or unambiguous symbol |
| `bedrooms`, `bathrooms` | Bed and bath counts |
| `area`, `areaUnit`, `area_sqm` | Displayed size, printed unit, and square metres only when explicitly stated |
| `status` | Sale, rental, sold or other status printed on the page |
| `agentName`, `agentPhone` | Named listing agent and their phone when stated for that listing |

A list page may omit agent details or area. The office contact in a footer is not assigned to a listing. `listingUrl` is `null` if the detail link is absent from the extracted page text. The Actor does not fill gaps from outside knowledge. Check material facts against the source before using them.

### Pricing

The existing `page-extracted` event costs **$0.01 per successfully extracted page on the Free plan** (Bronze $0.01, Silver $0.009, Gold and above $0.008). A list page with several property rows costs **one event**, not one per property. Every additional successfully extracted pagination page costs one event. A readable PDF property brochure can also be supplied; each PDF page that is actually sent to extraction can create one event. Failed, blocked, empty, duplicate, invalid and unprocessed inputs return free diagnostic rows with `charged: false` and `errorType`; no `page-extracted` event is charged for them. The prefilled example uses the Free tier.

### Limitations

Large portals such as **Zillow, Realtor.com and realestate.com.au** often block automated reading. A blocked page produces a free error row (`charged: false`, with `errorType: "blocked"`, or `"robots_disallowed"` when the site's robots.txt excludes the page) instead of listing data. Prefer independent estate-agent websites, developer project pages and public PDF property brochures. Some sites render listing cards or pagination only in a browser, or hide the next-page link from extracted content; in those cases the available rows or pages may be fewer than the site displays. Use only public pages you may access. A successful extraction is not a verified property record.

### FAQ

**Does a list with ten properties cost ten events?** No. One successful list page creates one `page-extracted` event.

**Can I use a PDF brochure?** Yes, for a public PDF with readable text; each extracted PDF page can create one event.

**Why is agent contact null?** The page may only show an office contact. The Actor does not assign that number to a listing agent.

# Actor input Schema

## `urls` (type: `array`):

Paste public property detail or agency listing pages, one per line. This sample independent agency list shows several properties. Large portals may block automation. You can also use startUrls or a datasetId.

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

Apify request-list form of public property detail or estate agent list URLs. Each successfully extracted page creates one page-extracted event, regardless of number of property rows.

## `preset` (type: `string`):

Property is selected by default. Missing details are null; extra Fields can override or add columns.

## `fields` (type: `object`):

Leave empty for property fields: name, listingUrl, address, price, currency, bedrooms, bathrooms, area, areaUnit, area_sqm, status, agentName, agentPhone. Add typed fields if needed; JSON Schema overrides Fields.

## `instructions` (type: `string`):

Or write one sentence, such as "Get each product's name, price and rating". Clear the sample Fields first if you want the AI to choose columns from this sentence. With no Fields or JSON Schema, it chooses once from the first page, reuses the columns for this run and saves them as SCHEMA. You can also use this for hints such as "Prices in USD".

## `prompt` (type: `string`):

Same as "Instructions"; used only when Instructions is empty. Lets you paste the input JSON of Apify's AI Web Scraper (`startUrls` + `prompt`) and run it unchanged. Its crawl options (extractionMode scout/agentic, maxPagesToVisit, maxCrawlDepth) are ignored: only the start URLs are read, or turn on "Follow links to detail pages".

## `outputMode` (type: `string`):

One row per visible property on a list page, or one row for a property detail page. Each successful page incurs one page-extracted event. Switch to page mode for one record per page.

## `flatOutput` (type: `boolean`):

Put each extracted property field in its own Dataset column for CSV, Sheets and n8n. Same rows and page-extracted charges as nested data.

## `qualityReport` (type: `boolean`):

Write DATA_QUALITY.json and DATA_QUALITY.csv with field missing counts, type error counts, review suggestions and completeness across saved data rows. Failed or free rows are counted separately. Quality hints are not human verification. No extra AI calls or page-extracted charges.

## `followLinks` (type: `boolean`):

Off by default. When enabled, read detail links from a list page for free and extract the linked pages. Each successfully extracted detail page incurs one page-extracted event.

## `followPagination` (type: `boolean`):

Off by default. When enabled, follow visible same-domain Next or numbered list links up to Max pages. Each successfully extracted list page incurs one page-extracted event, even if it yields many property rows.

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

Maximum pages including the starting page per URL when pagination is enabled. Each successful page creates one page-extracted event.

## `linkPattern` (type: `string`):

Which links to follow. A glob such as https://books.toscrape.com/catalogue/*/index.html (* = any text within one path segment, \*\* = across segments), or plain text the link must contain, such as /product/. Separate several with commas. Empty = every link to the same site (menus included, so a pattern is recommended).

## `maxPagesPerStartUrl` (type: `integer`):

At most this many linked pages are extracted from each start page (in page order). Caps the cost.

## `jsonSchema` (type: `object`):

Optional full JSON Schema (type: object) for nested output. When set, it replaces "Fields". In item mode it describes one item.

## `datasetId` (type: `string`):

Read the URLs from another Actor run's dataset, e.g. a crawler or a search results scraper. Values that are not URLs are extracted from as text.

## `datasetField` (type: `string`):

Field with the URLs, e.g. "url" or "website" (dot paths such as "company.url" work). Empty = the first URL field found.

## `mode` (type: `string`):

"Auto" reads pages over plain HTTP and switches to a real browser when a site blocks it or needs JavaScript. Values: auto = Auto (recommended); fast = Fast (HTTP only); browser = Browser (JavaScript rendering).

## `cssSelector` (type: `string`):

Optional. Only read this part of each page, e.g. "main". Helps with very long pages.

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

How many pages are processed at the same time.

## `itemTimeoutSecs` (type: `integer`):

A page that takes longer (reading + AI) is stopped and returned as a free error row with errorType "timeout". In list mode, the items from the parts that finished in time are kept. 0 = no limit.

## `aiModel` (type: `string`):

Same price for every model. Auto uses Llama 3.3 70B for one row per page and Qwen3 30B for list pages (one row per item), where it writes long lists about 3 times faster with the same accuracy in our tests.

## `httpVia` (type: `string`):

Some sites block requests from data centers. Auto retries from a second network before falling back to a real browser. If both are refused, Auto also tries our second server (Oracle, different IP) before a real browser.

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

Only used for requests sent from Apify's network. Apify proxy usage is billed to your Apify account.

## `maxPdfPages` (type: `integer`):

Read up to this many pages per PDF. Only pages with text that are sent to extraction incur one page-extracted event each.

## Actor input object example

```json
{
  "urls": [
    "https://churcherestates.co.uk/listings/"
  ],
  "preset": "property",
  "fields": {},
  "outputMode": "items",
  "flatOutput": false,
  "qualityReport": false,
  "followLinks": false,
  "followPagination": false,
  "maxPages": 2,
  "maxPagesPerStartUrl": 20,
  "mode": "auto",
  "maxConcurrency": 5,
  "itemTimeoutSecs": 180,
  "aiModel": "auto",
  "httpVia": "auto",
  "maxPdfPages": 20
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `full` (type: `string`):

No description

## `qualityJson` (type: `string`):

No description

## `qualityCsv` (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 = {
    "urls": [
        "https://churcherestates.co.uk/listings/"
    ],
    "fields": {}
};

// Run the Actor and wait for it to finish
const run = await client.actor("tidytools/real-estate-listing-extractor").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 = {
    "urls": ["https://churcherestates.co.uk/listings/"],
    "fields": {},
}

# Run the Actor and wait for it to finish
run = client.actor("tidytools/real-estate-listing-extractor").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 '{
  "urls": [
    "https://churcherestates.co.uk/listings/"
  ],
  "fields": {}
}' |
apify call tidytools/real-estate-listing-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tidytools/real-estate-listing-extractor"
        }
    }
}
```

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/uSR9AlcdoTy5fHTkp/builds/mpqW6zVUJCMM3smmN/openapi.json
