# Bayut Gulf Scraper - Qatar, Jordan, Oman & Bahrain Listings (`topapi/bayut-scraper`) Actor

Scrape Bayut Qatar, Jordan, Oman and Bahrain (not the UAE): listings for sale or rent with price, beds, baths, m², location, GPS, agent phone and WhatsApp, agency, photos, amenities; free description add-on; filters, search links, monitor mode, agencies. $0.63 per 1,000 listings.

- **URL**: https://apify.com/topapi/bayut-scraper.md
- **Developed by:** [Top Api](https://apify.com/topapi) (community)
- **Categories:** Real estate, Lead generation, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.63 / 1,000 listings

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

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

## What's an Apify Actor?

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

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

## How to integrate an Actor?

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

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

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

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

# README

### What does Bayut Gulf Scraper do?

Bayut Gulf Scraper reads property listings and agencies from **Bayut's Qatar, Jordan, Oman and Bahrain sites**: [bayut.qa](https://www.bayut.qa), [bayut.jo](https://www.bayut.jo), [bayut.om](https://www.bayut.om) and [bayut.bh](https://www.bayut.bh). Apartments, villas, land, offices, shops and every other Bayut property type, **for sale or for rent**.

> **Not covered: the UAE (bayut.com), Saudi Arabia (bayut.sa) and Egypt (bayut.eg).** A link or market for one of those sites is skipped with a message in the run status, and nothing is charged for it.

- **Every Bayut filter in Bayut's own search** - purpose, property types, locations, keywords, price, bedrooms, bathrooms, area (m²), furnishing, ready / off-plan, rent period, posted or updated within N days, agencies, with photos, with a shown price, and a point + radius.
- **Bayut links** - paste any Bayut Qatar / Jordan / Oman / Bahrain result page (with the filters and sort you set on the site) or listing link, or listing ids.
- **Whole markets in one run** - up to 1,000 listings per call to Bayut's search; Jordan's ~23,700 listings come in one run.
- **Listing details at no extra charge** - the full description, reference number, every photo in order and the detailed amenities, read from each listing's own page.
- **Agencies** - each site's agency directory: name, phones, listings for sale and rent, agents, service areas, property types.
- **Monitor mode** - a scheduled run delivers only new and re-posted listings and listings whose price changed (with the earlier price and the change), and is not charged when nothing changed.
- **Pay per row** - $0.63 per 1,000 listings, $0.63 per 1,000 agencies, no start fee.

### Which Bayut sites

| Market | Site | Listings on the site (2026-11-21) | Currency |
|---|---|---|---|
| Qatar | www.bayut.qa | 1,379 | QAR |
| Jordan | www.bayut.jo | 23,719 | JOD |
| Oman | www.bayut.om | 2,302 | OMR |
| Bahrain | www.bayut.bh | 3,035 | BHD |
| UAE, Saudi Arabia, Egypt | bayut.com, bayut.sa, bayut.eg | **not covered** | - |

### What data can I get?

Fill rates measured on 2026-11-21: real runs (every Jordan listing, 23,717 rows; 150 rentals from Doha / Amman / Muscat links; 96 Oman and Qatar sales with details; 50 Bahrain rentals) and a read of all 30,440 listings on the four sites for the per-site shares. A field is empty when Bayut has no value for that listing.

| Field | What it is | Filled (measured) |
|---|---|---|
| `id`, `url`, `title` | Bayut listing id (numbers; most Jordan ids are letters + digits), listing page, title | 100% |
| `market`, `country`, `site` | qa / jo / om / bh, the country, the Bayut site | 100% |
| `purpose` | for-sale or for-rent | 100% |
| `price`, `currency`, `priceHidden` | Asking price, or rent for the rent period, in QAR / JOD / OMR / BHD; Bayut's price-on-request flag | price 98-100% on Qatar, Oman, Bahrain; 81% on Jordan (the rest list no price) |
| `rentFrequency` | yearly, monthly, weekly or daily (rentals) | 100% of rentals |
| `pricePerSqm` | price / area | wherever both are known |
| `propertyCategory`, `propertyType`, `propertyTypeSlug` | Residential or Commercial; Apartment, Villa, Residential Land, Office ...; Bayut's type slug | 100% |
| `bedrooms`, `bathrooms` | Bedrooms (0 = studio or none) and bathrooms | 100% on Qatar, Oman, Bahrain; 79-81% on Jordan |
| `areaSqm`, `areaSqft` | Built-up area in m² (all four sites list m²) and in sq ft | 99-100%; 84% on Jordan |
| `furnishingStatus`, `completionStatus` | furnished / unfurnished; completed (ready) / under-construction (off-plan) | 100% (furnishing 3% on Jordan) |
| `location`, `locationPath`, `city`, `community` | Full location, smallest place first; the path; city or governorate; community | 100% (community 94% on Jordan) |
| `locationSlug`, `locationId` | Bayut's location slug (usable in the Locations input) and id | 100% |
| `latitude`, `longitude` | Map pin | 99-100% |
| `contactName` | Agent or owner name on the listing | 100% |
| `phoneMobile`, `phone`, `phoneWhatsapp`, `phoneNumbers` | Mobile, landline, WhatsApp and every number on the listing | phoneNumbers 100%; mobile 85-100%; WhatsApp 93% on Oman, under 1% elsewhere |
| `contactMethods` | call / whatsapp / sms / email offered on the listing | 100% |
| `agentId` | Bayut id of the agent or user who posted it | 100% (28% on Jordan) |
| `agencyName`, `agencyId`, `agencySlug`, `agencyLogo`, `agencyVerified` | The agency, when the listing has one | 97% on Jordan, 94% on Oman, 2-4% on Qatar and Bahrain (the rest carry no agency) |
| `isVerified`, `verificationStatus`, `listingTier` | Bayut's verified flag and status; ad tier (premium, hot, superhot ...) | 100% |
| `amenities`, `keywords` | Amenities and Bayut's keywords | 52-88%; 73-100% |
| `coverImage`, `images`, `imageCount` | Cover photo, photo URLs (800x600), photo count | 88-100% |
| `videoCount`, `panoramaCount`, `hasFloorPlan` | Videos, 360° tours, floor plan | 100% (all 0 / false on these four sites today) |
| `createdAt`, `updatedAt`, `reactivatedAt`, `daysOnMarket` | Created, updated and re-posted on Bayut; days since created | 100% |
| `description`, `referenceNumber`, `amenitiesDetailed`, `approvedAt`, `isStudio` | **Listing details on**: full description, reference number, amenities with values, approval date, studio flag (and every photo in order) | description, reference, approval date 100% of rows with details; amenities 74% |
| `detailsScraped` | true when the listing page was read | 100% |
| `searchUrl`, `sourceUrl`, `position`, `totalInSearch` | The Bayut link / input the row came from, position, listings Bayut counts for the search | searchUrl / sourceUrl on link inputs |
| `changeType`, `firstSeenAt`, `previousPrice`, `priceChange`, `priceChangePct` | **Monitor mode**: new / price-changed / details; first delivered; the earlier price and the change | on monitor rows |
| `scrapedAt` | When the run read the row | 100% |

#### Example row (details on)

A real row from a run on 2026-11-21 (description and photo list shortened here):

```json
{
  "id": "129754103",
  "url": "https://www.bayut.om/en/property/details-129754103.html",
  "market": "om",
  "country": "Oman",
  "site": "www.bayut.om",
  "title": "3 Bedroom Villa For Sale in The Wave (Almouj), Muscat",
  "purpose": "for-sale",
  "price": 235000,
  "currency": "OMR",
  "priceHidden": false,
  "rentFrequency": null,
  "pricePerSqm": 1163.37,
  "propertyCategory": "Residential",
  "propertyType": "Villa",
  "propertyTypeSlug": "villas",
  "bedrooms": 3,
  "bathrooms": 4,
  "areaSqm": 202,
  "areaSqft": 2174,
  "furnishingStatus": "unfurnished",
  "completionStatus": "completed",
  "location": "The Wave (Almouj), Muscat",
  "locationPath": ["Muscat", "The Wave (Almouj)"],
  "city": "Muscat",
  "community": "The Wave (Almouj)",
  "locationSlug": "/muscat/almouj-the-wave",
  "locationId": "2-101",
  "latitude": 23.63084,
  "longitude": 58.26652,
  "contactName": "Royal Gulf",
  "phoneMobile": "+96871116692",
  "phone": null,
  "phoneWhatsapp": "+96871116692",
  "phoneNumbers": ["+96871116692"],
  "contactMethods": ["call", "whatsapp", "sms", "email"],
  "agentId": "5dd50782-0845-4493-802a-992e941855d1",
  "agencyName": "Royal Gulf Oman",
  "agencyId": "5000064",
  "agencySlug": "royal-gulf-oman-5000064",
  "agencyLogo": "https://bayut-om-production.s3.eu-west-1.amazonaws.com/image/676103/049bce2ba05148c4ba86f9c0047d87d9",
  "agencyVerified": false,
  "isVerified": false,
  "verificationStatus": "unverified",
  "listingTier": "superhot",
  "referenceNumber": "ID129754103",
  "amenities": ["Shared Spa", "Lawn or Garden", "Central A/C & heating", "Shared Pool", "Covered parking", "Pets Allowed", "Maids Room", "Built in Kitchen Appliances", "Built in Wardrobes", "Shared Gym", "Centrally Air-Conditioned", "Balcony or Terrace", "Security Staff"],
  "amenitiesDetailed": ["Balcony or Terrace", "Built in Kitchen Appliances", "Built in Wardrobes", "Central A/C & heating", "Covered parking", "Maids Room", "Pets Allowed", "Lawn or Garden", "Security Staff", "Shared Gym", "Shared Pool", "Shared Spa", "Centrally Air-Conditioned"],
  "keywords": ["balcony", "family", "luxury", "chiller", "private", "new", "pets allowed", "kitchen", "central ac", "garden", "gym", "pool", "terrace"],
  "description": "This stunning 3-bedroom villa is located in the picturesque area of The Wave (Almouj) in Muscat, providing an ideal blend of comfort and luxury. The property spans an impressive 202 square meters, making it perfect for families seeking spacious living. ...",
  "coverImage": "https://images.bayut.om/thumbnails/10415780-800x600.jpeg",
  "images": ["https://images.bayut.om/thumbnails/10415780-800x600.jpeg", "https://images.bayut.om/thumbnails/10415781-800x600.jpeg", "..."],
  "imageCount": 9,
  "videoCount": 0,
  "panoramaCount": 0,
  "hasFloorPlan": false,
  "isStudio": false,
  "createdAt": "2026-11-20T11:51:28.000Z",
  "updatedAt": "2026-11-21T05:01:11.000Z",
  "reactivatedAt": "2026-11-20T12:11:24.169Z",
  "approvedAt": "2024-10-29T03:03:36.000Z",
  "daysOnMarket": 0,
  "detailsScraped": true,
  "position": 1,
  "totalInSearch": 1294,
  "scrapedAt": "2026-11-21T06:19:11.793Z"
}
```

#### Agency rows (Row type: Agencies)

One row per agency in the selected markets' Bayut agency directories (375 agencies on the four sites, measured 2026-11-21: Qatar 10, Jordan 116, Oman 228, Bahrain 21): `id`, `name`, `nameArabic`, `slug`, `logo`, `phoneMobile`, `phone`, `phoneNumbers` (44%), `contactMethods`, `listingCount`, `listingsForSale`, `listingsForRent`, `agentCount`, `serviceAreas` and `propertyTypes` (52%), `purposes`, `tier`, `isFeatured`, `createdAt`. Use an agency's `id` in the **Agencies** filter to get its listings.

### How to use it

1. Pick the **markets** (or leave empty for all four), **for sale or for rent**, the **property types** and, if you want, **locations** and filters.
2. Or paste **Bayut links**: result pages from bayut.qa / bayut.jo / bayut.om / bayut.bh with any filters and sort, or listing links. When links are given they are the run: the market, purpose, type and location fields are not searched on top of them.
3. Set **Maximum rows** and run. Download the dataset as JSON, CSV, Excel or through the API.

#### Input example

```json
{
  "markets": ["qatar", "oman"],
  "purpose": "for-rent",
  "propertyTypes": ["apartments", "villas"],
  "locations": ["The Pearl-Qatar", "Muscat Hills"],
  "minBedrooms": 2,
  "maxPrice": 15000,
  "sortBy": "newest",
  "maxItems": 500,
  "includeDetails": true
}
```

With no input at all the run delivers a sample: the 20 newest listings on Bayut Qatar.

#### Inputs

| Input | What it does |
|---|---|
| `markets` | qatar, jordan, oman, bahrain (empty = all four) |
| `purpose` | any, for-sale, for-rent |
| `propertyTypes` | residential, commercial, apartments, villas, residential-lands, residential-buildings, chalets, rooms, hotel-apartments, commercial-properties, commercial-buildings, commercial-lands, offices, showrooms, shops, warehouses, farms, agriculture-plots, industrial-lands, mixed-use-land, commercial-villas, garages, commercial-floors |
| `locations` | Places as Bayut names them ("Doha", "The Pearl-Qatar", "Amman", "Abdoun", "Muscat Hills", "Juffair", "Capital Governorate") or a Bayut slug ("/doha/the-pearl-qatar"); one search per location, in each selected market that knows the place |
| `startUrls` | Bayut Qatar / Jordan / Oman / Bahrain result pages (the page's own filters, sort and page are kept) and listing links |
| `listingIds` | Listing ids; "qa:500073472" names the market, a bare id is looked up in the selected markets |
| `keywords` | Words Bayut's search matches in the title, keywords, amenities, agency name or reference |
| `minPrice`, `maxPrice` | In the market's currency; for rentals, the rent of the rent period |
| `minBedrooms`, `maxBedrooms`, `minBathrooms`, `maxBathrooms` | Bedrooms (0 = studios) and bathrooms |
| `minAreaSqm`, `maxAreaSqm` | Built-up area in m² |
| `furnishing`, `completionStatus`, `rentFrequency` | furnished / unfurnished; completed / under-construction; yearly / monthly / weekly / daily |
| `postedWithinDays`, `updatedWithinDays` | Created or updated on Bayut in the last N days |
| `agencies` | Agency names as Bayut shows them, or agency ids |
| `withPhotosOnly`, `withPriceOnly` | Leave out listings without photos / with a hidden price |
| `latitude`, `longitude`, `radiusKm` | Only listings within the radius of a point (default 5 km) |
| `sortBy` | popular (Bayut's default), newest, price_asc, price_desc, verified |
| `maxItems`, `maxItemsPerSearch` | Most rows for the run (default 100; 0 = no limit) and per search |
| `includeDetails` | Read each delivered listing's page: description, reference, every photo, detailed amenities, approval date (no extra charge) |
| `language` | en or ar: Arabic gives Bayut's Arabic title, location, type, agency names and amenities |
| `compact`, `descriptionMaxLength` | Only the main fields; cut descriptions |
| `mode` | listings or agencies |
| `monitorMode`, `monitorName`, `emitPriceChanges`, `emitUnchanged`, `resetMonitor` | Monitor mode (below) |
| `webhookUrl` | Slack / Discord / any URL: a short summary with the top rows when a run delivers something |
| `proxyConfiguration`, `maxConcurrency` | Not needed: the run reads Bayut directly and moves to Apify proxies only when a request is refused |

### Monitor mode

Turn on **Monitor mode** and schedule the actor with the same input (hourly, daily ...):

- The first run delivers what the caps allow and remembers it.
- Each later run asks Bayut only for listings created, updated or re-posted since the previous run, and delivers the ones that are **new** or **re-posted** (`changeType: "new"`) and known listings whose **price changed** (`changeType: "price-changed"`, with `previousPrice`, `priceChange`, `priceChangePct`).
- Turning **Listing details** on later delivers the listings an earlier run sent without details once more, with them (`changeType: "details"`).
- A run that finds nothing new is not charged (measured: 1-3 s).
- A run stopped by its maximum cost keeps the rest for the next run: nothing is delivered or charged twice.
- `monitorName` keeps separate memories for separate monitors; `resetMonitor` starts over.

### How much does it cost?

Pay per row, no start fee:

- **$0.63 per 1,000 listings** ($0.00063 a listing), Listing details included at no extra charge.
- **$0.63 per 1,000 agencies** ($0.00063 an agency).
- Duplicates, listings removed by a filter, links to bayut.com / bayut.sa / bayut.eg and listings a monitor delivered before unchanged are never charged.

Examples measured on 2026-11-21: the 20-listing prefill $0.0126; 1,000 Jordan sales $0.63; every Jordan listing (23,717) $14.94; all 375 agencies $0.24. Set a maximum cost per run in the run options: the run stops cleanly at it and charges only what it delivered.

### Speed

Measured on the default 256 MB: 1,000 listings in 3-6 s; every Jordan listing (23,717) in about 1-3 minutes; with Listing details about 10-15 listings per second.

### Limits

- **Only Bayut Qatar, Jordan, Oman and Bahrain.** The UAE (bayut.com), Saudi Arabia (bayut.sa) and Egypt (bayut.eg) are not read.
- Bayut's search returns at most 50,000 listings per search (the largest site, Jordan, has ~23,700).
- Description, reference number and the detailed amenities come only with **Listing details** on (one listing page each, so it is slower).
- Jordan lists no price on about 19% of its listings: `price` is empty there, never 0. 55 Oman listings carry no map pin.
- On these four sites today no listing has a video, a 360° tour or a floor plan, and no listing carries Bayut's verified badge (0 of 30,440 measured): those fields are 0 / false.
- Agent profiles: the Gulf sites publish no agent directory; each listing carries its contact name, phone numbers and the posting agent's id.

### FAQ

**Does it cover Dubai / the UAE?** No. This actor reads Bayut's Qatar, Jordan, Oman and Bahrain sites only. A bayut.com link is skipped with a message and is not charged.

**Can I paste a link from the Bayut website?** Yes - any result page or listing page of bayut.qa, bayut.jo, bayut.om or bayut.bh, in English or Arabic. The page's own filters and sort are used.

**Why is a field empty?** Bayut has no value for that listing (owner listings have no agency, rentals have no completion date ...). Fields are never filled with made-up values.

**Do I need a proxy?** No.

# Actor input Schema

## `markets` (type: `array`):

Which Bayut sites to search: Qatar (bayut.qa), Jordan (bayut.jo), Oman (bayut.om), Bahrain (bayut.bh). One search per market, with the filters below. Leave empty to search all four. The UAE (bayut.com), Saudi Arabia (bayut.sa) and Egypt (bayut.eg) are not covered: they are skipped with a message and nothing is charged for them.

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

Listings for sale, for rent, or both.

## `propertyTypes` (type: `array`):

One or more Bayut property types (any of them matches). Leave empty for every type. A type a site does not list simply matches nothing there.

## `locations` (type: `array`):

Cities, governorates, communities or buildings as Bayut names them ("Doha", "The Pearl-Qatar", "Amman", "Muscat Hills", "Capital Governorate"), or a Bayut location slug ("/doha/the-pearl-qatar"). One search per location, in each selected market where Bayut knows the place. Leave empty for the whole market.

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

Bayut Qatar / Jordan / Oman / Bahrain search result links (with any filters and sort you set on the site) and listing links (…/property/details-<id>.html). When links are given they are the run: the market, purpose, type and location fields above are not searched on top of them (the filters below still apply). bayut.com (UAE), bayut.sa and bayut.eg links are skipped with a message and nothing is charged for them.

## `listingIds` (type: `array`):

Bayut listing ids (the number in the listing link). Looked up in the selected markets (all four when none is selected); "qa:500073472" names the market.

## `keywords` (type: `string`):

Words Bayut's search matches in the title, keywords, amenities, agency name or reference (e.g. "sea view", "pool").

## `minPrice` (type: `integer`):

In the market's currency (QAR, JOD, OMR, BHD). For rentals, the price of the rent period.

## `maxPrice` (type: `integer`):

In the market's currency (QAR, JOD, OMR, BHD).

## `minBedrooms` (type: `integer`):

0 includes studios.

## `maxBedrooms` (type: `integer`):

Most bedrooms.

## `minBathrooms` (type: `integer`):

Fewest bathrooms.

## `maxBathrooms` (type: `integer`):

Most bathrooms.

## `minAreaSqm` (type: `integer`):

Built-up area in square metres (all four sites list areas in m²).

## `maxAreaSqm` (type: `integer`):

Built-up area in square metres.

## `furnishing` (type: `string`):

Furnished or unfurnished listings (rentals mostly).

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

Ready or off-plan listings.

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

The rent period of rentals.

## `postedWithinDays` (type: `integer`):

Only listings created on Bayut in the last N days.

## `updatedWithinDays` (type: `integer`):

Only listings updated on Bayut in the last N days.

## `agencies` (type: `array`):

Only listings of these agencies: the agency name as Bayut shows it, or its Bayut id (agencyId in the output).

## `withPhotosOnly` (type: `boolean`):

Leave out listings without photos.

## `withPriceOnly` (type: `boolean`):

Leave out listings whose price is hidden (price on request).

## `latitude` (type: `string`):

With longitude and radius: only listings within the radius of this point (e.g. 25.2854).

## `longitude` (type: `string`):

e.g. 51.5310

## `radiusKm` (type: `integer`):

Default 5 km.

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

Bayut's own sort orders. A link keeps the sort it was saved with.

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

Most rows this run delivers and charges, across all searches. 0 = no limit (Jordan, the largest site, has ~24,000 listings).

## `maxItemsPerSearch` (type: `integer`):

Cap for each market / location / link (0 = no cap).

## `includeDetails` (type: `boolean`):

Also read each delivered listing's own page: full description, reference number, every photo in order, detailed amenities, video / 360° links, approval date. No extra charge; slower (one page per listing).

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

Arabic gives the Arabic title, location, property type, agency names and amenities that Bayut stores with each listing.

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

Only the main fields, empty ones left out.

## `descriptionMaxLength` (type: `integer`):

0 = full text.

## `mode` (type: `string`):

Agencies: one row per agency on the selected markets (name, phones, listing counts for sale and rent, service areas, property types). Keywords filter agency names.

## `monitorMode` (type: `boolean`):

Run on a schedule with the same input: the first run delivers what the caps allow and remembers it; each later run delivers only listings that are new, re-posted with a new price, or changed price (changeType, previousPrice, priceChange). An empty poll is not charged.

## `monitorName` (type: `string`):

Keeps separate memories for separate monitors with the same input. Default: bayut-gulf-monitor.

## `emitPriceChanges` (type: `boolean`):

In monitor mode, deliver a known listing again when its price changed.

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

Deliver unchanged listings too.

## `resetMonitor` (type: `boolean`):

Forget what earlier runs delivered (this run starts a new memory).

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

Slack / Discord / any URL: a short summary with the top rows is POSTed when a run delivers something.

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

Not needed: the run reads Bayut directly and moves to Apify proxies only if a request is refused.

## `maxConcurrency` (type: `integer`):

Listing pages read at once with Listing details on.

## Actor input object example

```json
{
  "markets": [
    "qatar"
  ],
  "purpose": "for-rent",
  "propertyTypes": [
    "apartments"
  ],
  "locations": [
    "Doha"
  ],
  "furnishing": "any",
  "completionStatus": "any",
  "rentFrequency": "any",
  "withPhotosOnly": false,
  "withPriceOnly": false,
  "sortBy": "popular",
  "maxItems": 20,
  "includeDetails": false,
  "language": "en",
  "compact": false,
  "mode": "listings",
  "monitorMode": false,
  "emitPriceChanges": true,
  "emitUnchanged": false,
  "resetMonitor": false,
  "maxConcurrency": 8
}
```

# Actor output Schema

## `results` (type: `string`):

One item per listing (or per agency in Agencies mode).

## `summary` (type: `string`):

Per-search counts (total on Bayut, read, delivered, calls), skipped inputs and egress statistics (written for Console runs, large runs and runs with a problem).

# 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 = {
    "markets": [
        "qatar"
    ],
    "purpose": "for-rent",
    "propertyTypes": [
        "apartments"
    ],
    "locations": [
        "Doha"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("topapi/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 = {
    "markets": ["qatar"],
    "purpose": "for-rent",
    "propertyTypes": ["apartments"],
    "locations": ["Doha"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("topapi/bayut-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 '{
  "markets": [
    "qatar"
  ],
  "purpose": "for-rent",
  "propertyTypes": [
    "apartments"
  ],
  "locations": [
    "Doha"
  ],
  "maxItems": 20
}' |
apify call topapi/bayut-scraper --silent --output-dataset

```

## MCP server setup

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