Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    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.

    Inputs of onthemarket.search
    FieldTypeDescription
    locationrequiredstringThe 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_priceintegerThe lowest price in pounds; for a property to rent, the lowest monthly rent.Limit: 0 to 100000000.
    max_priceintegerThe highest price in pounds; for a property to rent, the highest monthly rent.Limit: 1 to 100000000.
    min_bedroomsintegerAt least this many bedrooms; 0 is a studio.Limit: 0 to 10.
    max_bedroomsintegerAt most this many bedrooms.Limit: 0 to 10.
    radius_milesnumberAlso 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".
    pageintegerThe 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.

    Record fields of onthemarket.search
    FieldTypeNotes
    positioninteger or nullThe property's place on its results page, from 1, counted across pages. Null for onthemarket.property.
    pageinteger or nullThe results page the property is on. Null for onthemarket.property.
    property_idstringOnTheMarket's id of the property.
    urlstringThe property's page.
    listing_typestringfor_sale or to_rent.
    titlestring or nullThe advert's title, e.g. 3 bedroom semi-detached house for sale.
    property_typestring or nullThe kind of property as OnTheMarket names it, e.g. Semi-detached house, Flat.
    addressstring or nullThe address as the advert shows it: usually the street, the town and the postcode district, not the house number.
    priceinteger or nullThe asking price in pounds; for a property to rent, the rent per price_frequency. Null where the advert states none.
    price_textstring or nullThe price as the page prints it, e.g. £800,000, £1,600 pcm (£369 pw).
    price_qualifierstring or nullWhat the agent says of the price, e.g. Guide price, Offers over, Shared ownership.
    price_frequencystring or nullFor a property to rent, what the rent in price is for: monthly or weekly. Null for a property for sale.
    bedroomsinteger or nullThe number of bedrooms; 0 for a studio. Null where the advert states none (land, a plot).
    bathroomsinteger or nullThe number of bathrooms. Null where the advert states none.
    latitudenumber or nullThe latitude of the property's point on the map, in decimal degrees.
    longitudenumber or nullThe longitude of that point.
    featuresarray of stringFrom 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.
    imagesarray of stringThe advert's photos, in its order: those a results page shows, or every one, larger, from the property's page.
    labelstring or nullThe label the page puts on the advert, e.g. Reduced, Added today, New home.
    added_or_reducedstring or nullWhen the advert was added or last reduced, as the page prints it, e.g. Added yesterday, Reduced today.
    is_featuredbooleanTrue for an advert the agent paid to have shown at the top or highlighted.
    agent_namestring or nullThe estate agent's or developer's branch marketing the property.
    agent_telephonestring or nullThe branch's telephone number, as the page shows it.
    agent_urlstring or nullThe branch's page on OnTheMarket.
    descriptionstring or nullThe advert's full description, with its paragraphs kept. From onthemarket.property only.
    tenurestring or nullThe tenure the advert states, e.g. Freehold, Leasehold. From onthemarket.property only.
    council_tax_bandstring or nullThe council tax band the advert states, e.g. Band D. From onthemarket.property only.
    floor_area_sqftinteger or nullThe floor area the advert states, in square feet. From onthemarket.property only.
    floor_area_sqminteger or nullThe same floor area in square metres. From onthemarket.property only.
    epc_ratingstring or nullThe energy performance certificate's rating, A to G, where the advert states it. From onthemarket.property only.
    floorplansarray of stringThe advert's floor plans as images. From onthemarket.property only.
    stationsarray of objectThe stations nearest the property, nearest first. From onthemarket.property only.
    name (in stations[])stringA railway, Underground or tram station near the property, as the page names it.
    distance (in stations[])string or nullHow far it is, as the page prints it, e.g. 0.2mi..
    is_new_homeboolean or nullTrue for a newly built home. From onthemarket.property only.
    fetched_atstring (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_low

    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:

    JSON
    {
      "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.

    JSON
    {
      "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.

    JSON
    {
      "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.