Scraper APIOnTheMarket
onthemarket.search
A page of the properties OnTheMarket lists for a place in the United Kingdom, for sale or to rent: price, bedrooms, address, map point, key features, photos and the agent.
- Id
onthemarket.search- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/onthemarket.search/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
locationrequired | string | The place as OnTheMarket's own addresses name it, e.g. manchester, north-london, nw7, or the address of a results page on onthemarket.com, from which the place is taken.Limit: at least 2 characters, at most 300 characters. |
listing_type | "for_sale" | "to_rent" | Properties for_sale or to_rent.Default: "for_sale". |
property_type | "house" | "flat" | "bungalow" | "land" | "commercial" | "farm" | "park_home" | Only this kind of property: house, flat, bungalow, land, commercial, farm or park_home. |
min_price | integer | The lowest price in pounds; for a property to rent, the lowest monthly rent.Limit: 0 to 100000000. |
max_price | integer | The highest price in pounds; for a property to rent, the highest monthly rent.Limit: 1 to 100000000. |
min_bedrooms | integer | At least this many bedrooms; 0 is a studio.Limit: 0 to 10. |
max_bedrooms | integer | At most this many bedrooms.Limit: 0 to 10. |
radius_miles | number | Also search this far around the place, in miles: 0.25, 0.5, 1, 3, 5, 10, 15, 20, 30 or 40. |
sort | "recommended" | "newest" | "price_high" | "price_low" | The order of the results.Default: "recommended". |
page | integer | The results page, from 1; 30 properties a page, and OnTheMarket serves at most 34 pages.Limit: 1 to 34. Default: 1. |
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
position | integer or null | The property's place on its results page, from 1, counted across pages. Null for onthemarket.property. |
page | integer or null | The results page the property is on. Null for onthemarket.property. |
property_id | string | OnTheMarket's id of the property. |
url | string | The property's page. |
listing_type | string | for_sale or to_rent. |
title | string or null | The advert's title, e.g. 3 bedroom semi-detached house for sale. |
property_type | string or null | The kind of property as OnTheMarket names it, e.g. Semi-detached house, Flat. |
address | string or null | The address as the advert shows it: usually the street, the town and the postcode district, not the house number. |
price | integer or null | The asking price in pounds; for a property to rent, the rent per price_frequency. Null where the advert states none. |
price_text | string or null | The price as the page prints it, e.g. £800,000, £1,600 pcm (£369 pw). |
price_qualifier | string or null | What the agent says of the price, e.g. Guide price, Offers over, Shared ownership. |
price_frequency | string or null | For a property to rent, what the rent in price is for: monthly or weekly. Null for a property for sale. |
bedrooms | integer or null | The number of bedrooms; 0 for a studio. Null where the advert states none (land, a plot). |
bathrooms | integer or null | The number of bathrooms. Null where the advert states none. |
latitude | number or null | The latitude of the property's point on the map, in decimal degrees. |
longitude | number or null | The longitude of that point. |
features | array of string | From onthemarket.search: the points the results page lists, the tenure, a label and the nearest station OnTheMarket adds among the agent's first key features. From onthemarket.property: every key feature, as the agent wrote them. |
images | array of string | The advert's photos, in its order: those a results page shows, or every one, larger, from the property's page. |
label | string or null | The label the page puts on the advert, e.g. Reduced, Added today, New home. |
added_or_reduced | string or null | When the advert was added or last reduced, as the page prints it, e.g. Added yesterday, Reduced today. |
is_featured | boolean | True for an advert the agent paid to have shown at the top or highlighted. |
agent_name | string or null | The estate agent's or developer's branch marketing the property. |
agent_telephone | string or null | The branch's telephone number, as the page shows it. |
agent_url | string or null | The branch's page on OnTheMarket. |
description | string or null | The advert's full description, with its paragraphs kept. From onthemarket.property only. |
tenure | string or null | The tenure the advert states, e.g. Freehold, Leasehold. From onthemarket.property only. |
council_tax_band | string or null | The council tax band the advert states, e.g. Band D. From onthemarket.property only. |
floor_area_sqft | integer or null | The floor area the advert states, in square feet. From onthemarket.property only. |
floor_area_sqm | integer or null | The same floor area in square metres. From onthemarket.property only. |
epc_rating | string or null | The energy performance certificate's rating, A to G, where the advert states it. From onthemarket.property only. |
floorplans | array of string | The advert's floor plans as images. From onthemarket.property only. |
stations | array of object | The stations nearest the property, nearest first. From onthemarket.property only. |
name (in stations[]) | string | A railway, Underground or tram station near the property, as the page names it. |
distance (in stations[]) | string or null | How far it is, as the page prints it, e.g. 0.2mi.. |
is_new_home | boolean or null | True for a newly built home. From onthemarket.property only. |
fetched_at | string (date-time) | When the page was read, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/onthemarket.search/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"location":"leeds","sort":"price_low"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("onthemarket.search", {
"location": "leeds",
"sort": "price_low",
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("onthemarket.search", {
location: "leeds",
sort: "price_low",
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "onthemarket.search", map[string]any{"location": "leeds", "sort": "price_low"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("onthemarket.search", Map.of("location", "leeds", "sort", "price_low"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run onthemarket.search --input location=leeds --input sort=price_lowInstall it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"location": "leeds",
"sort": "price_low"
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "onthemarket.search",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"location": "leeds",
"sort": "price_low"
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"position": 1,
"page": 1,
"property_id": "19966228",
"url": "https://www.onthemarket.com/details/19966228/",
"listing_type": "for_sale",
"title": "3 bedroom detached house for sale",
"property_type": "Detached house",
"address": "Linton Road, Alwoodley, Leeds",
"price": 475000,
"price_text": "£475,000",
"price_qualifier": null,
"price_frequency": null,
"bedrooms": 3,
"bathrooms": 1,
"latitude": 53.855201,
"longitude": -1.522944,
"features": [
"Tenure: Freehold",
"Immaculate move in ready property",
"Recently renovated from top to bottom"
],
"images": [
"https://media.onthemarket.com/properties/19966228/1630628731/image-0-480x320.jpg",
"https://media.onthemarket.com/properties/19966228/1630628731/image-1-480x320.jpg",
"https://media.onthemarket.com/properties/19966228/1630628731/image-2-480x320.jpg"
],
"label": "Spotlight Property",
"added_or_reduced": "Added > 14 days",
"is_featured": true,
"agent_name": "Hunters - North Leeds",
"agent_telephone": "0113 427 8907",
"agent_url": "https://www.onthemarket.com/agents/branch/hunters-north-leeds/",
"description": null,
"tenure": null,
"council_tax_band": null,
"floor_area_sqft": null,
"floor_area_sqm": null,
"epc_rating": null,
"floorplans": [],
"stations": [],
"is_new_home": null,
"fetched_at": "2026-11-19T18:07:41.039970Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
features: 4 items, the first 3 shown. - Shortened:
images: 5 items, the first 3 shown.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the OnTheMarket scrapers are in their own section there.