# OnTheMarket Scraper (`ribtools/onthemarket-scraper`) Actor

Scrape OnTheMarket.com property for sale, to rent and new homes from any search, map, agent, development or ad URL, or by place: price, bedrooms, address and map pin, photos, estate agent and office phone, EPC, tenure and material information.

- **URL**: https://apify.com/ribtools/onthemarket-scraper.md
- **Developed by:** [RibTools](https://apify.com/ribtools) (community)
- **Categories:** Real estate, Lead generation, 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.99 / 1,000 property data 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

## OnTheMarket Scraper

Scrape UK houses for sale, flats to rent and new homes from OnTheMarket.com: price, bedrooms, address and map pin, photos, tenure and the estate agent, from any search URL or by place.

### What is OnTheMarket Scraper?

**OnTheMarket Scraper** is a powerful data extraction tool that automatically collects property listings from [OnTheMarket](https://www.onthemarket.com), the UK's third property portal after Rightmove and Zoopla, with homes listed by estate agents and developers (including "Only with us" homes you won't find on the other portals). Search by **place** (a county or area and a town or neighbourhood, or a postcode) or paste **OnTheMarket URLs**, and get structured data including price and price qualifier, bedrooms, bathrooms, display address and outcode, map pin, photos, tenure, the branch's trading name and, with the add-ons, the full description, key information, EPC and the agent's office phone.

This scraper handles pagination and data normalization automatically, delivering clean, structured datasets ready for analysis or integration into your systems.

### What can this Actor do?

- **Extract comprehensive property data** — price, qualifier, transaction, property type, bedrooms, bathrooms, address, outcode, map pin, photos, tenure, chain-free, "Only with us", estate agent
- **Handle multiple entry points** — a place search, any search URL (for sale, to rent, new homes, student, commercial; any filters, map view), agent branch pages, developments and single ads
- **Automatic pagination** — crawls through all search result pages; past OnTheMarket's 1,000-result limit it splits the search by price band
- **Premium proxies included** — high-quality residential proxies built in at no additional cost
- **Structured output** — JSON, CSV, Excel formats available
- **API integration** — real-time data access through Apify API
- **Scheduled runs** — automated daily/weekly data collection, newest first

### What data can OnTheMarket Scraper extract?

| Field | Description | Example |
| ----- | ----------- | ------- |
| **id** | OnTheMarket's listing id | `20729806` |
| **url** | Public ad URL | `https://www.onthemarket.com/details/20729806/` |
| **title** | Ad title as shown | `2 bedroom apartment for sale` |
| **property_type** | OnTheMarket's property type | `Apartment` |
| **transaction** | `sale` or `rent` | `sale` |
| **section** | for-sale, to-rent, new-homes or student | `for-sale` |
| **price** | Price in pounds (monthly rent on lets) | `475000` |
| **price_qualifier** | Guide price, Offers over, Shared ownership… | `Guide price` |
| **price_period** / **price_per_week** | Rent period and the weekly rent shown | `month`, `323` |
| **bedrooms** / **bathrooms** | Rooms | `2`, `1` |
| **area_sqft** / **area_m2** | Floor area when the listing gives it | `697`, `64.8` |
| **display_address** | Address line as shown | `Battersea Rise, SW11` |
| **postcode_district** | Outcode | `SW11` |
| **latitude** / **longitude** | Map pin | `51.46083`, `-0.164533` |
| **tenure** | Freehold, Leasehold… | `Leasehold` |
| **is_chain_free** / **is_reduced** / **is_exclusive** | Chain-free, reduced, "Only with us" | `false` |
| **listing_age_label** | Added today, Reduced < 14 days… | `Added today` |
| **photos** | Photo URLs (1024 px) | `["https://media.onthemarket.com/…-1024x1024.jpg"]` |
| **badges** / **features** | Card labels and feature bullets | `["Added today"]` |
| **seller_type** / **seller_name** / **seller_url** | Estate agent or developer branch | `agency`, `Rampton Baseley - Battersea` |
| **details** | Property details add-on: description, key information, EPC, every photo, floor plans, brochures, tours, stations, schools | object |
| **seller** | Agent data add-on: branch trading name, office phone, profile, logo | object |

### How to scrape OnTheMarket

#### Step-by-step tutorial:

1. **Fill a place** — a **County or area** (`London`) and a **Town, borough or neighbourhood** (`Nine Elms`), or a **Postcode** (`SW11 8NU`); or paste OnTheMarket URLs
2. **Configure options** (optional) — buy, rent or new homes, property types, price, bedrooms, radius, added to site, new builds, sort, **Max results per search**, the add-ons
3. **Run the scraper** — Click "Start"; the status message reads back what it searches
4. **Download results** — Export data in JSON, CSV, or Excel format

Proxies are included automatically — no setup required.

#### Compatible URL examples:

- **Search, any filters**: `https://www.onthemarket.com/for-sale/property/london/?max-price=600000&min-bedrooms=2`
- **To rent, page N**: `https://www.onthemarket.com/to-rent/property/manchester/?page=3` (starts at page 3)
- **Property type and bedroom paths**: `https://www.onthemarket.com/for-sale/2-bed-houses/london/`, `…/flats-apartments/…`, `…/studio/…`
- **Postcode and outcode**: `https://www.onthemarket.com/for-sale/property/sw11/`, `…/sw11-8nu/?radius=0.5`
- **New homes**: `https://www.onthemarket.com/new-homes/property/london/`
- **Map view**: `https://www.onthemarket.com/for-sale/property/london/?view=map`
- **Student lets**: `https://www.onthemarket.com/student/property/university-of-leeds-1/`
- **Commercial**: `https://www.onthemarket.com/for-sale/commercial/property/leeds/`
- **Agent branch**: `https://www.onthemarket.com/agents/branch/mann-beckenham/` (its homes for sale and to rent)
- **Development**: `https://www.onthemarket.com/new-homes/developers/development/heron-wharf-74816/`
- **Ad**: `https://www.onthemarket.com/details/20729806/` (gallery, share and contact links too)

`onthemarket.com` without `www` works too. **Important**: Only URLs matching these patterns will work; landing pages, sold prices, valuations and overseas pages are skipped with a warning.

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

OnTheMarket Scraper uses **pay-per-result (PPR)** pricing — you only pay for successfully extracted properties.

#### Is scraping OnTheMarket free?

The scraper follows Apify's PPR model with the following structure:

- **Base extraction**: every property returned, from the search results (no extra request per property)
- **Add-ons**: the property details add-on (each ad page) and the agent data add-on, each charged only for the properties that got it

Pricing is optimized for efficiency, using minimal compute units while maintaining high success rates. Contact support for volume discounts on large-scale projects.

### Input configuration

The scraper accepts the following inputs:

#### County or area

The area the place sits in, as OnTheMarket's search box names it: a county (`Surrey`, `Greater Manchester`), `London`, or a town for its neighbourhoods (`Manchester` for Didsbury). Alone it searches the whole county or area.

#### Town, borough or neighbourhood

A town, London borough or neighbourhood inside the county or area: `Nine Elms`, `Camden`, `Richmond`, `Didsbury`. A name OnTheMarket lists in several places is refused with the candidates (never guessed): add the county or area.

#### Postcode

Instead of a place: an outcode (`SW11`), a postal sector (`SW11 5`) or a full postcode (`SW11 8NU`). Widen it with the search radius.

#### OnTheMarket URLs

Any of the compatible URLs above, one per line. A URL keeps its own filters.

#### Max results per search

Maximum properties for the place search and for each URL (default 10). OnTheMarket pages a search only to 1,000 results; above that, and when this limit asks for more, the scraper splits the search into price bands.

#### Buy, rent or new homes

For sale (default), to rent, or OnTheMarket's new-homes section.

#### Property types

Detached, semi-detached, terraced, bungalow, flats / apartments, farms / land, park homes; empty means all.

#### Price from (£)

Lowest price: the asking price for sales, the monthly rent for lets.

#### Price to (£)

Highest price: the asking price for sales, the monthly rent for lets.

#### Bedrooms from

Fewest bedrooms (0 includes studios).

#### Bedrooms to

Most bedrooms; empty for no limit.

#### Search radius

This area only, or +¼ to +40 miles, as OnTheMarket's own list.

#### Added to site

Any time, or the last 24 hours, 3 days or 7 days.

#### New-build homes

For sale only: include new builds (default), leave them out, or show only them.

#### Sort

OnTheMarket's own order (Recommended) or newest first (most recently added or reduced). Use newest first for scheduled monitoring runs.

#### Property details add-on

Also reads each property's ad page: full description, key information (tenure and years left, service charge, ground rent, council tax band, broadband), EPC rating, every photo, floor plans, brochures, virtual tour, nearest stations and schools. Charged per property with details.

#### Agent data add-on

Also returns the estate agent's or developer's branch: trading name, office phone, profile page and logo (and the office address for ad URLs). Charged per property with an office phone.

### Output example

```json
{
  "type": "property",
  "id": 20729806,
  "url": "https://www.onthemarket.com/details/20729806/",
  "title": "2 bedroom apartment for sale",
  "property_type": "Apartment",
  "transaction": "sale",
  "section": "for-sale",
  "category": "residential",
  "is_new_home": false,
  "price": 475000,
  "currency": "GBP",
  "price_qualifier": null,
  "price_period": null,
  "price_per_week": null,
  "price_per_m2": null,
  "area_sqft": null,
  "area_m2": null,
  "bedrooms": 2,
  "bathrooms": 1,
  "display_address": "Battersea Rise, SW11",
  "postcode_district": "SW11",
  "latitude": 51.46083,
  "longitude": -0.164533,
  "tenure": "Leasehold",
  "is_chain_free": false,
  "is_reduced": false,
  "is_exclusive": false,
  "listing_age_label": "Added today",
  "photos": [
    "https://media.onthemarket.com/properties/20729806/1657728038/image-0-1024x1024.jpg",
    "https://media.onthemarket.com/properties/20729806/1657728038/image-1-1024x1024.jpg"
  ],
  "badges": ["Added today"],
  "features": ["Two Bedrooms", "One Bathroom", "Reception Room", "Kitchen"],
  "is_promoted": false,
  "is_highlighted": false,
  "seller_type": "agency",
  "seller_id": "41599",
  "seller_name": "Rampton Baseley - Battersea",
  "seller_url": "https://www.onthemarket.com/agents/branch/rampton-baseley-battersea/",
  "search": "https://www.onthemarket.com/for-sale/property/sw11/",
  "details": {
    "description": "Sample description (the agent's text).",
    "summary": "Sample summary.",
    "feature_bullets": ["Two Bedrooms", "One Bathroom", "Reception Room", "Kitchen"],
    "material_info": {"Tenure": "Leasehold | 89 yrs left", "Council tax": "Band C"},
    "epc_rating": null,
    "photo_count": 10,
    "floorplans": [
      "https://media.onthemarket.com/properties/20729806/1657728038/floor-plan-0-1024x1024.jpg"
    ],
    "brochure_urls": ["https://assets.reapit.net/rab/live/pdf.php?p=BAS240257&t=S"],
    "stations": [{"name": "Clapham Junction Station", "distance": "0.3mi."}],
    "schools": [{"name": "Belleville Primary School", "distance": "0.3mi."}],
    "property_labels": ["Study"],
    "is_new_home": false,
    "is_development": false,
    "city": "London",
    "breadcrumbs": ["UK", "Greater London"],
    "latitude": 51.46083,
    "longitude": -0.164533
  },
  "seller": {
    "id": "41599",
    "name": "Rampton Baseley - Battersea",
    "phone": "020 0000 0000",
    "profile_url": "https://www.onthemarket.com/agents/branch/rampton-baseley-battersea/",
    "logo_url": "https://media.onthemarket.com/agents/companies/3874/160505084702743/logo-190x100.png",
    "company": "Rampton Baseley",
    "address": "131 Northcote Road\nBattersea\nSW11 6PS",
    "postcode": "SW11 6PS"
  }
}
```

You can download the dataset extracted by **OnTheMarket Scraper** in various formats such as **JSON, HTML, CSV, or Excel**. The data is automatically cleaned and normalized for immediate use in analysis tools, databases, or business applications.

### Use cases and applications

- **Market and price monitoring** — track asking prices, reductions and new listings by outcode, borough or town
- **Lead generation for property services** — estate agents' branches with office phones, by area and listing type
- **Investment research** — compare prices per square metre, tenure and rents across UK areas
- **Rental market analysis** — monthly and weekly rents, student lets and build-to-rent developments

### Use with ChatGPT, Claude or n8n

AI agents and automation tools can fill the place form directly (county or area, town or neighbourhood, or a postcode, plus filters), or pass OnTheMarket URLs. Run it from n8n, Make or Zapier on a schedule with **Sort: Newest first** to collect what is new.

### Integrations and API access

OnTheMarket Scraper seamlessly integrates with popular platforms:

- **Zapier** — Automate data workflows and notifications (via [Apify Zapier integration](https://docs.apify.com/platform/integrations/zapier))
- **Make (Integromat)** — Create complex automation scenarios (via [Apify Make integration](https://www.make.com/en/integrations/apify))
- **Google Sheets** — Direct data export for analysis
- **REST API** — Programmatic access to extracted data ([instructions here](https://docs.apify.com/academy/api/run-actor-and-retrieve-data-via-api))
- **Python/Node.js SDKs** — Easy integration into applications ([instructions here](https://docs.apify.com/academy/api/run-actor-and-retrieve-data-via-api#javascript-and-python-client))

### FAQ and Support

#### Do I need to configure a proxy?

No. The Actor includes high-quality UK residential proxies automatically at no additional cost. There's nothing to configure.

#### Why was my place skipped?

The place search runs only when OnTheMarket's own search box knows exactly one place by that name in that area. "Richmond" is in London, Sheffield and North Yorkshire: the run says so in its status message and lists the candidates, so add the county or area (`London`). A neighbourhood's area is its town ("Didsbury" is in "Manchester").

#### Does it collect personal data?

No. OnTheMarket lists estate agents and developers only; the scraper returns the branch's trading name and office phone, never a person's name or contact. The full postcode OnTheMarket keeps behind the page is not returned, only the outcode of the address it shows.

#### How often is the data updated?

OnTheMarket updates listings in real-time. For fresh data, schedule regular scraper runs or use our API for on-demand extraction.

#### What if some URLs don't work?

The scraper only supports specific URL patterns from OnTheMarket. Ensure your URLs match the compatible formats listed above. URLs outside these patterns will be automatically blocked.

#### Do you offer custom solutions?

Absolutely! We can customize the scraper for specific requirements, additional data points, or integration with your existing systems. Contact us through the Issues tab for enterprise solutions.

#### Need help or have feedback?

- **Report issues**: Use the Issues tab for bug reports and feature requests
- **Custom development**: Contact us for tailored solutions and enterprise integrations

# Changelog

This Actor's version history is a separate document: https://apify.com/ribtools/onthemarket-scraper/changelog.md

# Actor input Schema

## `county` (type: `string`):

The area the place sits in, as OnTheMarket's search box names it after the dash: a county (Surrey, Greater Manchester), London, or a town for its neighbourhoods (Manchester for Didsbury). Alone it searches the whole county or area.

## `city` (type: `string`):

A town, London borough or neighbourhood inside the county or area above: Nine Elms, Camden, Richmond, Didsbury. A name OnTheMarket lists in several places is refused with the candidates: add the county or area.

## `postcode` (type: `string`):

Instead of a place: an outcode (SW11), a postal sector (SW11 5) or a full UK postcode (SW11 8NU). Use the Search radius filter to widen it.

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

Searches (/for-sale/, /to-rent/, /new-homes/, /student/, commercial; any place, type, bedrooms, filters, map view), agent branch pages (/agents/branch/<slug>/), developments (/new-homes/developers/development/<slug>-<id>/) or ads (/details/<id>/). A URL keeps its own filters.

## `maxRequests` (type: `integer`):

Maximum number of properties for the place search and each URL above. Each result is a charged event. OnTheMarket pages a search only to 1,000 results; past that the actor splits it by price band. Default 10.

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

Homes for sale, to rent, or new homes (OnTheMarket's own new-homes section).

## `propertyTypes` (type: `array`):

Only these types (OnTheMarket's own filter list); empty means all.

## `priceFrom` (type: `integer`):

Lowest price to include, in pounds: the asking price for sales, the monthly rent for lets.

## `priceTo` (type: `integer`):

Highest price to include, in pounds: the asking price for sales, the monthly rent for lets.

## `bedroomsFrom` (type: `integer`):

Fewest bedrooms to include; 0 includes studios.

## `bedroomsTo` (type: `integer`):

Most bedrooms to include; 0 means studios only. Leave empty for no upper limit.

## `radius` (type: `string`):

Widen the place by this many miles, as OnTheMarket's own radius list.

## `addedWithin` (type: `string`):

Only homes added to OnTheMarket within this time.

## `newHomes` (type: `string`):

Homes for sale only: include new builds, leave them out, or show only them.

## `sort` (type: `string`):

Order of the place search: OnTheMarket's own (Recommended), or newest first (most recently added or reduced). A pasted URL keeps its own order.

## `detailsAddon` (type: `boolean`):

Also read each property's ad page: full description, key information (tenure and years left, service charge, ground rent, council tax band), EPC rating, every photo, floor plans, brochures, virtual tour, nearby stations and schools. Charged per item with details.

## `sellerDataAddon` (type: `boolean`):

Also return the estate agent's or developer's branch: trading name, office phone, profile page and logo (plus the office address for ad URLs). Charged per item with an office phone.

## Actor input object example

```json
{
  "county": "London",
  "city": "Nine Elms",
  "startUrls": [
    "https://www.onthemarket.com/for-sale/property/london/?max-price=600000",
    "https://www.onthemarket.com/details/20729806/"
  ],
  "maxRequests": 10,
  "transaction": "sale",
  "radius": "0",
  "addedWithin": "any",
  "newHomes": "include",
  "sort": "default",
  "detailsAddon": false,
  "sellerDataAddon": false
}
```

# Actor output Schema

## `items` (type: `string`):

All scraped items.

# 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 = {
    "county": "London",
    "city": "Nine Elms",
    "maxRequests": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("ribtools/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 = {
    "county": "London",
    "city": "Nine Elms",
    "maxRequests": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("ribtools/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 '{
  "county": "London",
  "city": "Nine Elms",
  "maxRequests": 10
}' |
apify call ribtools/onthemarket-scraper --silent --output-dataset

```

## MCP server setup

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