# OnTheMarket.com Scraper (`unfenced-group/onthemarket-scraper`) Actor

Scrape property listings from OnTheMarket.com — the UK's agent-exclusive property portal. Returns price, bedrooms, bathrooms, property type, listing agent, GPS coordinates, EPC rating and description for sale and rental listings across the UK.

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

## Pricing

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

## OnTheMarket.com Scraper

![onthemarket-scraper](https://api.apify.com/v2/key-value-stores/lJlifu6C8YQfZMPKE/records/onthemarket-scraper)

Scrape real estate listings from [OnTheMarket.com](https://www.onthemarket.com) — UK's third-largest property portal — agent-exclusive listings. Filter by transaction, location, radius, price and bedroom count. No API key required.

---

### Why this scraper?

#### ⚡ Fast & cost-efficient extraction

No browser required — data extracted from embedded JSON (`__NEXT_DATA__`) on every search results page. Structured, reliable and CSS-selector-free.

#### 🏠 Market coverage

200,000+ UK property listings on the agent-exclusive portal — often ahead of Rightmove.

#### 💰 Structured price & property data

Price in GBP, bedrooms, bathrooms, tenure type and full agency details per listing.

#### 🔍 Flexible filters

Filter by location, radius, property type, price range and bedroom count.

#### 📍 Location & GPS coordinates

Latitude and longitude included for every listing with location data.

#### 🔗 Direct URL support

`startUrls` support: pass any OnTheMarket.com search URL directly.

---

### Input parameters

| Parameter | Type | Description | Default |
|-----------|------|-------------|---------|
| `transaction` | string | Transaction: `for-sale`, `to-rent` | `for-sale` |
| `propertyType` | string | Type: `property`, `houses`, `flats`, `new-homes`, `land` | `property` |
| `location` | string | City slug or postcode prefix, e.g. `"london"`, `"manchester"`, `"sw1a"` | `london` |
| `radius` | integer | Search radius in miles from location centre | — |
| `minPrice` | integer | Minimum price in GBP | — |
| `maxPrice` | integer | Maximum price in GBP | — |
| `minBedrooms` | integer | Minimum number of bedrooms | — |
| `maxBedrooms` | integer | Maximum number of bedrooms | — |
| `maxItems` | integer | Maximum number of listings to scrape | `100` |
| `startUrls` | array | Direct OnTheMarket.com search page URLs | — |

---

### Output schema

```json
{
  "id":               "19407938",
  "url":              "https://www.onthemarket.com/details/19407938/",

  "transaction":      "sale",
  "propertyType":     "Terraced house",

  "title":            "3 bedroom terraced house for sale",
  "address":          "Islington, London N1",
  "country":          "GB",

  "latitude":         51.538,
  "longitude":        -0.103,

  "priceText":        "£785,000",
  "priceShort":       "£785k",
  "priceAmount":      785000,
  "priceCurrency":    "GBP",
  "priceQualifier":   null,

  "bedrooms":         3,
  "bathrooms":        2,

  "features":         ["Tenure: Freehold", "Garden", "Chain free"],
  "tenure":           "Freehold",

  "images":           ["https://media.onthemarket.com/properties/19407938/image-0-480x320.jpg"],

  "agencyId":         "12345",
  "agencyName":       "Knight Frank — Islington",
  "agencyPhone":      "020 1234 5678",
  "agencyLogoUrl":    "https://media.onthemarket.com/agents/companies/12345/logo-190x100.jpg",

  "isExclusive":      false,
  "isRecentlyAdded":  true,
  "isPriceReduced":   false,
  "hasVirtualTour":   false,

  "daysOnMarket":     "Added yesterday",

  "source":           "onthemarket.com",
  "scrapedAt":        "2026-05-06T10:00:00.000Z",
  "contentHash":      "a1b2c3d4e5f6a7b8"
}
````

***

### Examples

**Properties for sale in London:**

```json
{ "transaction": "for-sale", "location": "london", "maxItems": 100 }
```

**Filter by price range and bedrooms:**

```json
{ "transaction": "for-sale", "location": "manchester", "minPrice": 100000, "maxPrice": 500000, "minBedrooms": 3, "maxItems": 500 }
```

**Rental listings with radius:**

```json
{ "transaction": "to-rent", "location": "edinburgh", "radius": 10, "maxItems": 200 }
```

**Direct URL:**

```json
{ "startUrls": [{ "url": "https://www.onthemarket.com/for-sale/houses/bristol/?min-bedrooms=4" }], "maxItems": 50 }
```

***

### 💰 Pricing

**$1.50 per 1,000 results** — you only pay for successfully retrieved listings.
Failed retries are never charged.

| Results | Cost |
|---------|------|
| 100 | ~$0.15 |
| 1,000 | ~$1.50 |
| 10,000 | ~$15.00 |
| 100,000 | ~$150.00 |

> Flat-rate real estate data providers typically charge $99–$299/month regardless of usage.
> At 10,000 results/month, this scraper costs significantly less with no subscription.

Use the **Max results** cap in the input to control your spend exactly.

***

### Performance

| Run size | Estimated time |
|----------|----------------|
| 100 listings | ~2–4 min |
| 500 listings | ~10–15 min |
| 1,000 listings | ~20–30 min |

Actual performance depends on the platform's response time and number of pages required.

***

### Known limitations

- **Max results:** OnTheMarket caps displayed results at 1,000 per search. Use location/price/bedroom filters to narrow results below this limit.
- **Tenure:** Leasehold/freehold extracted from listing features — may be absent for some listings.
- **New builds:** Developer listings may show guide prices, not confirmed prices.
- **Agent exclusivity:** All OTM listings are agency-listed — no private seller listings.

***

### Technical details

- **Method:** JSON-HTML extraction via `__NEXT_DATA__` embedded Redux state (no browser, no CSS selectors)
- **Memory:** 256 MB
- **Retry:** Automatic retry on transient errors with exponential backoff
- **Deduplication:** Cross-page ID deduplication handles spotlight listings that repeat across pages
- **Output fields:** 25 fields including GPS coordinates, agency phone/logo, tenure and listing flags

***

### Additional services

Need a custom actor, additional filters, scheduled runs, or integration support?.nl]\(mailto:info@unfencedgroup.nl) — we build on request.

***

***

### Need a custom scraper?

**[Unfenced Group](https://www.unfencedgroup.nl)** builds Apify actors for any website — for free.

If the site you need isn't in our portfolio yet, just ask. We scope, build, and publish it at no cost to you. You only pay for results — we absorb the compute and proxy costs ourselves. Same pay-per-result pricing, same quality, same standards as every actor in this portfolio.

**Get in touch:** [www.unfencedgroup.nl](https://www.unfencedgroup.nl)

# Actor input Schema

## `transaction` (type: `string`):

Transaction

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

Property type

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

City or area slug, e.g. 'london', 'manchester', 'birmingham', 'edinburgh'

## `minPrice` (type: `integer`):

Minimum price in GBP

## `maxPrice` (type: `integer`):

Maximum price in GBP

## `minBedrooms` (type: `integer`):

Minimum number of bedrooms

## `maxBedrooms` (type: `integer`):

Maximum number of bedrooms

## `daysOld` (type: `integer`):

Only return listings published within the last N days. Leave empty for no recency filter.

## `fetchDetails` (type: `boolean`):

If true, opens each listing detail page to extract additional fields (description, floor plan, agent contact). Increases run time and cost.

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

Max items

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

Direct OnTheMarket.com search page URLs to scrape

## `radius` (type: `integer`):

Search radius in miles from the location centre

## Actor input object example

```json
{
  "transaction": "for-sale",
  "propertyType": "property",
  "location": "london",
  "fetchDetails": false,
  "maxItems": 100
}
```

# Actor output Schema

## `results` (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 = {
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("unfenced-group/onthemarket-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 = { "maxItems": 100 }

# Run the Actor and wait for it to finish
run = client.actor("unfenced-group/onthemarket-scraper").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 '{
  "maxItems": 100
}' |
apify call unfenced-group/onthemarket-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=unfenced-group/onthemarket-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "OnTheMarket.com Scraper",
        "description": "Scrape property listings from OnTheMarket.com — the UK's agent-exclusive property portal. Returns price, bedrooms, bathrooms, property type, listing agent, GPS coordinates, EPC rating and description for sale and rental listings across the UK.",
        "version": "0.0",
        "x-build-id": "3dI5udo6KIioqLSCI"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/unfenced-group~onthemarket-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-unfenced-group-onthemarket-scraper",
                "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/unfenced-group~onthemarket-scraper/runs": {
            "post": {
                "operationId": "runs-sync-unfenced-group-onthemarket-scraper",
                "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/unfenced-group~onthemarket-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-unfenced-group-onthemarket-scraper",
                "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",
                "properties": {
                    "transaction": {
                        "title": "Transaction",
                        "enum": [
                            "for-sale",
                            "to-rent"
                        ],
                        "type": "string",
                        "description": "Transaction",
                        "default": "for-sale"
                    },
                    "propertyType": {
                        "title": "Property type",
                        "enum": [
                            "property",
                            "houses",
                            "flats",
                            "new-homes",
                            "land"
                        ],
                        "type": "string",
                        "description": "Property type",
                        "default": "property"
                    },
                    "location": {
                        "title": "Location",
                        "type": "string",
                        "description": "City or area slug, e.g. 'london', 'manchester', 'birmingham', 'edinburgh'",
                        "default": "london"
                    },
                    "minPrice": {
                        "title": "Min price (GBP)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum price in GBP"
                    },
                    "maxPrice": {
                        "title": "Max price (GBP)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum price in GBP"
                    },
                    "minBedrooms": {
                        "title": "Min bedrooms",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum number of bedrooms"
                    },
                    "maxBedrooms": {
                        "title": "Max bedrooms",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of bedrooms"
                    },
                    "daysOld": {
                        "title": "Max listing age (days)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return listings published within the last N days. Leave empty for no recency filter."
                    },
                    "fetchDetails": {
                        "title": "Fetch listing details",
                        "type": "boolean",
                        "description": "If true, opens each listing detail page to extract additional fields (description, floor plan, agent contact). Increases run time and cost.",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Max items",
                        "default": 100
                    },
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "Direct OnTheMarket.com search page URLs to scrape",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "radius": {
                        "title": "Radius (miles)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Search radius in miles from the location centre"
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
