# Zoopla Commercial Properties Scraper (`dhrumil/zoopla-commercial-properties-scraper`) Actor

Scrape Zoopla.co.uk to crawl millions of sale/rent commercial real estate properties from United Kingdom. Our real estate scraper also lets you monitor specific listing for new updates/listing. You can provide multiple search result listings to scrape/monitor.

- **URL**: https://apify.com/dhrumil/zoopla-commercial-properties-scraper.md
- **Developed by:** [Dhrumil Bhankhar](https://apify.com/dhrumil) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Stats:** 20 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

### 🏡 What is Zoopla Real Estate Commercial Properties Scraper?

This Zoopla properties Scraper will enable you scrape any commercial sale/rent listing from  collection from [zoopla.co.uk/](https://www.zoopla.co.uk/).

You can simply take your listing url from browser and enter it into this actor. This actor will crawl through all pages of particular listing and generate dataset for you.

Listing url is something you get when you perform the search on zoopla site. Example listing urls :

- [https://zoopla.co.uk/to-rent/property/nw2/?results_sort=newest_listings\&search_source=refine\&view_type=list](https://www.zoopla.co.uk/for-sale/commercial/offices/london/?floor_area_units=sq_feet\&q=London\&radius=0\&results_sort=newest_listings\&search_source=refine)
- [https://zoopla.co.uk/for-sale/property/nw2/?results_sort=newest_listings](https://www.zoopla.co.uk/for-sale/commercial/property/london/)
- [https://www.zoopla.co.uk/for-sale/property/london-fields/?search_source=home](https://www.zoopla.co.uk/to-rent/commercial/property/ec2y/)

### 🚪 What can this Zoopla Scraper do?

📈 Extract Zoopla commercial market data listings on Zoopla

👀 This actor is not just scraper but also has monitoring capability. You can turn on monitoring mode and it will give you only newly added properties compared to your previous scrapes.

📩  This actor also helps yu to identify which properties are not listed anymore. Please refer to [Identifying delisted properties](#identifying-delisted-properties)

⬇️ Download Zoopla real estate data in Excel, CSV, JSON, and other formats

### 📚 How do I start scraping with this scraper?

1. Register for your free Apify account [here](https://apify.com/pricing?fpr=z2di7)
2. You don't need to provide your credit card details for free acount. Just click on "Get Started" button on above link and complete the registration only.
3. Free account comes with reasonable credits to try out this actor. This actor also comes with free trial of 3 days without any commitment/upfront charge.
4. Run this actor and verify the scraped data. Apify has huge integration possibilities. You can download the data or push the data into any 3rd party platform directly.

### 🌳 What Zoopla data can I extract using this tool?

|       📝         |             📝            |
|------------------|----------------------------|
| Listing Title    | Full Address               |
| Listing URL      | Category                   |
| Postal Code      | Livingrooms                |
| Bathrooms        | Bedrooms                   |
| Agent Name       | Agent Phone                |
| Listing Type     | Property Type              |
| Latitude         | Longitude                  |
| Floor            | Points Of Interest         |
| Text Description | Formatted HTML Description |
| Amenities        | Images                     |
| Price            | Size                       |
| Incode           | Outcode                    |
| Price History    | Rent Price                 |

### ⬇️ Input

For simple usecase, you just need to provide browser url of zoopla search result page & that's all. You can leave other fields as they are to be sensible defaults.

#### Input example

```json
{
    "listUrls": [
        {
            "url": "https://www.zoopla.co.uk/to-rent/commercial/property/ab16/"
        }
    ],
    "fullScrape": true,
    "monitoringMode": false,
    "includePriceHistory": true,
    "enableDelistingTracker" : false
}
```

Understading monitoring mode :

- `fullScrape` : This option is by default turned on. When enabled it always force actor to scrape complete listing from all pagination pages regardless of monitoring is enabled or not.

- `monitoringMode` : This open when turned on will only scrape newly added property listings compared to previously scraped properties by this actor. It's important to turn off fullScrape setting if you are using this mode. If you keep fullScrape on, it will re-scrape complete listing again.

- `includePriceHistory` : It will add price history to each property if enabled.

- `enableDelistingTracker` : This option when turned on will start tracking date against each property under Apify Key Value store. This KV store can be queried later to find out which properties are delisted.

### ⬆️ Output

The scraped data is stored in the dataset of each run. The data can be viewed or downloaded in many popular formats, such as *JSON, CSV, Excel, XML, RSS, and HTML*.

#### Output example

The result for scraping a single property like this:

```json
{
  "title": "4 bed flat for sale",
  "address": "Blenheim House, One Tower Bridge, London SE1",
  "bedrooms": "4",
  "bathrooms": "5",
  "livingroom": "1",
  "sizeSqFeet": "2470",
  "price": "£6,900,000",
  "description": "This unique apartment of 2,470 sq ft (229.5 sqm) offers the ultimate in luxurious living, and is available for chain free sale through Prime London. The property is set in prime position in the desirable One Tower Bridge development, and being located on the front of Blenheim House enjoys stunning views of the River Thames, Tower Bridge, City skyline and Tower of London from both the entertaining space and principle suite. The property is also sold with a secure parking space.Finished to an incredibly high standard throughout, this contemporary property comprises a large reception room with floor to ceiling windows that lead onto a balcony that stretches the length of the reception, offering uninterrupted views from both this and the stylish kitchen. The property further comprises master bedroom (with en suite facilities and views of the river) and a further three double bedrooms with en suite facilities.Apartments in Blenheim House benefit from state of the art integrated systems using the very latest in smart home technology, underfloor heating, comfort cooling to principal rooms, ergonomically planned designer kitchens and individual finishes.The development itself offers a residents only health club including pool, spa and gym facility, private courtyard garden, business lounge and virtual golf.",
  "coordinates": {
    "latitude": "51.504199",
    "longitude": "-0.083677"
  },
  "priceMin": "6500000",
  "priceMax": "7000000",
  "incode": "2SF",
  "outcode": "SE1",
  "floor": "2470",
  "category": "residential",
  "type": "for-sale",
  "postalCode": "SE1 2SF",
  "features": [
    "A premium river facing four bedroom apartment",
    "2,470 sq ft (229.5 sqm)",
    "Secure Parking space",
    "Views over Tower Bridge",
    "Lounge and virtual golf",
    "Residents' leisure facilities and 24 hour concierge"
  ],
  "countyArea": "London",
  "region": "London",
  "propertyType": "flat",
  "listingsCategory": "residential",
  "agent": "Prime London (Riverside)",
  "agentPhone": "020 7768 6617",
  "images": [
    "https://lid.zoocdn.com/u/2400/1800/18d1a9db7827dbcf88ce7a0ccc9cbbc4b6dabdb5.jpg",
    "https://lid.zoocdn.com/u/2400/1800/afdd00de998138425cb1c2490bcbec6c83487657.jpg",
    "https://lid.zoocdn.com/u/2400/1800/a08dfb54e23256ae229088c7b4a5064ecc92cc6e.jpg",
    "https://lid.zoocdn.com/u/2400/1800/d5e0de3f8e6726588c1bbe03c23384d267406052.jpg",
    "https://lid.zoocdn.com/u/2400/1800/33c1af0f5cef1790b0c4f66d250a1e75a05875d7.jpg",
    "https://lid.zoocdn.com/u/2400/1800/cfc0b6939bea7853d00d452e9404ef6282b71a82.jpg",
    "https://lid.zoocdn.com/u/2400/1800/edf00ae5cf39c001928734be8eb3ce90867e1104.jpg",
    "https://lid.zoocdn.com/u/2400/1800/e99350ebfebfbf5c532e575145b8d90b8c010a80.jpg",
    "https://lid.zoocdn.com/u/2400/1800/9014839f65c812245edcdf9babb46feb0e758949.jpg",
    "https://lid.zoocdn.com/u/2400/1800/5d5c277765008f8b32e81e9749a6be591f5290eb.jpg",
    "https://lid.zoocdn.com/u/2400/1800/ca0a57200bf03393aafa5957b9dcd56d020878cd.jpg",
    "https://lid.zoocdn.com/u/2400/1800/ffe5382f3a2f87e04b1c52c8e66508c84d3973e9.jpg",
    "https://lid.zoocdn.com/u/2400/1800/eba7d7c8103320b1f690df79c627a384a5c57412.jpg",
    "https://lid.zoocdn.com/u/2400/1800/2468bb594228bedde68a370b345015fd9a1287b5.jpg",
    "https://lid.zoocdn.com/u/2400/1800/79e1b3c549e9699f3239559c32e7342cb4835744.jpg",
    "https://lid.zoocdn.com/u/2400/1800/6f134de448c23f90c6563f2d1af57e16bd299ea3.jpg",
    "https://lid.zoocdn.com/u/2400/1800/0a92751bb3766c08f601df7628b9bee68a8e8cde.jpg",
    "https://lid.zoocdn.com/u/2400/1800/8769712c9a15cbfdf52a86438e84e5c68334d397.jpg",
    "https://lid.zoocdn.com/u/2400/1800/0987fc1cdf11144e297b2d26d0b9bccad139d5ca.jpg",
    "https://lid.zoocdn.com/u/2400/1800/6aed8fd73013988474ec3c4382688ce4354b9413.jpg",
    "https://lid.zoocdn.com/u/2400/1800/11bba2e9a73576f87e67a885d87be1d9cfa102f0.jpg",
    "https://lid.zoocdn.com/u/2400/1800/fd63d92e08ddcb54442d26782362ad87ed9d6703.jpg",
    "https://lid.zoocdn.com/u/2400/1800/096f3fa22b9a419abdde777ace25ab5020690c5d.jpg",
    "https://lid.zoocdn.com/u/2400/1800/73237792d6736338b68c1d46c1c10ab100a8ff25.jpg",
    "https://lid.zoocdn.com/u/2400/1800/b2714bdae362fa0075a03d5db59866193aa7ae35.jpg",
    "https://lid.zoocdn.com/u/2400/1800/82dadc5052c9b3f31248e2538cc44175b31a8195.jpg",
    "https://lid.zoocdn.com/u/2400/1800/78408d5e897e89c08b147d85c731d2c89b7e124f.jpg"
  ],
  "priceHistory": [
    {
      "action": "Sold",
      "date": "May 2017",
      "price": "£6,000,000"
    }
  ],
  "pointsOfInterest": [
    {
      "title": "London Bridge",
      "distance": "0.1 miles"
    },
    {
      "title": "London Bridge City Pier",
      "distance": "0.2 miles"
    },
    {
      "title": "Tower Millennium Pier",
      "distance": "0.3 miles"
    },
    {
      "title": "St Katharine's Pier",
      "distance": "0.5 miles"
    },
    {
      "title": "Snowsfields Primary School",
      "distance": "0.2 miles"
    },
    {
      "title": "Beormund Primary School",
      "distance": "0.3 miles"
    },
    {
      "title": "Tower Bridge Primary School",
      "distance": "0.3 miles"
    },
    {
      "title": "Saint Joseph's Catholic Primary School, the Borough",
      "distance": "0.4 miles"
    }
  ],
  "id": "66233218",
  "url": "https://www.zoopla.co.uk/for-sale/details/66233218/?search_identifier=969b7386fdcc5abdb724a45659b6e132aeb73fad3cd811c37bba93110afe3c37"
}
```

### ❓Limitations

Since Zoopla allows only 1000 properties per listing/search result, you might want to break down your listing urls into smaller area if it has more than 1K results. Good News is that even if multiple list urls contains overlapping results, they will get deduplicated within same run data.

### 🤝 Related Actors

- [Rightmove Scraper](https://apify.com/dhrumil/rightmove-scraper?fpr=z2di7): Scrape sale/rent listings from rightmove.co.uk.
- [Zoopla Scraper](https://apify.com/dhrumil/zoopla-scraper?fpr=z2di7): Scrape property sale/rent listings, prices, and details from Zoopla.
- [OnTheMarket Scraper](https://apify.com/dhrumil/onthemarket-scraper?fpr=z2di7) : Scrape property sale/rent listings, prices, and details from OnTheMarket.
- [Rightmove Full Address & House Number Finder](https://apify.com/dhrumil/rightmove-full-address-house-number-finder?fpr=z2di7): Find full addresses and house numbers for Rightmove listings.
- [Rightmove Land Registry Full Address & House Number Finder](https://apify.com/dhrumil/rightmove-landregistry-full-address-house-number-finder?fpr=z2di7): Get full address and house number using Land Registry data for Rightmove properties.
- [Rightmove EPC Full Address Finder](https://apify.com/dhrumil/rightmove-epc-full-address-finder?fpr=z2di7): Find EPC and full address details for Rightmove listings.
- [Rightmove Commercial Scraper](https://apify.com/dhrumil/rightmove-commercial-scraper?fpr=z2di7): Scrape commercial property listings from Rightmove.
- [Rightmove Sold House Properties Scraper](https://apify.com/dhrumil/rightmove-sold-house-properties-scraper?fpr=z2di7): Scrape sold house price data from Rightmove.
- [Rightmove Agents Scraper](https://apify.com/dhrumil/rightmove-agents-scraper?fpr=z2di7): Extract agent and agency details from Rightmove.
- [Zoopla Sold Properties Scraper](https://apify.com/dhrumil/zoopla-sold-properties-scraper?fpr=z2di7): Scrape sold property data from Zoopla.

### 🔎 Identifying delisted properties

This actor provides you monitoring mode configuration using which you can get only incremental updates about newly added properties. In case, you also want to identify which properties are delisted from platform, you can use any of the following techniques with the help of this actor.

1. Running Always in full scraper mode :
   Run this actor always in full scrape mode and cross check the new incoming batch of data with your existing database. If any property that exists in yoru database but not in newly scraped data batch, that means it's not listed anymore

2. Use Key Value Store generated by scraper :
   If your are monitoring very large batch of data and you don't want to scrape everything all the time, this method involves bit of technicality but achieves the goal efectively. Apify has storage feature called [Key-value store](https://docs.apify.com/api/v2/#/reference/key-value-stores/key-collection/get-list-of-keys). When you run this scrape, this scraper stores every single property in key value store along with timestamp in `zoopla-properties` store. Inside this store, key is property id itself and value is timestamp like this

   ```
   { lastSeen : '2023-11-02T05:59:25.763Z'}
   ```

   Whenever you run this scraper, it will update the timestamp against particular id if it finds property on the platform. e.g. if we have 2 proprties with id `prop1` and `prop2` and we scraped them both on November 1, key value storage would look like this :

   ```
   prop1 -> { lastSeen : '2023-11-01T05:59:25.763Z'}
   prop2 -> { lastSeen : '2023-11-01T05:59:25.763Z'}
   ```

   Now if you run this scraper again on December 1 and prop1 is not on the platform anymore but prop2 is still there, key value storage would change like this :

   ```
   prop1 -> { lastSeen : '2023-11-01T05:59:25.763Z'}
   prop2 -> { lastSeen : '2023-12-01T05:59:25.763Z'}
   ```

   That means if any property has `lastSeen` less than latest batch you loaded, that property is delisted now. You can directly iterate through whole Key value storage using Apify key value storage API to identify this. Please refer to [this](https://docs.apify.com/api/v2/#/reference/key-value-stores/key-collection/get-list-of-keys) API documentation to do the same. Please remember store name generated by this scrape will be `zoopla-properties`.

   Alternatively, you can iterate through your existing database active properties and use [this](https://docs.apify.com/api/v2/#/reference/key-value-stores/record/get-record) API to identify listing status.

   For this approach to work, it's important that you enable this feature via `enableDelistingTracker` (Enable Delisting tracker) input.

### 🙋‍♀️ For custom solutions

In case you need some custom solution, you can contact me : <dhrumil@techvasu.com>

Or learn more about me on github : <https://github.com/dhrumil4u360>

# Actor input Schema

## `listUrls` (type: `array`):

Any zoopla sale or rent property listing url which has list of properties

## `fullScrape` (type: `boolean`):

If checked, it will perform full scrape including all pagination pages. You might want to tunr this off in case you are running in monitoring mode.

## `monitoringMode` (type: `boolean`):

If checked, it will only scrape newly listed properties compared to what has been scraped in previous runs. Please turn off full scrape setting above in case you are tunring this on.

## `includePriceHistory` (type: `boolean`):

If checked, it will add price history information as well

## `enableDelistingTracker` (type: `boolean`):

If checked, it will track every single property with date so that you can find out which property is delisted. ( Enabling this has impact on billing )

## `email` (type: `string`):

Email address to send notifications or reports to.

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "listUrls": [
    {
      "url": "https://www.zoopla.co.uk/to-rent/commercial/property/ab10/?price_frequency=per_month&price_max=1000&q=Ab10&radius=0&search_source=to-rent"
    }
  ],
  "fullScrape": true,
  "monitoringMode": false,
  "includePriceHistory": false,
  "enableDelistingTracker": false,
  "email": "",
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "listUrls": [
        {
            "url": "https://www.zoopla.co.uk/to-rent/commercial/property/ab10/?price_frequency=per_month&price_max=1000&q=Ab10&radius=0&search_source=to-rent"
        }
    ],
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dhrumil/zoopla-commercial-properties-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 = {
    "listUrls": [{ "url": "https://www.zoopla.co.uk/to-rent/commercial/property/ab10/?price_frequency=per_month&price_max=1000&q=Ab10&radius=0&search_source=to-rent" }],
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("dhrumil/zoopla-commercial-properties-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 '{
  "listUrls": [
    {
      "url": "https://www.zoopla.co.uk/to-rent/commercial/property/ab10/?price_frequency=per_month&price_max=1000&q=Ab10&radius=0&search_source=to-rent"
    }
  ],
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call dhrumil/zoopla-commercial-properties-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dhrumil/zoopla-commercial-properties-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/YnypKXp7X4cey27F8/builds/isZFd1Ija2eThcRtz/openapi.json
