# Bayut \[Just 💰$0.8] — UAE Property Listings & Agents (`blackfalcondata/bayut-scraper`) Actor

💰 $0.80 per 1,000 rows across the UAE, Saudi Arabia, Qatar, Oman and Jordan. Scrape Bayut property listings plus agents and agencies from one actor — every row arrives structured with price, location and direct agent contact including email, ready to use.

- **URL**: https://apify.com/blackfalcondata/bayut-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Stats:** 2 total users, 2 monthly users, 70.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.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use 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

### What does Bayut do?

Bayut extracts structured property data from [bayut.com](https://bayut.com) — including contact details, prices, and location data. It supports keyword search, location filters, and controllable result limits, so you can run the same query consistently over time.

**New to Apify?** [Sign up free](https://console.apify.com/sign-up?fpr=1h3gvi&fp_sid=ctaplain) and use the included $5 monthly platform credit to test this actor.

### Key features

<!-- KEY_FEATURES:START -->
- **🌎 5-market coverage** — 5 markets supported on one codebase — bayut.com, bayut.sa, bayut.qa, and 2 more. Pick a country per run with the `country` input, or schedule parallel runs to compare pricing across regions.
- **🗂️ Listings, agents & agencies in one actor** — paste any Bayut URL — property search, /companies/ or /brokers/ — and each is auto-routed. Every row is tagged rowType (listing / company / broker) so mixed runs stay separable in one dataset.
- **👥 Live agent database, email included** — pull UAE and Saudi agents from Bayut's live index — name, agency, email, phone and WhatsApp on every agent, email at no extra charge. Filter by agency name or contact channel.
- **🇸🇦 Saudi REGA licence data** — every bayut.sa row carries regaBrokerageLicenseNumber — the REGA FAL licence, a cross-portal join key for Saudi lead-gen — plus its expiry.
- **📧 Email + phone extraction** — best-effort regex extraction of contact emails and phone numbers from descriptions — emitted as `extractedEmails[]` and `extractedPhones[]` on every record.
- **🔗 Paste-mode** — paste any bayut.com URL — single-listing pages, search-results, or category SEO URLs. Build the filter you want in the browser, copy, paste; the actor parses every query param.
- **🌐 Arabic & English URLs** — paste Bayut URLs in either language — Arabic purpose, category and location normalize automatically, so browser copy-paste just works.
- **♻️ Incremental mode** — recurring runs emit and charge only for listings that are new or changed — later runs emit only NEW / UPDATED / REAPPEARED. Pair with notifications.
- **📦 Compact mode** — light payload with core fields only — comparable rows across listings without HTML or metadata overhead. Perfect for pricing dashboards.
<!-- KEY_FEATURES:END -->

### What data can you extract from bayut.com?

Each result includes Core property fields (`listingId`, `listingKey`, `referenceNumber`, `title`, `purpose`, `propertyType`, `propertyCategory`, and `location`, and more), extended fields (`detailFetched`), and contact information (`phoneMobile`, `phonePhone`, `phoneWhatsapp`, and `phoneProxy`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

### Input

The main inputs are a search keyword, an optional location filter, and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`startUrls`** — Paste Bayut URLs from any country site (.com/.sa/.qa/.om/.jo) — property search, /companies/ or /brokers/ URLs. Each becomes its own search; every row is tagged rowType (listing/company/broker). These REPLACE the structured filters below. (default: `[]`)
- **`country`** — Which Bayut country site to search with the structured filters below. Ignored for Start URLs (they pick their country from the URL host). (default: `"ae"`)
- **`instantDatabase`** — Return agents (brokers) with name, agency, email, phone and WhatsApp — no URL needed. Uses the Country above (UAE or Saudi only). (default: `false`)
- **`dbAgencyName`** — Only agents at agencies matching this name (e.g. "Betterhomes"; all branches).
- **`dbHasEmail`** — Keep only agents with an email. (default: `false`)
- **`dbHasPhone`** — Keep only agents with a phone. (default: `false`)
- **`dbHasWhatsapp`** — Keep only agents with WhatsApp. (default: `false`)
- **`location`** — Emirate, city or community — e.g. "Dubai", "Dubai Marina", "Business Bay". Matched to Bayut's location list; covers all sub-communities. Accepts an exact slug like "/dubai/dubai-marina", or a JSON array for several areas.
- **`query`** — Optional free-text keyword to narrow results within the selected location — e.g. "sea view", "maids room", a building or project name. Leave empty to return all listings for the filters.
- **`purpose`** — For-sale or for-rent listings. (default: `"for-rent"`)
- **`propertyType`** — Restrict to one property type. Leave empty for all types. (default: `""`)
- **`priceMin`** — Minimum price, in the selected country's local currency (AED, SAR, QAR, OMR or JOD). For rentals this is per the selected rent frequency.
- ...and 25 more parameters

### Input examples

**Property listings across markets** — Paste search URLs from any Bayut country site — English or Arabic. Each URL is its own search; results merge and de-duplicate.

→ listing rows (rowType: "listing") with price, local currency, location, beds/baths, agency and direct agent contact.

```json
{
  "startUrls": [
    "https://www.bayut.com/for-sale/apartments/dubai/",
    "https://www.bayut.sa/en/to-rent/villas/riyadh/"
  ],
  "maxResults": 500
}
````

**Structured search + monitor new listings** — Pick a country and area with the built-in filters, and turn on Incremental mode to emit only new or changed listings each run.

→ new/updated listings for the selected market, each tagged with a changeType.

```json
{
  "country": "sa",
  "location": "Riyadh",
  "purpose": "for-sale",
  "incrementalMode": true,
  "maxResults": 200
}
```

**Agencies (companies)** — A /companies/ directory URL returns every agency for the market; a company detail URL returns just that agency.

→ company rows (rowType: "company") with licences, agent count, portfolio stats and logo.

```json
{
  "startUrls": [
    "https://www.bayut.com/companies/dubai"
  ],
  "maxResults": 200
}
```

**Agents (brokers) — UAE & Saudi** — Paste a /brokers/ profile or directory URL. Agent rows include the agent's email at no extra charge.

→ broker rows (rowType: "broker") with email, phone, WhatsApp, specialities, service areas and agency.

```json
{
  "startUrls": [
    "https://www.bayut.com/brokers/sheetal-sureen-749540"
  ],
  "maxResults": 50
}
```

**Agent database — build a lead list** — No URL needed. Serve agents live from Bayut's index, filtered by agency name and contact channel (UAE & Saudi).

→ broker rows for the chosen agency that have an email on file.

```json
{
  "instantDatabase": true,
  "country": "ae",
  "dbAgencyName": "Betterhomes",
  "dbHasEmail": true,
  "maxResults": 200
}
```

### Output

Each run produces a dataset of structured property records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example property record

```json
{
  "listingId": "3852f411bd0d95b48df85a3ee2b74ff56d8418c9396397290934eb973af8d8f8",
  "listingKey": "15896928",
  "referenceNumber": "4799-ZMfoHS",
  "title": "Modern 2BR | Fully Furnished | High Floor| Vacant",
  "purpose": "for-rent",
  "propertyType": "apartments",
  "propertyCategory": "residential",
  "location": "UAE > Dubai > Dubai Marina > The Torch",
  "city": "Dubai",
  "neighbourhood": "The Torch",
  "locationTree": [
    {
      "name": "UAE",
      "slug": "/uae",
      "externalID": "5001",
      "level": 0
    },
    {
      "name": "Dubai",
      "slug": "/dubai",
      "externalID": "5002",
      "level": 1
    },
    {
      "name": "Dubai Marina",
      "slug": "/dubai/dubai-marina",
      "externalID": "5003",
      "level": 2
    },
    {
      "name": "The Torch",
      "slug": "/dubai/dubai-marina/the-torch",
      "externalID": "5071",
      "level": 3
    }
  ],
  "latitude": 25.0879001617432,
  "longitude": 55.1473999023438,
  "priceValue": 135000,
  "priceCurrency": "AED",
  "priceText": "AED 135,000",
  "rentFrequency": "yearly",
  "beds": 2,
  "baths": 2,
  "areaSqm": 116.87,
  "areaSqft": 1258,
  "furnishingStatus": "furnished",
  "completionStatus": "ready",
  "amenities": [
    "Gym or Health Club",
    "Swimming Pool",
    "Cafeteria or Canteen",
    "Kids Play Area",
    "Lawn or Garden",
    "... 5 more items"
  ],
  "agencyName": "Union Square House Real Estate",
  "agencyId": "4799",
  "agentName": "Ihar Churylau",
  "phoneMobile": "+971585424003",
  "phonePhone": "+97158542400",
  "phoneWhatsapp": "971545695868",
  "phoneProxy": "+97148750973",
  "isVerified": false,
  "photoCount": 12,
  "videoCount": 0,
  "panoramaCount": 0,
  "coverPhotoUrl": "https://images.bayut.com/thumbnails/853770448-800x600.jpeg",
  "photoUrls": [
    "https://images.bayut.com/thumbnails/853770448-800x600.jpeg",
    "https://images.bayut.com/thumbnails/853770449-800x600.jpeg",
    "https://images.bayut.com/thumbnails/853770450-800x600.jpeg",
    "https://images.bayut.com/thumbnails/853770451-800x600.jpeg",
    "https://images.bayut.com/thumbnails/853770452-800x600.jpeg",
    "... 7 more items"
  ],
  "createdAt": "2026-07-20T15:16:28.000Z",
  "updatedAt": "2026-07-20T15:16:32.000Z",
  "publishedAt": "2026-07-20T15:16:28.000Z",
  "url": "https://www.bayut.com/property/details-15896928.html",
  "contentQuality": "serp_only",
  "detailFetched": false,
  "contentHash": "8a3b75d",
  "scrapedAt": "2026-07-20T12:00:00.000Z",
  "source": "bayut.com"
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape bayut.com

1. Go to [Bayut](https://apify.com/blackfalcondata/bayut-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword and optional location filter.
3. Set `maxResults` to control how many results you need.
4. Click **Start** and wait for the run to finish.
5. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract property data from bayut.com for market research and competitive analysis.
- Track pricing trends across regions and categories over time.
- Monitor new and changed properties on scheduled runs without processing the full dataset every time.
- Use structured location data for regional analysis, mapping, and geo-targeting.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape bayut.com?

Bayut uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.005 per run
- **Per result:** $0.0008 per property record

Example costs:

- 10 results: **$0.013**
- 25 results: **$0.025**
- 100 results: **$0.085**
- 200 results: **$0.17**
- 500 results: **$0.41**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of properties that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 250 results per run, daily polling (30 runs/month). Event-pricing examples scale linearly with result count.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.21 | $0.01 | $0.19 (93%) | $0.45 |
| 15% — moderate broad query | $0.21 | $0.04 | $0.17 (83%) | $1.05 |
| 30% — high-volume aggregator | $0.21 | $0.07 | $0.14 (68%) | $1.95 |

Full re-scrape monthly cost at daily polling: $6.15. First month with incremental costs $0.64 / $1.22 / $2.09 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

### FAQ

#### How many results can I get from bayut.com?

The number of results depends on the search query and available properties on bayut.com. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Bayut support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed properties on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Bayut with other apps?

Yes. Bayut works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Bayut with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Bayut through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape bayut.com?

This actor extracts publicly available data from bayut.com. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/bayut-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [Airbnb Realtime API — Live Listing, Reviews & Search Lookups](https://apify.com/blackfalcondata/airbnb-realtime?fpr=1h3gvi) — Real-time Airbnb lookups via a persistent standby server — fetch a single listing, its reviews.
- [Airbnb Scraper — Listings, Prices, Reviews & Host Data](https://apify.com/blackfalcondata/airbnb-scraper?fpr=1h3gvi) — Scrape Airbnb stays — listings with price, ratings, amenities, host info, photos, GPS and full.
- [Airbnb URL Scraper — Fast, Cheap Listing URL Discovery](https://apify.com/blackfalcondata/airbnb-url-scraper?fpr=1h3gvi) — Discover every Airbnb listing URL for a city, neighborhood or search — the cheapest way to.
- [Craigslist Scraper - Listings, Prices & Photos](https://apify.com/blackfalcondata/craigslist-scraper?fpr=1h3gvi) — Scrape craigslist.org listings across for-sale, housing, jobs, gigs and services. Get structured.
- [Domain.com.au \[Just 💰$0.05\] — Property Listings & Agents](https://apify.com/blackfalcondata/domain-com-au-scraper?fpr=1h3gvi) — Domain.com.au property scraper for Australian real estate — extract for-sale, rental, and sold.
- [HAR Texas Real Estate Scraper](https://apify.com/blackfalcondata/har-scraper?fpr=1h3gvi) — Scrape har.com — the largest Texas MLS portal — for homes for sale, rent and sold in every Texas.
- [Harcourts Property Scraper — buy, rent, sold & leased](https://apify.com/blackfalcondata/harcourts-scraper?fpr=1h3gvi) — Scrape harcourts.net property listings across Australia, New Zealand and Fiji — price, bedrooms,.
- [Idealista Scraper — Listings, Phone & Agency Data](https://apify.com/blackfalcondata/idealista-scraper?fpr=1h3gvi) — Scrape Idealista listings across Spain, Portugal, and Italy with full pricing, photos, GPS, agent.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi\&fp_sid=ctaplain) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor accesses only publicly available data on bayut.com. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with Bayut's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is not affiliated with, endorsed by, or connected to Bayut.

### Search keywords

bayut scraper, bayut api, apify bayut, bayut data extraction, bayut.com scraper, bayut.com data, bayut.com api, bayut.sa scraper, bayut.qa scraper, bayut.om scraper, bayut.jo scraper, bayut united arab emirates, bayut united arab emirates scraper, bayut saudi arabia, bayut saudi arabia scraper, bayut qatar, bayut qatar scraper, bayut oman, bayut oman scraper, bayut jordan, bayut jordan scraper, property listings scraper, real estate data, property data, bayut uae scraper, dubai real estate scraper, abu dhabi real estate scraper, riyadh real estate data, jeddah property listings, amman property listings, doha real estate scraper, muscat property data, uae property scraper, ksa real estate data, gcc real estate data, middle east property data, bayut agent scraper, bayut agency scraper, bayut property data, bayut listings export json csv.

# Actor input Schema

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

Paste Bayut URLs from any country site (.com/.sa/.qa/.om/.jo) — property search, /companies/ or /brokers/ URLs. Each becomes its own search; every row is tagged rowType (listing/company/broker). These REPLACE the structured filters below.

## `country` (type: `string`):

Which Bayut country site to search with the structured filters below. Ignored for Start URLs (they pick their country from the URL host).

## `instantDatabase` (type: `boolean`):

Return agents (brokers) with name, agency, email, phone and WhatsApp — no URL needed. Uses the Country above (UAE or Saudi only).

## `dbAgencyName` (type: `string`):

Only agents at agencies matching this name (e.g. "Betterhomes"; all branches).

## `dbHasEmail` (type: `boolean`):

Keep only agents with an email.

## `dbHasPhone` (type: `boolean`):

Keep only agents with a phone.

## `dbHasWhatsapp` (type: `boolean`):

Keep only agents with WhatsApp.

## `location` (type: `string`):

Emirate, city or community — e.g. "Dubai", "Dubai Marina", "Business Bay". Matched to Bayut's location list; covers all sub-communities. Accepts an exact slug like "/dubai/dubai-marina", or a JSON array for several areas.

## `query` (type: `string`):

Optional free-text keyword to narrow results within the selected location — e.g. "sea view", "maids room", a building or project name. Leave empty to return all listings for the filters.

## `purpose` (type: `string`):

For-sale or for-rent listings.

## `propertyType` (type: `string`):

Restrict to one property type. Leave empty for all types.

## `priceMin` (type: `integer`):

Minimum price, in the selected country's local currency (AED, SAR, QAR, OMR or JOD). For rentals this is per the selected rent frequency.

## `priceMax` (type: `integer`):

Maximum price, in the selected country's local currency.

## `bedsMin` (type: `integer`):

Minimum number of bedrooms (0 = studio).

## `bathsMin` (type: `integer`):

Minimum number of bathrooms.

## `furnishingStatus` (type: `string`):

Filter by furnishing status.

## `rentFrequency` (type: `string`):

Rentals only — filter by contract frequency.

## `completionStatus` (type: `string`):

Ready (completed) or off-plan (under construction).

## `sortBy` (type: `string`):

Ordering of results.

## `language` (type: `string`):

Language of titles and localized fields.

## `maxResults` (type: `integer`):

Maximum listings to return (0 = as many as available). A single filter combination can return up to ~50,000 listings; narrow by community or price to go deeper.

## `compact` (type: `boolean`):

Return only the core fields (id, title, price, beds/baths, location, contact) instead of the full record.

## `excludeEmptyFields` (type: `boolean`):

Omit fields that are null or empty from each record.

## `incrementalMode` (type: `boolean`):

Only emit listings that are new or changed since the previous run with the same filters. Tracks state across runs.

## `stateKey` (type: `string`):

Advanced: override the automatic incremental state key. Leave empty to derive it from the filters.

## `emitUnchanged` (type: `boolean`):

In incremental mode, also emit listings that were seen before and are unchanged.

## `emitExpired` (type: `boolean`):

In incremental mode, emit a record for listings that disappeared since the last full run.

## `skipReposts` (type: `boolean`):

In incremental mode, skip listings detected as reposts of an earlier one.

## `telegramToken` (type: `string`):

Optional — send new listings to Telegram.

## `telegramChatId` (type: `string`):

Chat ID to deliver Telegram notifications to.

## `discordWebhookUrl` (type: `string`):

Optional — post new listings to a Discord channel.

## `slackWebhookUrl` (type: `string`):

Optional — post new listings to a Slack channel.

## `webhookUrl` (type: `string`):

Optional — POST new listings as JSON to your own endpoint.

## `notificationLimit` (type: `integer`):

Maximum listings to include per notification batch.

## `notifyOnlyChanges` (type: `boolean`):

Only send notifications for new/changed listings (incremental mode).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results. Notion is supported today (a run-summary page); other connectors are best-effort as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary is created under, if that app requires one.

## Actor input object example

```json
{
  "startUrls": [],
  "country": "ae",
  "instantDatabase": false,
  "dbHasEmail": false,
  "dbHasPhone": false,
  "dbHasWhatsapp": false,
  "location": "Dubai Marina",
  "purpose": "for-rent",
  "propertyType": "",
  "furnishingStatus": "any",
  "rentFrequency": "",
  "completionStatus": "",
  "sortBy": "default",
  "language": "en",
  "maxResults": 50,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "skipReposts": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false
}
```

# Actor output Schema

## `results` (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": [],
    "location": "Dubai Marina",
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/bayut-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": [],
    "location": "Dubai Marina",
    "maxResults": 50,
}

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

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [],
  "location": "Dubai Marina",
  "maxResults": 50
}' |
apify call blackfalcondata/bayut-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=blackfalcondata/bayut-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Bayut [Just 💰$0.8] — UAE Property Listings & Agents",
        "description": "💰 $0.80 per 1,000 rows across the UAE, Saudi Arabia, Qatar, Oman and Jordan. Scrape Bayut property listings plus agents and agencies from one actor — every row arrives structured with price, location and direct agent contact including email, ready to use.",
        "version": "0.1",
        "x-build-id": "AzrQECDKmmhbG0Sml"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/blackfalcondata~bayut-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-blackfalcondata-bayut-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/blackfalcondata~bayut-scraper/runs": {
            "post": {
                "operationId": "runs-sync-blackfalcondata-bayut-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/blackfalcondata~bayut-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-blackfalcondata-bayut-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "startUrls": {
                        "title": "🔗 Bayut search URLs",
                        "type": "array",
                        "description": "Paste Bayut URLs from any country site (.com/.sa/.qa/.om/.jo) — property search, /companies/ or /brokers/ URLs. Each becomes its own search; every row is tagged rowType (listing/company/broker). These REPLACE the structured filters below.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "country": {
                        "title": "🌍 Country",
                        "enum": [
                            "ae",
                            "sa",
                            "qa",
                            "om",
                            "jo"
                        ],
                        "type": "string",
                        "description": "Which Bayut country site to search with the structured filters below. Ignored for Start URLs (they pick their country from the URL host).",
                        "default": "ae"
                    },
                    "instantDatabase": {
                        "title": "👥 Agent database (UAE & Saudi)",
                        "type": "boolean",
                        "description": "Return agents (brokers) with name, agency, email, phone and WhatsApp — no URL needed. Uses the Country above (UAE or Saudi only).",
                        "default": false
                    },
                    "dbAgencyName": {
                        "title": "🏢 Agency name filter",
                        "type": "string",
                        "description": "Only agents at agencies matching this name (e.g. \"Betterhomes\"; all branches)."
                    },
                    "dbHasEmail": {
                        "title": "✉️ Only agents with email",
                        "type": "boolean",
                        "description": "Keep only agents with an email.",
                        "default": false
                    },
                    "dbHasPhone": {
                        "title": "📞 Only agents with phone",
                        "type": "boolean",
                        "description": "Keep only agents with a phone.",
                        "default": false
                    },
                    "dbHasWhatsapp": {
                        "title": "💬 Only agents with WhatsApp",
                        "type": "boolean",
                        "description": "Keep only agents with WhatsApp.",
                        "default": false
                    },
                    "location": {
                        "title": "📍 Location",
                        "type": "string",
                        "description": "Emirate, city or community — e.g. \"Dubai\", \"Dubai Marina\", \"Business Bay\". Matched to Bayut's location list; covers all sub-communities. Accepts an exact slug like \"/dubai/dubai-marina\", or a JSON array for several areas."
                    },
                    "query": {
                        "title": "🔍 Keyword (optional)",
                        "type": "string",
                        "description": "Optional free-text keyword to narrow results within the selected location — e.g. \"sea view\", \"maids room\", a building or project name. Leave empty to return all listings for the filters."
                    },
                    "purpose": {
                        "title": "🎯 Purpose",
                        "enum": [
                            "for-sale",
                            "for-rent"
                        ],
                        "type": "string",
                        "description": "For-sale or for-rent listings.",
                        "default": "for-rent"
                    },
                    "propertyType": {
                        "title": "🏠 Property type",
                        "enum": [
                            "",
                            "apartments",
                            "villas",
                            "townhouses",
                            "penthouses",
                            "villa-compound",
                            "hotel-apartments",
                            "residential-plots",
                            "residential-floors",
                            "residential-building",
                            "offices",
                            "shops",
                            "warehouses",
                            "commercial-plots",
                            "commercial-villas",
                            "commercial-buildings",
                            "labour-camps",
                            "commercial-floors",
                            "factories",
                            "showrooms"
                        ],
                        "type": "string",
                        "description": "Restrict to one property type. Leave empty for all types.",
                        "default": ""
                    },
                    "priceMin": {
                        "title": "💰 Min price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum price, in the selected country's local currency (AED, SAR, QAR, OMR or JOD). For rentals this is per the selected rent frequency."
                    },
                    "priceMax": {
                        "title": "💰 Max price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum price, in the selected country's local currency."
                    },
                    "bedsMin": {
                        "title": "🛏️ Min bedrooms",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum number of bedrooms (0 = studio)."
                    },
                    "bathsMin": {
                        "title": "🛁 Min bathrooms",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum number of bathrooms."
                    },
                    "furnishingStatus": {
                        "title": "🛋️ Furnishing",
                        "enum": [
                            "any",
                            "furnished",
                            "unfurnished"
                        ],
                        "type": "string",
                        "description": "Filter by furnishing status.",
                        "default": "any"
                    },
                    "rentFrequency": {
                        "title": "🗓️ Rent frequency",
                        "enum": [
                            "",
                            "yearly",
                            "monthly",
                            "weekly",
                            "daily"
                        ],
                        "type": "string",
                        "description": "Rentals only — filter by contract frequency.",
                        "default": ""
                    },
                    "completionStatus": {
                        "title": "🏗️ Completion",
                        "enum": [
                            "",
                            "ready",
                            "off-plan"
                        ],
                        "type": "string",
                        "description": "Ready (completed) or off-plan (under construction).",
                        "default": ""
                    },
                    "sortBy": {
                        "title": "↕️ Sort by",
                        "enum": [
                            "default",
                            "newest",
                            "price-asc",
                            "price-desc"
                        ],
                        "type": "string",
                        "description": "Ordering of results.",
                        "default": "default"
                    },
                    "language": {
                        "title": "🌐 Language",
                        "enum": [
                            "en",
                            "ar",
                            "zh",
                            "ru"
                        ],
                        "type": "string",
                        "description": "Language of titles and localized fields.",
                        "default": "en"
                    },
                    "maxResults": {
                        "title": "💯 Max results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum listings to return (0 = as many as available). A single filter combination can return up to ~50,000 listings; narrow by community or price to go deeper.",
                        "default": 100
                    },
                    "compact": {
                        "title": "📦 Compact output",
                        "type": "boolean",
                        "description": "Return only the core fields (id, title, price, beds/baths, location, contact) instead of the full record.",
                        "default": false
                    },
                    "excludeEmptyFields": {
                        "title": "🧹 Drop empty fields",
                        "type": "boolean",
                        "description": "Omit fields that are null or empty from each record.",
                        "default": false
                    },
                    "incrementalMode": {
                        "title": "🔄 Incremental mode",
                        "type": "boolean",
                        "description": "Only emit listings that are new or changed since the previous run with the same filters. Tracks state across runs.",
                        "default": false
                    },
                    "stateKey": {
                        "title": "🔑 State key",
                        "type": "string",
                        "description": "Advanced: override the automatic incremental state key. Leave empty to derive it from the filters."
                    },
                    "emitUnchanged": {
                        "title": "♻️ Emit unchanged",
                        "type": "boolean",
                        "description": "In incremental mode, also emit listings that were seen before and are unchanged.",
                        "default": false
                    },
                    "emitExpired": {
                        "title": "⚰️ Emit expired",
                        "type": "boolean",
                        "description": "In incremental mode, emit a record for listings that disappeared since the last full run.",
                        "default": false
                    },
                    "skipReposts": {
                        "title": "Skip reposts",
                        "type": "boolean",
                        "description": "In incremental mode, skip listings detected as reposts of an earlier one.",
                        "default": false
                    },
                    "telegramToken": {
                        "title": "Telegram bot token",
                        "type": "string",
                        "description": "Optional — send new listings to Telegram."
                    },
                    "telegramChatId": {
                        "title": "💬 Telegram chat ID",
                        "type": "string",
                        "description": "Chat ID to deliver Telegram notifications to."
                    },
                    "discordWebhookUrl": {
                        "title": "Discord webhook URL",
                        "type": "string",
                        "description": "Optional — post new listings to a Discord channel."
                    },
                    "slackWebhookUrl": {
                        "title": "Slack webhook URL",
                        "type": "string",
                        "description": "Optional — post new listings to a Slack channel."
                    },
                    "webhookUrl": {
                        "title": "Custom webhook URL",
                        "type": "string",
                        "description": "Optional — POST new listings as JSON to your own endpoint."
                    },
                    "notificationLimit": {
                        "title": "Notification limit",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum listings to include per notification batch.",
                        "default": 5
                    },
                    "notifyOnlyChanges": {
                        "title": "Notify only changes",
                        "type": "boolean",
                        "description": "Only send notifications for new/changed listings (incremental mode).",
                        "default": false
                    },
                    "appConnector": {
                        "title": "Send results to Notion (or another connected app)",
                        "type": "string",
                        "description": "Optional. Pick a connected app under Settings → API & Integrations to receive your results. Notion is supported today (a run-summary page); other connectors are best-effort as Apify expands its catalog."
                    },
                    "mcpIssueTeam": {
                        "title": "Issue tracker team",
                        "type": "string",
                        "description": "Only when the connected app is an issue tracker: the team (name or ID) the summary is created under, if that app requires one."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
