Scraper APIOnTheMarket
onthemarket.property
One property on OnTheMarket by its page: price, rooms, floor area, tenure, council tax band, energy rating, the full description, every photo and floor plan, nearby stations and the agent.
- Id
onthemarket.property- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/onthemarket.property/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 |
|---|---|---|
propertyrequired | string | The property's id on OnTheMarket, e.g. 20774770, or the address of its page, https://www.onthemarket.com/details/20774770/.Limit: at least 5 characters, at most 300 characters. |
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.property/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"property":"20774770"}}'
# 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.property", {"property": "20774770"})
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.property", { property: "20774770" });
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.property", map[string]any{"property": "20774770"})
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.property", Map.of("property", "20774770"));
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.property --input-json '{"property":"20774770"}'Install 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": {
"property": "20774770"
}
}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.property",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"property": "20774770"
},
"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": null,
"page": null,
"property_id": "20774770",
"url": "https://www.onthemarket.com/details/20774770/",
"listing_type": "for_sale",
"title": "3 bedroom semi-detached house for sale",
"property_type": "Semi-detached house",
"address": "Lee Road, London, NW7",
"price": 800000,
"price_text": "£800,000",
"price_qualifier": null,
"price_frequency": null,
"bedrooms": 3,
"bathrooms": 3,
"latitude": 51.605718,
"longitude": -0.211371,
"features": [
"Semi-detached family home",
"Modern",
"Extended"
],
"images": [
"https://media.onthemarket.com/properties/20774770/1659168196/image-0-1024x1024.jpg",
"https://media.onthemarket.com/properties/20774770/1659168196/image-1-1024x1024.jpg",
"https://media.onthemarket.com/properties/20774770/1659168196/image-2-1024x1024.jpg"
],
"label": "Added yesterday",
"added_or_reduced": "Added yesterday",
"is_featured": true,
"agent_name": "Martyn Gerrard - Mill Hill",
"agent_telephone": "020 8128 0693",
"agent_url": "https://www.onthemarket.com/agents/branch/martyn-gerrard-mill-hill/",
"description": "An impressive three/four bedroom semi-detached family home, tucked away in a peaceful cul-de-sac close to Mill Hill East Underground Station.\nOffering over 1,300 sq. ft. of accommodation, the property has been extended and modernised … [truncated]",
"tenure": "Freehold",
"council_tax_band": "Band D",
"floor_area_sqft": 721,
"floor_area_sqm": 67,
"epc_rating": "F",
"floorplans": [
"https://media.onthemarket.com/properties/20774770/1659168196/floor-plan-0-1024x1024.jpg"
],
"stations": [
{
"name": "Mill Hill East Underground",
"distance": "0.2mi."
},
{
"name": "Finchley Central Underground",
"distance": "0.9mi."
},
{
"name": "West Finchley Underground",
"distance": "1.0mi."
}
],
"is_new_home": false,
"fetched_at": "2026-11-19T18:07:41.031758Z"
}
],
"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: 10 items, the first 3 shown. - Shortened:
images: 25 items, the first 3 shown. - Shortened:
description: 1,001 characters, the first 233 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.