# OnTheMarket Scraper: UK Rental Listings & Property Data API (`housingfeed/onthemarket-scraper`) Actor

Scrape UK rental listings from OnTheMarket as clean, normalized JSON, price, address, beds, baths, location. Filter by city, rent and bedrooms.

- **URL**: https://apify.com/housingfeed/onthemarket-scraper.md
- **Developed by:** [HousingFeed](https://apify.com/housingfeed) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## OnTheMarket Scraper: UK Rental Listings & Property Data API

Get [OnTheMarket](https://www.onthemarket.com/) rental listings as clean, structured JSON — instantly, from the HousingFeed database, instead of scraping OnTheMarket while you wait. One normalized schema (rent in native currency and USD, beds, baths, sqft, address, coordinates, photo, availability, a stable `id`), filters for city, rent and bedrooms, and a delta feed for new listings.

**Coverage (measured 2026-09-12):** 18,072 live OnTheMarket listings, newest scrape 2026-08-03, refreshed weekly. Every row carries `first_seen_at`, `last_seen_at` and `scraped_at`, so you can see its age yourself.

### Why this OnTheMarket scraper instead of scraping OnTheMarket live

- **Instant.** 100 rows in seconds, up to 5,000 per run. No proxies, no browser, no parser to maintain.
- **Delta feed.** `newSinceDays: 1` on a daily schedule returns only what is new — a rental alert or a sync job in one input field.
- **Same schema as 70+ other sources.** Swap `platform` and your code keeps working; the [Rental Listings Database API](https://apify.com/housingfeed/rental-listings-api) returns all of them in one call.
- **Honest freshness.** Row counts and scrape dates above are generated from the database, and every row is timestamped.

### How to get OnTheMarket listings in 60 seconds

1. Click **Try for free** (a free Apify account includes monthly credits).
2. Keep the prefilled input or set your own city, rent range or bedrooms.
3. Click **Start** — the run takes seconds; listings come straight from the database.
4. Open **Output**, then **Export** as JSON, CSV or Excel, or copy the call from the **API** tab.

### OnTheMarket listing example (one row of the output)

```json
{
  "id": "onthemarket:onthemarket:19966278",
  "platform": "onthemarket",
  "url": "https://www.onthemarket.com/details/19966278/",
  "address": "Goodwin Close, Derby, DE1",
  "city": "Derby",
  "state": "UK",
  "country": "UK",
  "lat": 52.916896,
  "lng": -1.471095,
  "rent_min": 900,
  "currency": "GBP",
  "rent_usd": 1143,
  "beds": 1,
  "baths": 1,
  "property_type": "apartment",
  "scraped_at": "2026-08-03T03:52:47+00:00"
}
```

Full fields: `id, platform, source_id, listing_id, url, address, street, city, canonical_city, state, zip, country, lat, lng, rent_min, rent_max, currency, rent_usd, rent_per_sqft, rent_per_sqm, beds, baths, sqft_min, sqft_max, property_type, furnished, available, units_available, granularity, image, images, description, amenities, first_seen_at, last_seen_at, scraped_at` (see the Output tab).

### OnTheMarket scraper input (filters)

| Field | What it does |
|---|---|
| `city` | City name, partial match |
| `minRent` / `maxRent` | Monthly rent range (local currency) |
| `minBeds` / `maxBeds` | Bedroom range |
| `availableNow` | Only listings available now |
| `newSinceDays` | **Delta feed:** only listings first seen in the last N days |
| `freshDays` | Exclude listings scraped more than N days ago (0 = everything) |
| `sort` | `best` (default), `newest`, `oldest`, `cheapest`, `rent_desc` |
| `maxItems` | 1–5,000 results per run; you pay per returned row |

### Use the OnTheMarket API from code

```bash
curl -X POST "https://api.apify.com/v2/acts/housingfeed~onthemarket-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" -d '{ "minBeds": 2, "maxItems": 200 }'
```

Add `?format=csv` (or `xlsx`, `xml`) to the dataset URL to export.

**New listings this week (schedule daily):**

```json
{ "newSinceDays": 7, "maxItems": 1000 }
```

**2+ bedrooms under 2,000:**

```json
{ "minBeds": 2, "maxRent": 2000, "maxItems": 500 }
```

### Other HousingFeed rental scrapers (same schema, same database)

- [Zumper Scraper](https://apify.com/housingfeed/zumper-scraper) — the US
- [AppFolio Scraper](https://apify.com/housingfeed/appfolio-scraper) — the US
- [Buildium Scraper](https://apify.com/housingfeed/buildium-scraper) — the US
- [HotPads Scraper](https://apify.com/housingfeed/hotpads-rooms-scraper) — the US
- [Rightmove Scraper](https://apify.com/housingfeed/rightmove-scraper) — the UK
- [Immoweb Scraper](https://apify.com/housingfeed/immoweb-scraper) — Belgium
- [Otodom Scraper](https://apify.com/housingfeed/otodom-scraper) — Poland
- [SUUMO Scraper](https://apify.com/housingfeed/suumo-scraper) — Japan
- [HousingAnywhere Scraper](https://apify.com/housingfeed/housinganywhere-scraper) — Europe
- [Rently Scraper](https://apify.com/housingfeed/rently-scraper) — the US
- [ShowMojo Scraper](https://apify.com/housingfeed/showmojo-scraper) — the US

### Need more than OnTheMarket?

The [Rental Listings Database API](https://apify.com/housingfeed/rental-listings-api) returns OnTheMarket plus 70+ other sources — property-management platforms (AppFolio, Buildium, Avail, RentCafe, Entrata, RealPage), US portals (Zumper, Apartments.com, Zillow rentals, HotPads rooms) and 20+ international portals — in this same schema, with bounding-box search. Bulk exports, custom sources and refresh cadences: hello@housingfeed.com.

### FAQ

**Is it legal?** It returns publicly listed rental data that owners publish to be seen. Review the source's terms and your own use case.

**How fresh is it?** See the coverage line at the top; it is regenerated from the database at every release. Need a specific cadence or a change-history feed? Get in touch.

**Do you remove delisted units?** Yes — units that disappear from the source are swept and excluded from every result.

**Export formats?** JSON, CSV, Excel, XML, or the API.

# Actor input Schema

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

City name, partial match. Blank = all.

## `minRent` (type: `integer`):

Minimum monthly rent (local currency).

## `maxRent` (type: `integer`):

Maximum monthly rent (local currency).

## `minBeds` (type: `integer`):

Minimum number of bedrooms.

## `maxBeds` (type: `integer`):

Maximum number of bedrooms.

## `availableNow` (type: `boolean`):

Only listings marked available now.

## `newSinceDays` (type: `integer`):

Only listings first seen within the last N days. Schedule a daily run with 1 for a live feed of new listings; dedupe on `id`.

## `freshDays` (type: `integer`):

Exclude listings scraped more than N days ago (0 = everything). Every row carries scraped\_at / first\_seen\_at / last\_seen\_at.

## `sort` (type: `string`):

best = geocoded listings with a photo first, freshest first.

## `maxItems` (type: `integer`):

Maximum number of listings to return (1-5000). You pay per returned listing.

## Actor input object example

```json
{
  "minBeds": 1,
  "availableNow": false,
  "freshDays": 365,
  "sort": "best",
  "maxItems": 100
}
```

# Actor output Schema

## `listings` (type: `string`):

Normalized rental listings matching the input filters (JSON, CSV, Excel, XML via the format parameter).

# 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 = {
    "minBeds": 1,
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("housingfeed/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 = {
    "minBeds": 1,
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("housingfeed/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 '{
  "minBeds": 1,
  "maxItems": 100
}' |
apify call housingfeed/onthemarket-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,housingfeed/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/DhafgMQj6JQVLPRSK/builds/KTvAU5mIHbanhOCix/openapi.json
