# 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.

OnTheMarket search, one of the OnTheMarket scrapers.

| | |
| --- | --- |
| 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](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `location` | string | yes | 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" | no | Properties `for_sale` or `to_rent`. Default: `"for_sale"`. |
| `property_type` | "house" \| "flat" \| "bungalow" \| "land" \| "commercial" \| "farm" \| "park_home" | no | Only this kind of property: house, flat, bungalow, land, commercial, farm or park_home. |
| `min_price` | integer | no | The lowest price in pounds; for a property to rent, the lowest monthly rent. Limit: 0 to 100000000. |
| `max_price` | integer | no | The highest price in pounds; for a property to rent, the highest monthly rent. Limit: 1 to 100000000. |
| `min_bedrooms` | integer | no | At least this many bedrooms; 0 is a studio. Limit: 0 to 10. |
| `max_bedrooms` | integer | no | At most this many bedrooms. Limit: 0 to 10. |
| `radius_miles` | number | no | 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" | no | The order of the results. Default: `"recommended"`. |
| `page` | integer | no | 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. |
| `stations[].name` | string | A railway, Underground or tram station near the property, as the page names it. |
| `stations[].distance` | 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

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
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"}}'
```

## 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](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the OnTheMarket scrapers](https://docs.enrichednow.com/results-and-statuses.md#onthemarket) are in their own section there.
