Skip to content

How to Scrape OnTheMarket | OnTheMarket Web Scraper

Learn how to scrape OnTheMarket to extract UK property listings, prices, and agent data. Essential guide for real estate investors and market analysts.

Free to start: 1,000 credits, no card, nothing to install.

Coverage:United Kingdom
Available Data10 fields
TitlePriceLocationDescriptionImagesSeller InfoContact InfoPosting DateCategoriesAttributes
All Extractable Fields
Property TitleListing PriceFull AddressPostcodeProperty TypeNumber of BedroomsNumber of BathroomsTenure (Freehold/Leasehold)Remaining Lease YearsFloor Area (sq ft/m)Agent NameAgent Phone NumberListing URLMain Image URLDescription TextNearest Station DistanceDate AddedOnly With Us Status
Technical Requirements
JavaScript Required
No Login
Has Pagination
No Official API
Anti-Bot Protection Detected
CloudflareCloudFrontRate LimitingIP BlockingreCAPTCHA

About OnTheMarket

Learn what OnTheMarket offers and what valuable data can be extracted from it.

Marketplace Overview

OnTheMarket is a premier UK property portal, launched in 2015 and currently majority-owned by the CoStar Group. It serves as a vital platform for estate agents to list residential and commercial properties for sale and rent across the United Kingdom. The site is a primary competitor to Rightmove and Zoopla, distinguished by its unique listing terms.

Data Availability

The platform hosts a massive repository of structured real estate information, including asking prices, detailed property specifications, high-resolution imagery, and floor plans. A significant feature is the "Only With Us" label, where properties appear on OnTheMarket 24 hours or more before being listed on other major portals, providing a distinct time advantage for data collection.

Scraping Potential

For real estate professionals and investors, scraping this platform is highly valuable for market analysis and trend tracking. Accessing this data at scale allows for the creation of automated valuation models (AVMs), competitive inventory monitoring, and the identification of motivated sellers through price drop detection without manual effort.

About OnTheMarket

Why Scrape OnTheMarket?

Discover the business value and use cases for extracting data from OnTheMarket.

Access Exclusive 24-Hour Listings

OnTheMarket features an 'Only With Us' tag for properties listed exclusively on their platform for 24 hours before other portals. Scraping this data allows investors to identify and act on new opportunities before they reach the wider market.

Granular Market Trend Analysis

Extracting historical price changes and reduction dates helps analysts identify market cooling or heating in specific UK postcodes. This structured data is essential for building predictive models for property value fluctuations.

Estate Agent Performance Tracking

By monitoring which agencies list the most properties and how quickly those listings move to 'Under Offer' status, competitors can gain insights into local agency market share and efficiency.

Lead Generation for B2B Services

Companies providing home staging, photography, or legal services can use scraped data to identify recently listed properties and the agencies representing them. This allows for highly targeted outreach based on real-time activity.

Automated Valuation Model Training

Collecting property attributes such as floor area, tenure, and proximity to stations provides the raw material needed to train machine learning models. These models help fintech and proptech companies provide instant appraisal tools.

Regional Demand Mapping

Scraping listing volumes across different regions like London, Manchester, and Birmingham allows researchers to map national property demand. This data helps urban planners and developers understand where new housing is most needed.

Scraping Challenges

Technical challenges you may encounter when scraping OnTheMarket.

Advanced Anti-Bot Firewalls

OnTheMarket utilizes robust security layers like Cloudflare and Akamai to detect and block automated traffic. Simple HTTP requests often result in 403 Forbidden errors or immediate IP blacklisting.

JavaScript-Heavy Rendering

The website is built using modern frameworks like React and Next.js, meaning content is rendered dynamically. Scrapers that cannot execute JavaScript will fail to see property prices, descriptions, and agent details.

Sophisticated Data Obfuscation

Key data points like phone numbers and exact coordinates are often hidden within complex JSON script tags rather than raw HTML. This requires scrapers to locate and parse internal state objects like window.__OTM_DATA__.

Dynamic Element Selectors

The platform frequently updates its front-end code, leading to changes in CSS class names and ID patterns. Static scrapers based on fixed selectors often break, requiring constant maintenance and updates.

Scrape OnTheMarket with AI

No coding required. Extract data in minutes with AI-powered automation.

How It Works

1

Describe What You Need

Tell the AI what data you want to extract from OnTheMarket. Just type it in plain language — no coding or selectors needed.

2

AI Extracts the Data

Our artificial intelligence navigates OnTheMarket, handles dynamic content, and extracts exactly what you asked for.

3

Get Your Data

Receive clean, structured data ready to export as CSV, JSON, or send directly to your apps and workflows.

Why Use AI for Scraping

Effortless Anti-Bot Navigation: Automatio is designed to bypass modern security measures like Cloudflare without requiring complex coding or manual header manipulation. It manages browser fingerprints and cookies to appear as a legitimate human user.
Automated Residential Proxy Rotation: By integrating high-quality UK residential proxies, Automatio ensures your scraping requests originate from real local home-seeker IPs. This significantly reduces the risk of rate limiting and permanent IP bans.
Visual Data Selection: You can select the property data you want to extract—such as price, agent, or tenure—by simply clicking on them in the browser. This eliminates the need to inspect complex HTML source code or write brittle XPath selectors.
Reliable Schedule-Based Scraping: Automatio allows you to set up recurring scraping tasks that run daily or even hourly. This is perfect for capturing 'Only With Us' listings the moment they go live, giving you a consistent competitive advantage.
No credit card requiredFree tier availableNo setup needed

No-Code Web Scrapers for OnTheMarket

Point-and-click alternatives to AI-powered scraping

Several no-code tools like Browse.ai, Octoparse, Axiom, and ParseHub can help you scrape OnTheMarket. These tools use visual interfaces to select elements, but they come with trade-offs compared to AI-powered solutions.

Typical Workflow with No-Code Tools

1
Install browser extension or sign up for the platform
2
Navigate to the target website and open the tool
3
Point-and-click to select data elements you want to extract
4
Configure CSS selectors for each data field
5
Set up pagination rules to scrape multiple pages
6
Handle CAPTCHAs (often requires manual solving)
7
Configure scheduling for automated runs
8
Export data to CSV, JSON, or connect via API

Common Challenges

Learning curve

Understanding selectors and extraction logic takes time

Selectors break

Website changes can break your entire workflow

Dynamic content issues

JavaScript-heavy sites often require complex workarounds

CAPTCHA limitations

Most tools require manual intervention for CAPTCHAs

IP blocking

Aggressive scraping can get your IP banned

Code Examples

import requests
from bs4 import BeautifulSoup

# OnTheMarket uses Cloudflare; standard requests often get 403 Forbidden
url = 'https://www.onthemarket.com/for-sale/property/london/'
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
}

try:
    response = requests.get(url, headers=headers)
    response.raise_for_status()
    soup = BeautifulSoup(response.text, 'html.parser')
    # Selectors may change; look for list items containing results
    listings = soup.select('li[id^="result-"]')
    for item in listings:
        price = item.select_one('a.text-xl').text.strip() if item.select_one('a.text-xl') else 'N/A'
        address = item.select_one('address').text.strip() if item.select_one('address') else 'N/A'
        print(f'Price: {price} | Address: {address}')
except Exception as e:
    print(f'Scraping failed: {e}')

When to Use

Best for static HTML pages where content is loaded server-side. The fastest and simplest approach when JavaScript rendering isn't required.

Advantages

  • ●Fastest execution (no browser overhead)
  • ●Lowest resource consumption
  • ●Easy to parallelize with asyncio
  • ●Great for APIs and static pages

Limitations

  • ●Cannot execute JavaScript
  • ●Fails on SPAs and dynamic content
  • ●May struggle with complex anti-bot systems

What You Can Do With OnTheMarket Data

Explore practical applications and insights from OnTheMarket data.

UK High-Yield Rental Scouting

Buy-to-let investors can identify properties with high potential ROI by comparing rental and sale data.

How to implement:

  1. 1Scrape sale listings and rental listings for the same postcodes.
  2. 2Match property types and bedroom counts to calculate yields.
  3. 3Identify areas where the price-to-rent ratio is most favorable.
  4. 4Filter for 'Only With Us' listings to secure deals before the wider market.

Use Automatio to extract data from OnTheMarket and build these applications without writing code.

More than just prompts

Supercharge your workflow with AI Automation

Automatio combines the power of AI agents, web automation, and smart integrations to help you accomplish more in less time.

AI Agents
Web Automation
Smart Workflows

What to get right first

Expert advice for successfully extracting data from OnTheMarket.

Parse the Internal OTM Data Script

Instead of parsing complex HTML, look for the script tag containing window.__OTM_DATA__ in the source code. This contains a structured JSON object with all the property details for that page in a much cleaner format.

Use Localized UK Proxies

Since OnTheMarket is a UK-focused site, using proxies based in London or other UK cities will lower the suspicion level of the anti-bot system. Data center IPs from outside the UK are much more likely to be challenged with CAPTCHAs.

Randomize Your Browsing Behavior

Introduce variable delays between page clicks and avoid following a strictly linear scraping path. Mimicking the erratic behavior of a real person looking for a house helps avoid triggering automated traffic alarms.

Target the Search Result JSON API

Observe the network tab while navigating search results to find the internal API endpoints used by the React front-end. Sometimes, hitting these endpoints directly with the right headers can be more efficient than full browser rendering.

Handle the Cookie Consent Wall

Ensure your scraper is configured to programmatically accept or dismiss the cookie consent banner. If the banner isn't cleared, it may overlay key elements and prevent the scraper from interacting with the data.

Monitor for Data Completeness

Some listing details only load as you scroll down the page due to lazy loading. Always ensure your scraper triggers a scroll-to-bottom action to ensure all images and descriptions are fully rendered before extraction.

Related Web Scraping

Frequently Asked Questions

Find answers to common questions about OnTheMarket

Is it legal to scrape OnTheMarket?

Scraping publicly available property listings for personal research or market analysis is generally legal. However, you should avoid scraping personal data or using the data in a way that violates UK database rights or their specific terms of service. Always consult with legal counsel if you plan to use the data for commercial redistribution.

Does OnTheMarket have an official API for developers?

No, OnTheMarket does not provide a public REST API for the general public or independent developers. They offer a Real Time Datafeed exclusively for estate agents and authorized software partners, making web scraping the primary alternative for others.

How can I avoid getting blocked by OnTheMarket?

The most effective method is using a combination of residential proxies and a headless browser that supports stealth mode. This allows you to bypass Cloudflare protection and mimic human behavior, which is essential given their aggressive rate limiting.

What format can I export the property data into?

Using modern scraping tools like Automatio, you can export the data into various formats including CSV, JSON, and XML. You can also sync the data directly into Google Sheets or a database for real-time monitoring and reporting.

How often should I scrape OnTheMarket for new listings?

For most market research, a daily scrape is sufficient. However, if you are tracking 'Only With Us' properties to gain a competitive edge, scraping every 4 to 6 hours is recommended to capture new listings as soon as they appear.

Which proxies work best for scraping UK property portals?

UK-based residential proxies are the gold standard for this task. They use IP addresses assigned to real households, making them nearly impossible for Cloudflare to distinguish from a legitimate house hunter compared to data center IPs.

Can I scrape images and floorplans from OnTheMarket?

Yes, you can extract the URLs for high-resolution images and floorplans. However, downloading these assets at scale requires significant bandwidth and may trigger security alerts, so it is best to scrape the URLs first and download them in a separate, slower process.

Does OnTheMarket require a login to see property prices?

No, property prices and most listing details are visible to the public without an account. This makes it easier to scrape compared to sites that hide data behind a login wall, though anti-bot measures are still a significant hurdle.