# Onthemarket Property Extractor (`kawsar/onthemarket-property-extractor`) Actor

Extract property listings from OnTheMarket search pages, including price, bedrooms, address, images, and agent contact details, so you can build databases, track local markets, and feed valuation models without writing any code.

- **URL**: https://apify.com/kawsar/onthemarket-property-extractor.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Categories:** Real estate, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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.
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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## OnTheMarket Property Extractor

Extract property listings from [OnTheMarket](https://www.onthemarket.com) and turn any search page into clean, structured data. Paste one or more search URLs, choose how many listings you want, and the actor reads every result and walks through pagination on its own. You get price, bedrooms, bathrooms, address, features, all listing images, agent contact details, and map coordinates for each property.

Works for both sales and rentals, in any UK location, with no coding required. Export the results to JSON, CSV, Excel, or pull them straight from the API into your own app.

### Who it is for

- **Property investors** tracking price changes and new stock in a target area
- **Estate agents** monitoring competitor listings and local supply
- **PropTech and valuation teams** feeding fresh comparables into models
- **Data and research teams** building property datasets at scale
- **Lead generation** pulling agent contact details from live listings

### Features

- Reads every property on an OnTheMarket search or listing page
- Follows pagination automatically until it reaches your item limit
- Supports both for-sale and to-rent searches for any location
- Accepts multiple search URLs in a single run
- Keeps any filters already in your URL (price, beds, radius, property type)
- Returns a clean numeric price field for easy sorting and filtering
- Collects full-resolution image URLs plus the cover image
- Includes agent name, phone number, and profile link
- De-duplicates listings by property ID across pages and URLs
- Exports to JSON, CSV, Excel, or via the Apify API

### How to use it

1. Go to [OnTheMarket](https://www.onthemarket.com) and run a search for your area. Apply any filters you want, such as price range, number of bedrooms, or property type.
2. Copy the resulting URL from your browser address bar.
3. Paste it into the **Search URLs** field of this actor. Add more URLs to cover several areas at once.
4. Set **Max items** to control how many listings you collect.
5. Click **Start** and download the results when the run finishes.

### Input

| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `searchUrls` | array of strings | Yes | — | One or more OnTheMarket search or listing page URLs. |
| `maxItems` | integer | No | 25 | Maximum number of listings to collect per run, across all search URLs. Max 1000. |
| `requestTimeoutSecs` | integer | No | 30 | Per request timeout in seconds. |

#### Example input

```json
{
    "searchUrls": [
        "https://www.onthemarket.com/for-sale/property/london/",
        "https://www.onthemarket.com/to-rent/property/manchester/"
    ],
    "maxItems": 25
}
```

#### Example search URLs

| Goal | URL |
|------|-----|
| Houses for sale in London | `https://www.onthemarket.com/for-sale/property/london/` |
| Flats to rent in Manchester | `https://www.onthemarket.com/to-rent/property/manchester/` |
| For sale within a price range | `https://www.onthemarket.com/for-sale/property/london/?max-price=500000` |
| Filtered by bedrooms | `https://www.onthemarket.com/for-sale/property/leeds/?min-bedrooms=2` |

Any valid OnTheMarket search page works. The easiest approach is to build the search on the website, then copy the URL.

### Output

Each listing is stored as one record in the dataset. Example:

```json
{
    "id": "19397058",
    "propertyTitle": "1 bedroom flat for sale",
    "propertyType": "Flat",
    "price": "£76,250",
    "priceValue": 76250,
    "priceQualifier": "Shared ownership",
    "bedrooms": 1,
    "bathrooms": 1,
    "address": "Plot F-GF.01 (Flat 70) at Fount Spring Place, Banstead Road, Purley CR8",
    "features": [
        "Tenure: Leasehold (990 years remaining)",
        "542 sq ft floor area",
        "Nearest station 0.2mi."
    ],
    "images": [
        "https://media.onthemarket.com/properties/19397058/1629727367/image-0-480x320.jpg"
    ],
    "coverImage": "https://media.onthemarket.com/properties/19397058/1629727367/image-0-480x320.jpg",
    "detailsUrl": "https://www.onthemarket.com/details/19397058/",
    "latitude": 51.338172,
    "longitude": -0.118034,
    "agentName": "Southern Housing - Fount Spring Place",
    "agentTelephone": "020 7768 5161",
    "agentUrl": "https://www.onthemarket.com/new-homes/developers/development/fount-spring-place-65316/",
    "daysSinceAdded": "Added > 14 days",
    "mainLabel": "Spotlight Property",
    "spotlight": true,
    "virtualTour": true,
    "searchUrl": "https://www.onthemarket.com/for-sale/property/london/",
    "scrapedAt": "2026-08-20T04:56:59.132483+00:00"
}
```

#### Output fields

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | OnTheMarket property ID |
| `propertyTitle` | string | Listing title, for example "2 bedroom flat for sale" |
| `propertyType` | string | Property type such as Flat, House, or Apartment |
| `price` | string | Price as shown on the site |
| `priceValue` | integer | Price as a plain number for sorting and filtering |
| `priceQualifier` | string | Extra price note such as "Guide price" or "Shared ownership" |
| `bedrooms` | integer | Number of bedrooms |
| `bathrooms` | integer | Number of bathrooms |
| `address` | string | Displayed address |
| `features` | array | Key feature strings for the property |
| `images` | array | All listing image URLs |
| `coverImage` | string | Main image URL |
| `detailsUrl` | string | Link to the full property page |
| `latitude` | number | Map latitude |
| `longitude` | number | Map longitude |
| `agentName` | string | Estate agent name |
| `agentTelephone` | string | Estate agent phone number |
| `agentUrl` | string | Estate agent profile link |
| `daysSinceAdded` | string | How long the listing has been live |
| `mainLabel` | string | Badge such as "Spotlight Property" |
| `spotlight` | boolean | Whether the listing is a spotlight placement |
| `virtualTour` | boolean | Whether a virtual tour is available |
| `searchUrl` | string | The search URL this listing came from |
| `scrapedAt` | string | UTC timestamp of the run in ISO 8601 format |

### Exporting your data

After a run, open the **Dataset** tab to preview results in a table, or download them in the format you need:

- **JSON** for apps and pipelines
- **CSV** or **Excel** for spreadsheets and reports
- **API** to pull results programmatically with the Apify client

You can also connect the actor to Zapier, Make, Google Sheets, or your own webhook to move data automatically after each run.

### Tips and notes

- Each result page holds 30 listings. `maxItems` controls how many pages the actor reads.
- Add several search URLs to combine multiple areas or price bands in one run.
- Results are de-duplicated by property ID, so overlapping searches will not create repeats.
- Prices are also returned as a numeric `priceValue` field, which is handy for filtering and charts.
- The actor reads publicly available listing data from OnTheMarket search pages.

### Frequently asked questions

**Can I scrape rentals as well as sales?**
Yes. Paste any `to-rent` search URL and the actor handles it the same way as `for-sale` pages.

**Can I use my own filters?**
Yes. Apply filters on the OnTheMarket website, copy the URL, and the actor keeps those filters when it collects results.

**How many listings can I get in one run?**
Up to 1000 per run. Set `maxItems` to the number you want.

**In what format is the data returned?**
JSON by default, with CSV, Excel, and API access available from the dataset.

### Support

If you hit a problem or want a new field added, open an issue from the actor page and include the search URL you used. Feedback is welcome.

# Actor input Schema

## `searchUrls` (type: `array`):

One or more OnTheMarket search or listing page URLs. The actor reads every property on each result page and follows pagination automatically.

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

Maximum number of property listings to collect per run across all search URLs.

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

Per-request timeout in seconds.

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.onthemarket.com/for-sale/property/london/",
    "https://www.onthemarket.com/to-rent/property/manchester/"
  ],
  "maxItems": 25,
  "requestTimeoutSecs": 30
}
```

# Actor output Schema

## `properties` (type: `string`):

Extracted OnTheMarket property listings with price, bedrooms, address, images, and agent details.

# 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 = {
    "searchUrls": [
        "https://www.onthemarket.com/for-sale/property/london/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/onthemarket-property-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 = { "searchUrls": ["https://www.onthemarket.com/for-sale/property/london/"] }

# Run the Actor and wait for it to finish
run = client.actor("kawsar/onthemarket-property-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 '{
  "searchUrls": [
    "https://www.onthemarket.com/for-sale/property/london/"
  ]
}' |
apify call kawsar/onthemarket-property-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kawsar/onthemarket-property-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/ctSonayW3VUXfSaoF/builds/jPJRmL3Vd0RLToD6S/openapi.json
