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.
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.

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
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.
AI Extracts the Data
Our artificial intelligence navigates OnTheMarket, handles dynamic content, and extracts exactly what you asked for.
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
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
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
from playwright.sync_api import sync_playwright
def scrape_otm():
with sync_playwright() as p:
browser = p.chromium.launch(headless=True)
# Use a stealth-like context
context = browser.new_context(user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36')
page = context.new_page()
page.goto('https://www.onthemarket.com/for-sale/property/london/', wait_until='networkidle')
# Wait for the results to hydrate
page.wait_for_selector('li[id^="result-"]')
listings = page.query_selector_all('li[id^="result-"]')
for prop in listings:
title = prop.query_selector('.text-sm.text-denim').inner_text()
price = prop.query_selector('.text-xl.font-bold').inner_text()
print({'title': title, 'price': price})
browser.close()
scrape_otm()When to Use
Use when content loads dynamically via JavaScript, or when you need to interact with the page (clicks, scrolls, form fills). Handles modern anti-bot detection better.
Advantages
- ●Executes JavaScript like a real browser
- ●Handles SPAs and dynamic content
- ●Better anti-bot evasion with stealth plugins
- ●Can take screenshots and PDFs
Limitations
- ●Slower than HTTP requests
- ●Higher memory/CPU usage
- ●More complex to set up
import scrapy
class OnTheMarketSpider(scrapy.Spider):
name = 'otm'
start_urls = ['https://www.onthemarket.com/for-sale/property/london/']
def parse(self, response):
# Targets the main listing container list items
for item in response.css('li[id^="result-"]'):
yield {
'price': item.css('.text-xl.font-bold::text').get(),
'address': item.css('address span::text').get(),
'agency': item.css('img::attr(alt)').get(),
'link': response.urljoin(item.css('a::attr(href)').get())
}
next_page = response.css('link[rel="next"]::attr(href)').get()
if next_page:
yield response.follow(next_page, self.parse)When to Use
Ideal for large-scale crawling projects that need to scrape thousands of pages. Built-in support for rate limiting, retries, and data pipelines.
Advantages
- ●Built for scale (millions of pages)
- ●Automatic request throttling
- ●Built-in data export pipelines
- ●Middleware system for proxies/headers
Limitations
- ●Steeper learning curve
- ●Overkill for small projects
- ●No native JavaScript rendering
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({ headless: true });
const page = await browser.newPage();
await page.setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36');
await page.goto('https://www.onthemarket.com/for-sale/property/london/', { waitUntil: 'networkidle2' });
const data = await page.evaluate(() => {
return Array.from(document.querySelectorAll('li[id^="result-"]')).map(li => ({
price: li.querySelector('.text-xl')?.innerText.trim(),
address: li.querySelector('address')?.innerText.trim()
}));
});
console.log(data);
await browser.close();
})();When to Use
Choose this if you're in a Node.js/JavaScript ecosystem or need tight integration with frontend tools. Similar capabilities to Playwright.
Advantages
- ●Native JavaScript/TypeScript support
- ●Chrome DevTools Protocol access
- ●Large ecosystem and community
- ●Good for JS-heavy projects
Limitations
- ●Chrome-only (vs Playwright's multi-browser)
- ●Similar overhead to Playwright
- ●Less mature stealth options
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:
- 1Scrape sale listings and rental listings for the same postcodes.
- 2Match property types and bedroom counts to calculate yields.
- 3Identify areas where the price-to-rent ratio is most favorable.
- 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.
Automated Market Inventory Reports
Analysts can track the number of new listings versus sold properties to determine market heat.
How to implement:
- 1Run a daily scrape of listings in major UK cities.
- 2Count 'New' versus 'Sold STC' or 'Under Offer' labels.
- 3Calculate the average days-on-market for different price brackets.
- 4Visualize inventory trends over time in a dashboard.
Use Automatio to extract data from OnTheMarket and build these applications without writing code.
Agency Market Share Analysis
Estate agents can track competitor listing volumes to adjust their local marketing strategies.
How to implement:
- 1Extract the 'Agent Name' from all listings in a specific local authority.
- 2Aggregate the data to see which agency holds the most listings.
- 3Monitor agency pricing strategies and commission-based price drops.
- 4Adjust outreach to vendors based on competitor performance.
Use Automatio to extract data from OnTheMarket and build these applications without writing code.
Proptech Valuation API
Startups can build valuation tools using live market data as a primary training source.
How to implement:
- 1Scrape historical and current listing data including square footage.
- 2Clean data and handle outliers in price or size.
- 3Train a regression model to predict property values based on local attributes.
- 4Provide real-time estimates to users via an external API.
Use Automatio to extract data from OnTheMarket and build these applications without writing code.
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.
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

How to Scrape Century 21 Property Listings

How to Scrape SeLoger Bureaux & Commerces

How to Scrape Rent.com: A Guide to Real Estate Data Extraction

How to Scrape Apartments.com | Apartments.com Web Scraper Guide

How to Scrape HotPads: A Complete Guide to Extracting Rental Data

How to Scrape Homes.com: Real Estate Data Extraction Guide

How to Scrape Geolocaux | Geolocaux Web Scraper Guide

How to Scrape RE/MAX (remax.com) Real Estate Listings
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.