# Bayut Scraper (`mrdoe/betterhomes-scraper`) Actor

Extract property listings from Bayut, the UAE's most visited real estate portal — Dubai, Abu Dhabi, Sharjah, Ajman and beyond. Get price, size, location, amenities, agency/agent contact, and RERA permit number. Paste a search URL and run. For market research, price benchmarking or lead lists.

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

## Pricing

from $0.80 / 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

![Betterhomes Scraper hero](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/betterhomes-scraper--hero.png)

### What does Bayut Scraper do?

Bayut Scraper collects property listings from Bayut, the most visited real estate portal in the UAE, covering Dubai, Abu Dhabi, Sharjah, Ajman and the rest of the Emirates. Open a search on the site with the filters you want (city, area, price, bedrooms, for sale or to rent), copy the URL, paste it into **Start URLs**, and run the Actor. You get a clean, structured dataset of every matching property — price, size, location, agency, agent contact, RERA permit number and more — ready for market research, price benchmarking, lead lists, or investment analysis.

### Why use Bayut Scraper?

- **Widest UAE coverage** — for-sale and to-rent listings across every emirate, community and property type.
- **Deep per-listing detail** — price, area, bedrooms, bathrooms, completion status, furnishing, amenities, coordinates and the full description.
- **Agency and agent data** — agency name, agent name and the public contact phone number for lead generation.
- **Compliance field** — the RERA / DLD permit number shown on the listing.
- **Simple input** — paste a search URL, set how many results you want, run.
- **Automation-ready** — schedule recurring runs to track new listings and price changes over time.

### What makes this different

This Actor is built specifically for Bayut's UAE marketplace and reads the structured data behind each listing, so location hierarchy, permit numbers, geo-coordinates and the complete amenity list come through cleanly rather than as scraped text. It routes through UAE residential connections so results match what a local visitor sees.

### What data can you extract?

![Betterhomes Scraper dataset output](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/betterhomes-scraper--output.png)

![Betterhomes Scraper data fields](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/betterhomes-scraper--fields.png)

| Field | Description |
| --- | --- |
| `id` | Bayut listing ID |
| `referenceNumber` | Agency reference code |
| `url` | Canonical listing URL |
| `purpose` | `sale` or `rent` |
| `title` | Listing headline |
| `description` | Full listing description |
| `propertyType` | Apartment, Villa, Townhouse, Office, etc. |
| `price` | Numeric price |
| `priceCurrency` | Currency code (AED) |
| `rentFrequency` | For rentals: yearly, monthly, weekly, daily |
| `bedrooms` / `bathrooms` | Room counts (0 = studio) |
| `area` / `areaUnit` | Built-up area and unit (sqft) |
| `plotArea` | Plot size where published |
| `completionStatus` | Ready or off-plan |
| `furnishingStatus` | Furnished / unfurnished |
| `handoverDate` | Expected handover quarter for off-plan properties |
| `developer` | Master developer (detail pages) |
| `ownership` | Freehold or leasehold (detail pages) |
| `location` | Full location string |
| `city` / `community` | Location broken into levels |
| `latitude` / `longitude` | Map coordinates |
| `permitNumber` | Trakheesi / DLD listing permit number, where shown as text |
| `agencyName` / `agencyUrl` | Brokerage name and Bayut profile URL |
| `agentName` / `agentIsTruBroker` / `contactPhone` | Agent name, TruBroker badge, public phone |
| `referenceNumber` | Listing reference code |
| `listedAt` | Date the listing was added |
| `imageUrls` | Listing photo URLs |
| `scrapedAt` | ISO timestamp of collection |

### How to use Bayut Scraper

![How Betterhomes Scraper works](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/betterhomes-scraper--how-it-works.png)

1. Open [bayut.com](https://www.bayut.com) and build a search with the filters you want.
2. Copy the URL from your browser's address bar.
3. Open this Actor, paste the URL into **Start URLs** (you can add several).
4. Set **Max properties per start URL** — start small (3–5) to test, then raise it.
5. Click **Start** and wait for the run to finish.
6. Download the dataset as JSON, CSV or Excel from the **Dataset** tab, or connect it via API.

### Input Parameters

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `startUrls` | Array | Yes | A Dubai "for sale" search | Bayut search result pages or direct property page URLs. |
| `maxItems` | Integer | No | 5 | Maximum listings to collect per start URL. |
| `scrapeDetails` | Boolean | No | true | Open each property page for the full description, amenities and permit details. |
| `useCache` | Boolean | No | false | Reuse data collected for a property in an earlier run. |
| `proxyConfiguration` | Object | No | UAE residential | Proxy settings. Bayut blocks datacenter traffic, so UAE residential proxy is used by default. |

### Output Data

Each dataset item is one property. Example:

```json
{
  "id": "10847321",
  "referenceNumber": "BAYUT-DXB-1234",
  "url": "https://www.bayut.com/property/details-a-fine-apartment-10847321.html",
  "purpose": "sale",
  "title": "Spacious 2BR | Burj View | Vacant",
  "propertyType": "Apartment",
  "price": 2450000,
  "priceCurrency": "AED",
  "bedrooms": 2,
  "bathrooms": 3,
  "area": 1345.7,
  "areaUnit": "sqft",
  "completionStatus": "ready",
  "furnishingStatus": "unfurnished",
  "city": "Dubai",
  "community": "Downtown Dubai",
  "subCommunity": "The Residences",
  "latitude": 25.19,
  "longitude": 55.27,
  "amenities": ["Central A/C", "Balcony", "Covered Parking"],
  "permitNumber": "7129123456",
  "agencyName": "Prime Estates",
  "agentName": "Sara K.",
  "contactPhone": "+971500000000",
  "imageUrls": ["https://images.bayut.com/x/cover.jpeg"],
  "scrapedAt": "2026-08-31T14:10:00.000Z"
}
```

### Usage Examples

- **Dubai apartments for sale:** `https://www.bayut.com/for-sale/apartments/dubai/`
- **Villas to rent in Abu Dhabi:** `https://www.bayut.com/to-rent/villas/abu-dhabi/`
- **A single community:** apply the area filter on bayut.com and paste the resulting URL.
- **A single property:** paste any `.../property/details-*.html` URL.

### Tips for Best Results

- Apply as many filters as possible on the site before copying the URL.
- Add multiple search URLs in one run — `maxItems` applies to each URL separately.
- For ongoing monitoring, sort the search by "newest" and schedule the Actor daily.

### Known Limitations

- Listings marked "Price on request" return a null `price`.
- For many off-plan listings Bayut shows the Trakheesi permit only as a QR image, so `permitNumber` is null for those; it is captured for ready/secondary listings that print it as text.
- `developer`, `ownership`, `furnishingStatus` and `handoverDate` appear only where Bayut publishes them and mostly on detail pages (keep `scrapeDetails` on).
- Contact details are limited to what the portal shows publicly, usually a phone number.
- Very large searches are limited by the site's own pagination depth.

### Integrations

Connect results to Google Sheets, Make, Zapier, Slack or your own systems via the Apify API and webhooks. Schedule recurring runs from the Actor's **Schedule** tab.

### Export Formats

JSON, CSV, Excel, XML and RSS via the **Dataset** tab or the Apify API.

### Frequently Asked Questions

**How many results can I get per run?** As many as you set in `maxItems`, up to the site's pagination limit for that search. `maxItems` is per start URL.

**Can I scrape a specific area or price range?** Yes — apply those filters on bayut.com and use the resulting URL as a start URL.

**Are duplicates removed?** Yes. Each property URL is only collected once per run.

**Why are some fields null?** The listing didn't publish that field. Missing values are always `null`, never guessed.

**Does caching affect freshness?** With `useCache` on, a property already collected in a previous run is reused instead of re-fetched. Leave it off (the default) when you need current prices.

**Can I schedule it?** Yes, from the Actor's **Schedule** tab, or via the API.

### Support

Found a bug or a missing field? Open an issue from the **Issues** tab on the Actor's page and include the run ID and the input you used.

### Legal / Responsible Use

You are responsible for ensuring your use of this Actor complies with Bayut's terms of service and all applicable laws. Listings can include personal data such as agent names and phone numbers; if you collect personal data you are responsible for complying with applicable privacy and data-protection laws (for example GDPR) and for using that data lawfully.

### Preview

![Betterhomes Scraper input options](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/betterhomes-scraper--input.png)

# Actor input Schema

## `startUrls` (type: `array`):

One or more Betterhomes pages to scrape. Use a browse or search page (for example https://www.bhomes.com/en/buy/properties or https://www.bhomes.com/en/rent/properties), or a direct property page URL. Build a search on bhomes.com with the filters you want, then paste the address bar URL here. The Actor loads more results by scrolling automatically.

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

Maximum number of property listings to collect for each start URL. Keep this low for quick test runs and raise it for full exports.

## `useCache` (type: `boolean`):

Reuse data collected for a property in an earlier run to speed up recurring runs. Disabled by default so every run returns fresh data.

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

Optional proxy settings. Betterhomes works reliably without a proxy, so Apify Proxy is off by default. Enable it only if you start seeing blocked or incomplete results.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.bhomes.com/en/buy/properties"
    }
  ],
  "maxItems": 5,
  "useCache": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

# 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 = {
    "startUrls": [
        {
            "url": "https://www.bhomes.com/en/buy/properties"
        }
    ],
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/betterhomes-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 = {
    "startUrls": [{ "url": "https://www.bhomes.com/en/buy/properties" }],
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/betterhomes-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 '{
  "startUrls": [
    {
      "url": "https://www.bhomes.com/en/buy/properties"
    }
  ],
  "maxItems": 5
}' |
apify call mrdoe/betterhomes-scraper --silent --output-dataset

```

## MCP server setup

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