# OnTheMarket Scraper: UK Property for Sale and Rent (`reventadata/onthemarket-scraper`) Actor

OnTheMarket listings in the UK for sale or to rent, by town or city and property type. Get price and frequency, bedrooms, bathrooms, address, coordinates, key features, status tags, agent name, branch and phone, and photos.

- **URL**: https://apify.com/reventadata/onthemarket-scraper.md
- **Developed by:** [reventadata](https://apify.com/reventadata) (community)
- **Categories:** Real estate, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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.
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

> **Unofficial.** This Actor is not affiliated with, authorised by, endorsed by, or in any
> way officially connected to OnTheMarket or CoStar Group. "OnTheMarket" is a trademark of its respective owner
> and is used here only to describe what this tool reads. It reads the same public pages a
> browser does.

OnTheMarket Scraper reads property listings from [onthemarket.com](https://www.onthemarket.com), the UK
property portal, for sale or to rent: price, property type, bedrooms, bathrooms, address, geolocation coordinates,
agent branch details with telephone number, property features, status tags, and photos.

### What data can you extract from OnTheMarket?

The listings OnTheMarket returns for your search, up to your row and page caps, with the fields the site itself publishes in
its search results. The Actor reads OnTheMarket's public search pages directly.

### Why scrape OnTheMarket?

- **Sale and rent, all properties and houses**, in any location OnTheMarket has a search page for (for example `london`, `manchester`, `birmingham`, `newcastle-upon-tyne`).
- **Complete agent branch details.** Agent name, branch ID, telephone number, agent profile URL and contact URL are extracted directly from search results.
- **Coordinates and property features.** Geolocation coordinates (latitude and longitude) and key feature bullets (including tenure and lease length when stated) are included when the listing has them; coordinates, features and bedrooms can be empty on some listings.
- **No duplicates.** Each property ID is returned once.

### How to scrape OnTheMarket

1. Pick `transaction` (buy or rent), `propertyType` (property or houses) and `location`.
2. Optionally set `maxItems` and `maxPages`.
3. Run it. Results land in the dataset.

#### Input

| Field | Type | Meaning |
|---|---|---|
| `transaction` | string | `buy` (for sale) | `rent` (to rent). Default `buy`. |
| `propertyType` | string | `property` (all property types) | `houses` (houses only). Default `property`. |
| `location` | string | Location name slug as it appears in an OnTheMarket search URL (for example `london`, `manchester`, `newcastle-upon-tyne`). Default `london`. |
| `maxItems` | integer | Cap on rows across all pages. Default 1000. |
| `maxPages` | integer | Optional cap on search result pages (30 listings per page; site ceiling is 34 pages). |
| `proxyConfiguration` | object | Optional proxy configuration. Off by default. |

```json
{
    "transaction": "buy",
    "propertyType": "property",
    "location": "london",
    "maxItems": 10,
    "maxPages": 1
}
```

#### Output

One row, from a real local run on 2026-11-19:

```json
{
  "id": "20345030",
  "url": "https://www.onthemarket.com/details/20345030/",
  "transaction": "buy",
  "title": "2 bedroom flat for sale",
  "address": "Crystal Palace Park Road, LONDON, SE26",
  "propertyType": "Flat",
  "bedrooms": 2,
  "bathrooms": 1,
  "price": 375000.0,
  "currency": "GBP",
  "priceFrequency": null,
  "priceQualifier": null,
  "priceDisplay": "£375,000",
  "shortPrice": "£375k",
  "latitude": 51.424229,
  "longitude": -0.064829,
  "addedOrReduced": "Added > 14 days",
  "mainLabel": "Spotlight Property",
  "isSpotlight": true,
  "isReduced": false,
  "isRecentlyAdded": false,
  "isExclusive": false,
  "isPremium": false,
  "hasVirtualTour": true,
  "agentName": "Mann - Sydenham",
  "agentBranchId": 74008,
  "agentPhone": "020 8115 3261",
  "agentUrl": "https://www.onthemarket.com/agents/branch/mann-sydenham/",
  "agentLogoUrl": "https://media.onthemarket.com/agents/companies/14676/260126142049904/logo-190x100.jpg",
  "agentContactUrl": "https://www.onthemarket.com/agents/contact/20345030/?form-name=details-contact",
  "keyFeatures": [
    "Tenure: Leasehold (87 years remaining)",
    "Nearest station 0.5mi.",
    "Nearest school 0.1mi."
  ],
  "imageUrl": "https://media.onthemarket.com/properties/20345030/1644537564/image-0-480x320.jpg",
  "imageUrls": [
    "https://media.onthemarket.com/properties/20345030/1644537564/image-0-480x320.jpg",
    "https://media.onthemarket.com/properties/20345030/1644537564/image-1-480x320.jpg",
    "https://media.onthemarket.com/properties/20345030/1644537564/image-2-480x320.jpg",
    "https://media.onthemarket.com/properties/20345030/1644537564/image-3-480x320.jpg",
    "https://media.onthemarket.com/properties/20345030/1644537564/image-4-480x320.jpg"
  ],
  "imageCount": 5,
  "searchUrl": "https://www.onthemarket.com/for-sale/property/london/"
}
```

### Notes and limits

- **On rent searches `price` is the rent amount** and `priceFrequency` indicates `pcm` (per calendar month) or `pw` (per week).
- **The site caps search pagination at 34 pages** (up to 1,020 listings per search query). For larger areas, query narrower location slugs.
- **Sponsored developer ad placements are filtered out** so only actual property listings are returned.
- **A search that matches nothing ends with a status message and no rows.** An unknown location slug ends as failed with the reason.
- Only property and houses are offered; other property types are not offered.
- Reads the same public pages a browser does. See the disclaimer at the top.

### How much does it cost to scrape OnTheMarket?

Pay-per-event: you pay per result written to the dataset, with no subscription. The current
price is on the Actor's Pricing tab.

### FAQ

**How do I find a location slug?** Search on onthemarket.com and copy the location slug from the search URL, for example `london` from `/for-sale/property/london/` or `manchester` from `/to-rent/property/manchester/`.

**Why does the search stop at page 34?** OnTheMarket enforces a ceiling of 34 pages (1,020 listings) on search results.

### More marketplace scrapers

| Actor | What it scrapes |
|---|---|
| [Rightmove Scraper](https://apify.com/reventadata/rightmove-scraper) | Rightmove, UK: property listings |
| [Zoopla Scraper](https://apify.com/reventadata/zoopla-scraper) | Zoopla, UK: property listings |
| [Otodom Scraper](https://apify.com/reventadata/otodom-scraper) | Otodom, Poland: property listings |

# Actor input Schema

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

Properties for sale or to rent.

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

All property types or houses only. Only the two options listed here are offered.

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

Location name slug as it appears in an OnTheMarket search URL, for example "london", "manchester", or "newcastle-upon-tyne". An unknown location stops the run with an error.

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

Hard cap on rows pushed across all pages.

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

Optional cap on result pages (30 listings each; the site ceiling is 34 pages). Without it the run walks every page the site reports, or stops at Maximum rows.

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

Optional. Left off by default; turn it on only if you see request failures.

## Actor input object example

```json
{
  "transaction": "buy",
  "propertyType": "property",
  "location": "london",
  "maxItems": 10,
  "maxPages": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

Property listings: price, address, coordinates, bedrooms, bathrooms, agent details and a link to the listing.

# 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 = {
    "location": "london",
    "maxItems": 10,
    "maxPages": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("reventadata/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 = {
    "location": "london",
    "maxItems": 10,
    "maxPages": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("reventadata/onthemarket-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "location": "london",
  "maxItems": 10,
  "maxPages": 1
}' |
apify call reventadata/onthemarket-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,reventadata/onthemarket-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/CrBo1WNPfRpXFfNCe/builds/ekLsTXVv916lLZA7G/openapi.json
