# OnTheMarket Scraper — UK Property Listings, Prices & Agents (`ocrad/onthemarket-scraper`) Actor

Scrape OnTheMarket.com UK property listings: prices, addresses, beds/baths, property type, agent + phone, images and full description from any search URL. Export JSON/CSV/Excel.

- **URL**: https://apify.com/ocrad/onthemarket-scraper.md
- **Developed by:** [Ocrad](https://apify.com/ocrad) (community)
- **Categories:** Real estate, Lead generation, Agents
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### OnTheMarket Property Scraper

***

By providing any onthemarket.com search URL, you can retrieve structured property data across multiple result pages.

***

#### **📋 Example Output**

**Basic record** (`detailedInfo: false`):

```json
{
  "id": "19457069",
  "url": "https://www.onthemarket.com/details/19457069/",
  "title": "1 bedroom apartment for sale",
  "price": "£385,000",
  "priceQualifier": null,
  "address": "Southmere Market Sale at Southmere, Thamesmead, Bexley SE2",
  "city": null,
  "typeAndIntro": "Apartment",
  "availability": "Spotlight Property",
  "tags": [
    "Spotlight Property"
  ],
  "imageUrl": "https://media.onthemarket.com/properties/19457069/1613870397/image-0-480x320.jpg",
  "bedrooms": "1",
  "bathrooms": null,
  "areaSize": null,
  "agentNames": null,
  "agencyName": "Peabody - Southmere Market Sale",
  "agencyPhone": "020 8139 8793",
  "scrapedAt": "2026-07-08T14:47:29.071Z"
}
```

**Detailed record** (`detailedInfo: true`, additional fields):

```json
{
  "levels": null,
  "livingSpaceArea": null,
  "propertyFeatures": {},
  "featureGroups": [
    {
      "groupName": "Features",
      "items": [
        "Part of an award-winning regeneration project",
        "Vibrant lakeside community in SE2",
        "Residents' concierge, lounge, cinema room & co-working space",
        "1, 2 & 3-bedroom apartments available now",
        "Elizabeth Line from nearby Abbey Wood station",
        "Move in summer 2026",
        "Anytime Fitness and more on-site",
        "Reserve this summer and get a £2,000 shopping voucher*"
      ]
    }
  ],
  "rooms": [],
  "images": [
    "https://media.onthemarket.com/properties/19457069/1613870397/image-0-81x55.jpg",
    "https://media.onthemarket.com/properties/19457069/1613870397/image-1-81x55.jpg",
    "https://media.onthemarket.com/properties/19457069/1613870397/image-2-81x55.jpg",
    "… 10 more"
  ],
  "description": "A brand new collection of stylish 1-bedroom apartments at Southmere in Thamesmead, SE2 - priced from £385,000, ready to move in from autumn 2026 £2,000 towards the life you love | Reserve before 31 Au…",
  "coordinates": {
    "lat": 51.500254,
    "lon": 0.121791
  }
}
```

#### ⚙️ **Configuration**

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `url` | String | *(required)* | OnTheMarket search URL with filters pre-applied. |
| `maxPages` | Integer | `1` | Number of result pages to scrape (1–1000). Each page typically contains 30 listings. |
| `detailedInfo` | Boolean | `false` | Visit each listing's detail page for full property data (slower, more data). |
| `proxyConfiguration` | Object | Apify Proxy (auto) | Proxy settings. Switch to a RESIDENTIAL group if you see blocks or empty results. |

##### Example Input

```json
{
  "url": "https://www.onthemarket.com/for-sale/property/london/",
  "maxPages": 5,
  "detailedInfo": false
}
```

##### Getting your search URL

1. Go to [onthemarket.com](https://www.onthemarket.com)
2. Search for a location and apply your filters
3. Copy the full URL from your browser address bar
4. Paste it as the `url` input

***

#### 💬 **Support and Feedback**

Need help or have suggestions? Reach out via Apify support channels or leave feedback on the Actor's page.

***

#### **Is it legal to scrape onthemarket.com data?**

It is legal to scrape publicly available data such as property prices, addresses, and listing details. However, you should be aware that results may contain personal information (agent names, contact details).

Personal data is protected by UK GDPR and other regulations. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, please consult your lawyers. You can also read Apify's blog post on the legality of web scraping.

# Actor input Schema

## `url` (type: `string`):

A OnTheMarket.com search results page URL with your filters already applied in the browser.

## `maxPages` (type: `integer`):

How many search result pages to scrape (~30 listings each). Pages are pre-built upfront using the ?page= query parameter.

## `detailedInfo` (type: `boolean`):

Visit each listing's detail page for full specs, description, images and more. Slower and uses more requests.

## `proxyConfiguration` (type: `object`):

Proxy settings. Defaults to Apify Proxy (auto). Switch to a RESIDENTIAL group if you see 403 errors or empty results.

## Actor input object example

```json
{
  "url": "https://www.onthemarket.com/for-sale/property/london/",
  "maxPages": 1,
  "detailedInfo": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `id` (type: `string`):

Listing ID

## `url` (type: `string`):

Full listing detail URL

## `title` (type: `string`):

Listing title / address

## `price` (type: `string`):

Formatted price string

## `address` (type: `string`):

Street address when available

## `city` (type: `string`):

City / locality

## `typeAndIntro` (type: `string`):

Property type and short intro

## `availability` (type: `string`):

Availability / status label

## `tags` (type: `string`):

Array of tag / badge strings

## `imageUrl` (type: `string`):

Primary image URL

## `bedrooms` (type: `string`):

Number of bedrooms (null when the site does not provide it)

## `bathrooms` (type: `string`):

Number of bathrooms (null when the site does not provide it)

## `areaSize` (type: `string`):

Area string

## `levels` (type: `string`):

Floor / levels (detail mode)

## `livingSpaceArea` (type: `string`):

Living space string (detail mode)

## `propertyFeatures` (type: `string`):

Object of label to value spec pairs (detail mode)

## `featureGroups` (type: `string`):

Array of grouped feature lists (detail mode)

## `rooms` (type: `string`):

Rooms info (site-specific; array or count) (detail mode)

## `images` (type: `string`):

Array of image URLs (detail mode)

## `description` (type: `string`):

Listing description text (detail mode)

## `coordinates` (type: `string`):

GPS coordinates object {lat, lon} when available (detail mode)

## `agentNames` (type: `string`):

Agent / broker name(s)

## `agencyName` (type: `string`):

Agency / office name

## `scrapedAt` (type: `string`):

ISO 8601 scrape timestamp

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "url": "https://www.onthemarket.com/for-sale/property/london/",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ocrad/onthemarket-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "url": "https://www.onthemarket.com/for-sale/property/london/",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("ocrad/onthemarket-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "url": "https://www.onthemarket.com/for-sale/property/london/",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call ocrad/onthemarket-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ocrad/onthemarket-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/duHJ87CtUr3TheuUe/builds/6ak7FH0WIkcsxsGV9/openapi.json
