Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    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.

    Inputs of onthemarket.property
    FieldTypeDescription
    propertyrequiredstringThe 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.

    Record fields of onthemarket.property
    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.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:

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

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

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