I built this actor; it's a paid tool on Apify with a free trial credit. This article was drafted with AI and published by me.
OnTheMarket is one of the UK's three big property portals, next to Rightmove and Zoopla, and some agents list there first ("Only With Us"). If you are checking what two-bed flats rent for around SW11, or which listings in a postcode district were just reduced, you want rows in a spreadsheet, not a page you scroll. OnTheMarket has no export and no public API.
I built OnTheMarket Scraper to turn OnTheMarket searches into clean JSON over plain HTTP. This post shows how to call it from Python, what a row looks like, and two small scripts: a median rent table by bedroom count, and a feed of reduced listings.
How it works
You give it locations the way OnTheMarket writes them in its URLs (london, manchester, sw11, camden-north-west-london) or paste OnTheMarket search URLs, and pick for-sale, to-rent or new-homes. The actor reads the search result pages with no browser and no login. With includeDetails: true it also opens each property page for the full postcode, description, tenure, council tax band, EPC rating, nearest stations, floor plans and brochure.
Two things worth knowing up front:
- OnTheMarket's robots.txt bars automated programs from price, bedroom-range, sort and radius URL parameters. The actor identifies itself with its own user agent, reads robots.txt on every run and skips barred pages. Price and bedroom limits (
minPrice,maxPrice,minBedrooms,maxBedrooms) are applied as filters on the results instead, and filtered rows are not charged. - One search shows at most 34 pages (about 1,000 properties). To go further, split by exact bedroom count (
bedrooms: ["1", "2", "3"]runs one search per count), property type, or smaller areas.
In my local test run on 21 Nov 2026, the default input (60 London homes for sale) took 2.5 seconds and 3 requests; 30 Manchester homes with details took 24.5 seconds.
Calling it from Python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("rel8ble/onthemarket-scraper").call(run_input={
"locations": ["bristol", "leeds"],
"searchType": "for-sale",
"propertyType": "houses",
"maxPrice": 300000,
"includeDetails": True,
"maxResultsPerSearch": 100,
})
for p in client.dataset(run["defaultDatasetId"]).iterate_items():
print(p["price"], "|", p["bedrooms"], "bed", p["propertyType"], "|", p["address"],
"|", p["postcode"], p["tenure"], "tax", p["councilTaxBand"], "EPC", p["epcRating"],
"|", p["agentName"], p["agentPhone"])
What a row looks like
A real row from the default London run (photo list trimmed; details off, so the detail fields are null):
{
"propertyId": "19948144",
"url": "https://www.onthemarket.com/details/19948144/",
"title": "1 bedroom flat for sale",
"propertyType": "Flat",
"bedrooms": 1,
"bathrooms": 1,
"price": "£225,000",
"priceValue": 225000,
"priceFrequency": null,
"priceQualifier": "Offers in excess of",
"shortPrice": "£225k",
"address": "Warton Road, LONDON, London, E15",
"latitude": 51.536757,
"longitude": -0.007762,
"features": ["Tenure: Leasehold (106 years remaining)", "Nearest station 0.3mi.", "Nearest school 0.1mi."],
"addedOrReduced": "Reduced today",
"isReduced": true,
"label": "Reduced today",
"hasVirtualTour": true,
"agentName": "Bairstow Eves - Leytonstone",
"agentPhone": "020 4645 2930",
"agentId": "73381",
"searchType": "for-sale",
"postcode": null,
"tenure": null,
"councilTaxBand": null,
"epcRating": null,
"nearestStations": [],
"keyInfo": {},
"inputSearch": "london",
"scrapedAt": "2026-11-21T16:00:27.347Z"
}
priceValue is the first pound amount as a number. For lettings it is the monthly rent and priceFrequency is "pcm", while price keeps the original text. With details on, a Manchester row reads for example "postcode": "M40 1QD", "tenure": "Freehold", "councilTaxBand": "C", "epcRating": "B", and nearestStations is a list of {name, distance}. Every key fact OnTheMarket shows (deposit, furnishing, heating, broadband) lands in keyInfo.
Project 1: median rent by bedrooms in a few postcode districts
bedrooms takes exact counts and runs one search per count, which also gets you past the per-search cap. Then group on inputSearch and bedrooms:
from collections import defaultdict
from statistics import median
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
DISTRICTS = ["sw11", "e14", "m14"]
run = client.actor("rel8ble/onthemarket-scraper").call(run_input={
"locations": DISTRICTS,
"searchType": "to-rent",
"propertyType": "flats-apartments",
"bedrooms": ["1", "2", "3"],
"maxResultsPerSearch": 0,
})
rents = defaultdict(list)
for p in client.dataset(run["defaultDatasetId"]).iterate_items():
if p["priceValue"] and p["priceFrequency"] == "pcm" and p["bedrooms"] is not None:
rents[(p["inputSearch"], p["bedrooms"])].append(p["priceValue"])
print(f'{"district":<8} {"beds":>4} {"n":>4} {"median pcm":>11}')
for (district, beds), values in sorted(rents.items()):
print(f'{district:<8} {beds:>4} {len(values):>4} {median(values):>11,.0f}')
Rows without a monthly price (for example "POA" or a weekly-only price) are skipped rather than guessed. Asking rents are not achieved rents, but the table is a quick, honest first read on an area.
Project 2: a reduced-listings feed
Every row carries isReduced and the addedOrReduced text ("Reduced today", "Reduced < 7 days"), plus a stable propertyId. Keep the ids you have seen in a file and you only print each reduction once:
import json, os
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
SEEN = "otm_seen.json"
seen = set(json.load(open(SEEN))) if os.path.exists(SEEN) else set()
run = client.actor("rel8ble/onthemarket-scraper").call(run_input={
"locations": ["sw11", "sw12", "sw17"],
"searchType": "for-sale",
"minBedrooms": 2,
"maxPrice": 650000,
"maxResultsPerSearch": 0,
})
for p in client.dataset(run["defaultDatasetId"]).iterate_items():
key = f'{p["propertyId"]}:{p["priceValue"]}'
if not p["isReduced"] or key in seen:
continue
seen.add(key)
print(f'{p["addedOrReduced"]:<18} {p["price"]:>11} {p["bedrooms"]} bed {p["propertyType"]:<22} {p["address"]} ({p["agentName"]}, {p["agentPhone"]})')
json.dump(sorted(seen), open(SEEN, "w"))
Keying on id plus price means a second reduction on the same property shows up again. Run it on an Apify schedule or with cron and pipe the output into Slack or a Google Sheet through Make, Zapier or n8n.
Pricing and limits
$0.40 per 1,000 properties (live Apify Store price on 26 Nov 2026), details included, no start fee. Filtered rows, duplicates and failed requests are not charged, so a 60-row run costs about $0.024. Limits: about 1,000 properties per search (split by bedrooms, type or area for more), price and bedroom limits work as result filters rather than URL parameters, lettings carry no tenure, and council tax is often "Ask agent" on lettings (the band is then null and the text stays in keyInfo). Only agent-published listing data is collected, no buyer, tenant or vendor personal data. The actor is not affiliated with OnTheMarket.
If you also need Rightmove, the same approach is in my earlier post on the Rightmove Scraper; the two together cover most UK listings.
Store page: https://apify.com/rel8ble/onthemarket-scraper
Need a custom scraper or a ready dataset? Hire me on Fiverr: https://www.fiverr.com/rel8ble
Top comments (0)