# Bayut Scraper: UAE, Saudi, Egypt Property, Agents (`automation_craft/bayut-scraper`) Actor

Scrape Bayut ads for sale and rent in the UAE, Saudi Arabia, Egypt, Qatar, Kuwait, Bahrain, Oman and Jordan by place, link or ad number, past the 50,000 cap, no login. Rows: price, price per sqft, beds, building, TruCheck, payment plan, agency; agents, off plan projects. JSON, CSV, API; pay per row.

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

## Pricing

from $0.66 / 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.
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?

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

### Bayut Scraper: UAE, Saudi, Egypt Property, Agents

**Bayut scraper and API** for all eight Bayut sites: the UAE (bayut.com), Saudi Arabia (bayut.sa), Egypt (bayut.eg), Qatar, Kuwait, Bahrain, Oman and Jordan. Type a place such as `Dubai Marina` or `Riyadh, KSA` (English or Arabic), paste a Bayut search or ad link, or give ad numbers, and get one row per ad for sale or for rent with its price, currency and rent period, price per sqft and per sqm, property type, bedrooms, bathrooms, area in sq ft and sq m, plot area, furnishing, ready or off plan, the place from city to building with coordinates, amenities, photos, TruCheck state, payment plan, project and developer, agency and dates. Three more modes give one row per agent (UAE, Saudi Arabia, Egypt), per agency, or per off plan project (UAE, Saudi Arabia, Egypt).

No login, no cookies, no browser and no proxy needed from you. A search with more ads than Bayut lists in one query (50,000) is read in exact slices to its last ad, and every search ends with a free coverage row that says whether it was read to its end and, if not, why.

#### What you can do with it

- **Investors and analysts**: pull every off plan apartment for sale in a Dubai community with its payment plan, handover date and price per sqft, and turn on Market context to see each ad against the median of comparable ads and the gross rental yield.
- **Brokers and agencies**: read the new ads of your communities every morning (`postedWithinDays: 1` on a schedule), or the stock of one agency, agent or developer.
- **Lead lists with a lawful basis**: agent and agency directories with licences, languages, specialities, service areas and ad counts; agents' names, e-mails and phones as Bayut shows them.
- **Proptech, valuation and mortgage teams**: bulk rows with coordinates, building, community and Bayut's place ids, both area units on every row, and Bayut's own DLD building key on UAE ads.
- **Saudi market work**: REGA brokerage and marketing licence numbers, ad licence expiry, street names, discounts and monthly instalments, and a filter for ads in Vision 2030 project zones.

#### Four modes

| Mode | One row per | Markets |
|---|---|---|
| `listings` (default) | ad for sale or for rent, from a place, a search link, the whole market or an ad number | all eight |
| `agents` | agent from Bayut's agent directory, by place, agency, name words or number | UAE, Saudi Arabia, Egypt |
| `agencies` | agency, by place, name words or number | all eight |
| `projects` | off plan project, by place, developer or number | UAE, Saudi Arabia, Egypt |

A mode asked on a market that has no such directory gives a free `no_directory_in_market` row.

### Quick start

1. Open the **Input** tab. Keep **What to scrape** on **Listings** and pick the **Market** (the UAE by default).
2. Type one or more places in **Locations**, as Bayut names them: `Dubai Marina`, `Jumeirah Village Circle (JVC)`, `Downtown, Dubai`, `Riyadh, KSA`, an Arabic name such as `العليا`, or a Bayut location id (`5003`) or slug (`/dubai/dubai-marina`). Not sure of the name? Put it in **Place lookups** for a free list of Bayut's own suggestions with ids and slugs.
3. Or paste Bayut links into **Bayut links** (a search page, an ad, an agent, an agency or new projects) or ad numbers into **Ad numbers**.
4. Pick **For sale or for rent** and any filters: property types, price, bedrooms, bathrooms, area, furnishing, ready or off plan, posted within days, TruCheck verified, amenities and more.
5. Set **Maximum rows** and turn on what you need: **Listing details**, **Market context**, **Area insights**, **Title translations**.
6. Click **Start**. Download the rows as JSON, CSV or Excel, or read them through the Apify API.

Measured on the platform (test build, 2026-11-03, 256 MB): the prefill's 20 ads in about 3 seconds, 10,000 UAE ads for sale in 70 seconds.

### What data you get

One row per ad (`type: "listing"`), agent (`type: "agent"`), agency (`type: "agency"`) or project (`type: "project"`), plus free rows that tell you what happened:

- one coverage row per search (`type: "search"`, see below),
- free status rows (`type: "status"`) for everything that was not read: an input the run refused (`invalid_input`, only the start fee is charged), a place Bayut does not name exactly (`place_not_found`, with the nearest places), a name that matches several places (`place_ambiguous`, with each candidate's id, slug, path and ad count), an amenity name the site does not know (`amenity_not_known`, with near names), agent or agency names that do not each name exactly one agent or agency (`names_not_resolved`), ad, agent, agency or project numbers not on Bayut (`not_found`, by position), a request Bayut did not answer (`not_read`), a sort a site does not have (`sort_not_offered`), a market without that directory (`no_directory_in_market`), a market whose search refused the run (`market_closed`), entries of the input that could not be used (`entries_not_read`, by position), work the run did not reach (`not_reached`) and a stop at your maximum cost per run (`charge_limit_reached`),
- free place rows (`type: "place"`) for your place lookups,
- free area insight rows (`type: "insight"`) when Area insights is on,
- one free run summary (`type: "summary"`) with the rows, charges and requests of the run.

#### Listing rows: fields and fill rates

Fill rates below were measured on 10,000 UAE ads for sale (the whole UAE market in Bayut's own order, a platform run of the test build on 2026-11-03, when the agent's and the contact's personal fields were still left out by default; every other fill rate is unchanged). Rentals carry `rentFrequency` and `yearlyRentEquivalent` (100% of 30 Dubai Marina rentals in a platform run of the same day).

| Field | What it holds | Fill (N=10,000) |
|---|---|---|
| `id`, `url`, `title`, `titleAr` | Bayut's ad number, the ad link, the title as served and the Arabic title | 100% |
| `purpose`, `price`, `currency`, `priceOnRequest` | `for-sale` or `for-rent`; the price in the market's currency (AED, SAR, EGP, QAR, KWD, BHD, OMR or JOD), null when the ad hides it | 100% |
| `pricePerSqft`, `pricePerSqm` | the price over the area | 100% |
| `propertyType`, `propertyTypeSlug`, `propertyClass`, `categoryPath` | Apartment, Villa, Townhouse, Office and Bayut's other types; `residential` or `commercial` | 100% |
| `bedrooms`, `isStudio`, `bathrooms` | 0 bedrooms for a studio | 100%, 100%, 99.97% |
| `areaSqft`, `areaSqm` | built up area in both units | 100% |
| `plotAreaSqft`, `plotAreaSqm` | plot area (villas, townhouses, land) | 24.9% |
| `furnishing` | `furnished` or `unfurnished` | 86.1% |
| `completionStatus` | `ready` or `off-plan` | 100% |
| `completionDate`, `completionPercentage`, `offPlanSaleType` | handover date, percentage built, `new` or `resale` (off plan ads) | 48.2%, 28.2%, 32.2% |
| `location.city`, `location.community` | city and community | 100% |
| `location.subCommunity`, `location.building` | sub community and building | 68.0%, 54.6% |
| `location.path`, `location.tree` | the place path and each level's name, Arabic name, slug and Bayut id | 100% |
| `latitude`, `longitude` | the ad's position | 100% |
| `referenceNumber` | the agency's own reference | 100% |
| `amenities` | amenity names as Bayut lists them | 99.5% |
| `photoUrls`, `coverPhotoUrl`, `photoCount` | photo links (50 per row by default, `maxPhotos`) | 100% |
| `videoUrl`, `videoCount`, `panoramaCount` | video link and counts of videos and 360 tours | 3.7% (video link) |
| `floorPlanId`, `hasFloorPlan` | whether the ad has a floor plan | 23.2% |
| `verified`, `verificationStatus`, `verifiedAt` | TruCheck state (true or false on every row), status and date | 100%, 49.7%, 67.4% |
| `promotion` | Bayut's promotion tier (`superhot`, `premium`, `hot`) | 100% |
| `createdAt`, `updatedAt`, `reactivatedAt`, `daysOnMarket` | first posted, last updated, last reactivated, days since first posted | 100% |
| `paymentPlan` | down payment, pre handover, handover and post handover percentages | 43.5% |
| `project` | the off plan project and its developer | 47.5% |
| `dld.buildingKey`, `dld.hasSaleTransactions` | Bayut's DLD building key and whether the building has sale transactions (UAE) | 49.4%, 39.3% |
| `agency.id`, `agency.logoUrl`, `agency.name`, `agency.url` | the advertising agency | 100%, 100%, 99.0%, 99.0% |
| `agent.isTruBroker` | whether the ad's agent is a TruBroker (`agent` also carries the agent's name, id, profile link and photo) | 97.2% |
| `contact.bayutRoutingPhone`, `contact.bayutRoutingMobile` | Bayut's call routing numbers, which ring the agent who posted the ad | 70.4%, 16.1% |
| `contact.canCall`, `canWhatsapp`, `canEmail`, `canSms` | the contact methods the ad offers | 100% |
| `qualityFlags` | plausibility labels such as `price_on_request`, `no_area`, `rent_period_missing` (empty when none applies) | flags on 0 of 10,000 |

Every row also carries `market`, `privateAdvertiser`, `yearlyRentEquivalent` (rentals), `search` (the search that found it) and `scrapedAt`. The agent's name, id, link and photo and the contact's name, mobile, WhatsApp and direct phone are delivered on every row where Bayut shows them.

**Saudi rows** add a `saudi` block: `brokerageLicenceNumber` and `adLicenceExpiry` (REGA), `streetName` and `streetNameAr`, `originalPrice` and `discountPercent`, `monthlyInstalment`, `residenceType` and `vision2030Zone` (measured on 25 Riyadh rentals: licence 100%, street 96%). **Egyptian rows** add an `egypt` block: `ownership`, `downPayment`, `instalmentYears`, `monthlyInstalment`. Most ads in Qatar, Kuwait, Bahrain and Jordan come from private advertisers (20 of 20 Doha rentals measured); their rows say `privateAdvertiser: true` and carry the full place and coordinates as Bayut serves them.

**Listing details** (the paid add-on, Qatar, Kuwait, Bahrain and Oman): `details` with `description` (as served) and `descriptionText` (plain text), `amenityGroups` (each amenity with its value where Bayut gives one), `videos`, `panoramas` (360 tours), `floorPlans`, `exactPosition` and `approvedAt`; `detailsStatus` says `read`, `not_offered_in_market` (the other four markets, not charged), `ad_page_gone`, `not_read`, `not_read_allowance` or `not_read_run_stopped` (none of them charged). Measured on 60 Kuwaiti ads (a platform run of the test build, 2026-11-03): page read 60 of 60, description 100%, amenity groups 96.7%. All 60 were private advertisers' ads, whose videos, 360 tours and floor plans that build still left out, so those three lists were not measured; they are delivered now as Bayut serves them. A page read is charged as Listing details whatever its lists hold.

**Free options on listing rows**: `includeMarketContext` adds `marketContext` (the comparable group's scope, count, median price, median and quartile price per sqft, `priceVsMedianPercent`, and on a sale `medianYearlyRent` and `grossRentalYieldPercent`), read live from ads of the same market, purpose, type, bedroom count, community and rent period; a group of fewer than 5 priced ads gives no median. `includeAreaInsights` adds one insight row per community and price unit (sale price, or rent per period) of the ads the run delivered: count, median and quartile price and price per sqft, gross yield, off plan premium, verified and furnished shares, breakdowns by bedrooms and property type, top buildings; plus one HTML report (`AREA_INSIGHTS_REPORT` in the run's key value store). `titleLanguages` adds Bayut's own machine titles (UAE ads carry 14 languages, the other sites Arabic). `includeAgentDetails` adds the agent's e-mail, about text, languages, specialities, service areas and ad counts (UAE, Saudi Arabia, Egypt).

#### Agent, agency and project rows

Fill rates measured on platform runs of the test build (2026-11-03): 30 agents active in Dubai Marina, 10 Saudi agents (the agents' own personal fields measured on these), the UAE's 20 agencies with the most ads, and 15 off plan projects in Dubai.

| Row | Fields | Fill |
|---|---|---|
| Agent (`type: "agent"`, N=30, UAE) | `about`, `isTruBroker`, `languages`, `specialities`, `serviceAreas`, `adCounts` (total, for sale, for rent and by kind), `contactMethods`, `agency.name` | 100% |
| Agent | `agency.licences`, `agency.phone` | 90.0%, 80.0% |
| Agent, personal fields (N=10, Saudi Arabia) | `id`, `name`, `url`, `email`, `mobile`, `whatsapp` | 100% (`phone` 40%; Saudi agents carry no specialities) |
| Agency (`type: "agency"`, N=20, UAE) | `id`, `name`, `nameAr`, `url`, `logoUrl`, `city`, `agentCount`, `truBrokerAgentCount`, `adCounts`, `propertyTypes`, `serviceAreas`, `onBayutSince` | 100% |
| Agency | `mobile`, `licences` (authority and number), `phone` | 95.0%, 70.0%, 60.0% |
| Project (`type: "project"`, N=15, Dubai) | `id`, `title`, `description`, `descriptionText`, `developer`, `completionStatus`, `completionDate`, `listingsInProject`, `location`, `latitude` | 100% |
| Project (three runs of the same input, 2026-11-03 and 04, the 15 projects changing between them; `bedroomsRange` from the final build's run) | `paymentPlan`, `amenities`, `photoUrls`; `startingPrice`, `unitTypes`, `bedroomsRange`; `completionPercentage` | 87% to 100%; 87% to 93%; 20% to 47% |

Every agent row carries the agent's `id`, `name`, `url`, `photoUrl`, `email`, phones and Bayut's routing numbers where Bayut shows them, `personalDataHidden: false`, and a `rowKey` of the market and agent number.

#### The coverage row: was the search read to its end?

Every search ends with one free row (from the prefilled run on the platform, 2026-11-03):

```json
{
  "type": "search",
  "key": "s0ab5dba9833db08a",
  "label": "location 1",
  "market": "ae",
  "kind": "place",
  "place": { "id": "5003", "name": "Dubai Marina", "slug": "/dubai/dubai-marina", "path": "UAE > Dubai > Dubai Marina" },
  "sort": "default",
  "startPage": 1,
  "filters": {},
  "total": 10112,
  "estimatedTotal": null,
  "slicedTotal": null,
  "adsMet": 50,
  "delivered": 20,
  "repeats": 0,
  "skipped": {},
  "beyondCaps": 30,
  "withheldByChargeLimit": 0,
  "pagesRead": 1,
  "pagesFailed": 0,
  "counts": 1,
  "slices": 0,
  "trackingParametersLeftOut": 0,
  "complete": false,
  "stoppedBy": "max_items",
  "incompleteReason": null,
  "scrapedAt": "2026-11-03T21:53:05.118Z"
}
```

`total` is Bayut's exact count. Above about 10,000 Bayut gives only an estimate, so `total` is null and `estimatedTotal` holds it; a search the caps let run past Bayut's 50,000 row window is split into slices of at most 9,000 exactly counted ads, read one after another, and `slicedTotal` is their exact sum. `adsMet` counts the distinct ads read, `delivered` your rows, `skipped` the ads left out free by reason, `beyondCaps` the ads past your caps. `complete` is true only when the search was read to its last ad with no failed page and no stop and, for a sliced search, every ad the slices counted was met. Otherwise `stoppedBy` names the limit (`max_items`, `max_items_per_search` for the per search row or page cap, `charge_limit`, `work_allowance`) and `incompleteReason` says what was missed in plain words.

### How much does it cost to scrape Bayut?

You pay per row delivered (pay per event). Prices per 1,000 events:

| Event | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
| Listing (one ad row) | $0.88 | $0.79 | $0.74 | $0.66 |
| Listing details (add-on, Qatar, Kuwait, Bahrain, Oman, only when the ad page was read) | $0.50 | $0.45 | $0.40 | $0.35 |
| Agent (one agent row) | $0.88 | $0.79 | $0.74 | $0.66 |
| Agency (one agency row) | $0.88 | $0.79 | $0.74 | $0.66 |
| Project (one off plan project row) | $0.88 | $0.79 | $0.74 | $0.66 |

Each run also pays a one time Actor start of $0.008 on every plan, with no discount. Platinum and Diamond plans pay the Gold price. The Store pricing card shows these same prices per 1,000 events: "$0.88 / 1,000" on the Listing row means one listing costs 0.088 cents, and "$0.50 / 1,000" on the Listing details row means one ad's details cost 0.05 cents.

Worked examples:

- 1,000 ads at Gold: 1,000 listings (1,000 x $0.00066 = $0.66) plus the Actor start ($0.008): $0.668. On the Free plan the same run costs $0.88 + $0.008 = $0.888.
- 1,000 Kuwaiti ads with Listing details on, every page read: add $0.35 at Gold ($0.50 on the Free plan): $1.018 at Gold, $1.388 on the Free plan, start included.
- The prefilled run (20 ads in Dubai Marina): $0.0212 at Gold, $0.0256 on the Free plan, start included.
- Free: repeats (an ad two of your searches reach is charged once per run), ads outside your search or filters, numbers not on Bayut, details not read or not offered in the market, Market context, Area insights, title translations, agent details, and every coverage, status, place, insight and summary row. A run with invalid input charges only the Actor start.
- Set a maximum cost per run in the Apify Console: the run stops at the first row it cannot pay, delivers no row unpaid and says so on a free `charge_limit_reached` row.

### Input

| Setting | What it does |
|---|---|
| `mode` | `listings` (default), `agents`, `agencies` or `projects`. A setting of another mode refuses the run (free). |
| `market` | `ae` (default), `sa`, `eg`, `qa`, `kw`, `bh`, `om` or `jo`. A location or number can name its own market with a prefix (`sa: Riyadh`, `eg:12345678`); links name their own site. |
| `locations` | Places as Bayut names them, in English or Arabic, a place with its parents (`Downtown, Dubai`, `Riyadh, KSA`), or a Bayut location id or slug. Each place is one search, searched only when exactly one place IS the text. |
| `wholeMarket` | One search of the whole market with your filters. |
| `startUrls` | Links from any of the eight sites: search pages (their place, type, bedrooms, price, area, bathrooms, rent period, keywords, agent, agency and developer numbers, video, 360 tour, floor plan, sort and page are read, and on bayut.com completion status and sale type of sale searches, furnishing of rentals and amenities), ads, agents, agencies, new projects. A link with a parameter this Actor does not read is refused, free, so a link never reads wider than its page. |
| `listingIds` | Ad numbers (the number in `/property/details-<number>.html`) or ad links, read 300 to a call. |
| `agentIds`, `agencyIds`, `developerIds`, `projectIds` | Numbers or links. In their own mode, the profiles; in listings mode, only the ads of these agents, agencies or developers inside your searches (or all their ads when there is no other search). |
| `purpose` | `for-sale`, `for-rent` or `any`. |
| `propertyTypes`, `minPrice`, `maxPrice`, `bedrooms`, `bathrooms` | Bayut's own types (each site has its own list); price in the market's currency, a rent per its period; bedrooms `studio`, `1` ... `7+`; bathrooms `1` ... `6+`. |
| `minArea`, `maxArea`, `minPlotArea`, `maxPlotArea`, `areaUnit` | Areas in `sqft` (default) or `sqm`; rows carry both units. |
| `furnishing`, `completionStatus`, `offPlanSaleType`, `rentFrequency` | Furnished or not; ready or off plan; new from the developer or resale; yearly, monthly, weekly or daily rent. |
| `postedWithinDays` | Ads first posted in the last N days, counted from the run's start. |
| `verifiedOnly`, `truBrokerOnly`, `hasVideo`, `has360Tour`, `hasFloorPlan`, `excludePriceOnRequest` | TruCheck verified ads, TruBroker agents, ads with a video, 360 tour or floor plan, no price on request ads. |
| `amenities` | Ads with every one of these amenities, as Bayut names them (`swimming pool`, `covered parking`). |
| `agentNames`, `agencyNames` | The ads of agents or agencies by name, used only when exactly one agent or agency of the market has it. |
| `regaLicensedOnly`, `vision2030ZonesOnly` | Saudi Arabia: ads with a REGA licence number; ads whose place or title names a Vision 2030 project (NEOM, Red Sea, Diriyah, ROSHN, Qiddiya, King Salman Park). |
| `latitude`, `longitude`, `radiusKm` | Ads within a radius of a point (0.1 to 100 km). |
| `keywords` | Words matched by Bayut's own search in the fields each site searches: ad titles and reference numbers, and on some sites the agency's name and the ad's own keywords; agent names, agency names or project titles in the other modes. Bayut decides the match. |
| `sort` | `default`, `newest`, `oldest`, `price_low`, `price_high`, `verified_first`, `popular` (not the UAE), `trubroker_first` (UAE), `discounted_first` (Saudi Arabia). A sort a site does not have is a free row. |
| `agentLanguages`, `agentSpecialities`, `hasEmail`, `hasPhone`, `hasWhatsapp`, `agencyNameContains` | Agents mode filters. |
| `agenciesSort`, `projectsSort` | `most_listings` or `most_trubrokers` (UAE) for agencies (an ordered agency search reads at most 2,000); `handover_soonest` or `most_listings` for projects. |
| `maxItems`, `maxItemsPerSearch`, `maxPagesPerSearch` | Paid rows of the run (default 1,000), per search, and Bayut result pages per search (24 ads a page on bayut.com, 25 on the other sites). |
| `includeListingDetails` | The paid add-on (Qatar, Kuwait, Bahrain, Oman). |
| `includeMarketContext`, `includeAreaInsights`, `titleLanguages`, `includeAgentDetails` | Free options (see above). |
| `includeRaw` | Adds Bayut's own record of each row. |
| `includePersonalData` | No effect: all public data is always delivered; kept so saved inputs keep working (see Personal data). |
| `outputFields`, `omitEmptyFields`, `maxPhotos` | Keep only these top level fields (such as `price`, `bedrooms` or `location`; a name no row has refuses the run; `type`, `id` and `market` always stay), leave out empty fields, photo links per ad or project (default 50; listings and projects modes). |
| `placeLookups` | Free rows of Bayut's own place suggestions, with ids and slugs to use in `locations`. |
| `proxyConfiguration` | Your own proxy links. By default the run reads Bayut from its own address, one request at a time, and falls back to Apify's datacenter proxy; with `useApifyProxy` set to false it stays on its own address with no fallback. Proxy groups and countries are refused. |

Search settings (filters, purpose, sorts, per search caps) apply to searches: places, search links and the whole market. Rows looked up by number come as Bayut shows them, and a run that gives search settings without any search is refused, charging only the Actor start. A search link's own filters stay unless you set the same filter; `any` clears it.

#### Input examples

The prefill (20 ads in Dubai Marina, for sale and for rent):

```json
{
  "mode": "listings",
  "market": "ae",
  "locations": ["Dubai Marina"],
  "maxItems": 20
}
```

Off plan apartments for sale in Dubai (location id 5002), 1 or 2 bedrooms up to AED 2,000,000, each against its comparable ads:

```json
{
  "locations": ["5002"],
  "purpose": "for-sale",
  "completionStatus": "off-plan",
  "propertyTypes": ["apartments"],
  "bedrooms": ["1", "2"],
  "maxPrice": 2000000,
  "includeMarketContext": true,
  "maxItems": 500
}
```

Three bedroom apartments for rent in Riyadh with a REGA licence:

```json
{
  "market": "sa",
  "locations": ["Riyadh, KSA"],
  "purpose": "for-rent",
  "propertyTypes": ["apartments"],
  "bedrooms": ["3"],
  "regaLicensedOnly": true,
  "maxItems": 200
}
```

A pasted search link, and a whole sister site with Listing details:

```json
{
  "startUrls": ["https://www.bayut.com/to-rent/2-bedroom-apartments/dubai/dubai-marina/?price_max=200000"],
  "maxItems": 300
}
```

```json
{
  "market": "kw",
  "wholeMarket": true,
  "includeListingDetails": true,
  "maxItems": 1000
}
```

Agents active in Dubai Marina, agencies with the most ads, off plan projects in Dubai:

```json
{ "mode": "agents", "locations": ["Dubai Marina"], "truBrokerOnly": true, "maxItems": 100 }
```

```json
{ "mode": "agencies", "wholeMarket": true, "agenciesSort": "most_listings", "maxItems": 100 }
```

```json
{ "mode": "projects", "locations": ["Dubai"], "completionStatus": "off-plan", "projectsSort": "handover_soonest", "maxItems": 100 }
```

#### Personal data

Every field Bayut shows publicly is delivered on every run: the agent's name, id, profile link, photo, e-mail and phones, the ad's contact name, mobile, WhatsApp, direct phone and Bayut's routing numbers, the agency's and developer's names, and a private advertiser's full place, coordinates, reference number, video link and Listing details media. `includePersonalData` has no effect and is kept so saved inputs keep working. Free text (titles, descriptions, an agent's about text) comes as Bayut serves it. You are responsible for using personal data lawfully, GDPR and the UAE, Saudi and other local data protection laws included.

### Output example

A listing row from the prefilled run on the platform (2026-11-06, shortened):

```json
{
  "type": "listing",
  "id": "17089918",
  "market": "ae",
  "url": "https://www.bayut.com/property/details-17089918.html",
  "title": "Marina Views | High Floor | Fully Furnished",
  "titleAr": "شقة في باي سنترال غرب،باي سنترال،دبي مارينا 1 غرفة 90000 درهم - 17089918",
  "purpose": "for-rent",
  "price": 90000,
  "priceOnRequest": false,
  "currency": "AED",
  "rentFrequency": "yearly",
  "pricePerSqft": 141.07,
  "pricePerSqm": 1518.42,
  "propertyType": "Apartment",
  "propertyClass": "residential",
  "bedrooms": 1,
  "isStudio": false,
  "bathrooms": 2,
  "areaSqm": 59.27,
  "areaSqft": 638,
  "furnishing": "unfurnished",
  "completionStatus": "ready",
  "location": {
    "country": "UAE",
    "city": "Dubai",
    "community": "Dubai Marina",
    "subCommunity": "Bay Central",
    "building": "Bay Central West",
    "path": "Dubai > Dubai Marina > Bay Central > Bay Central West"
  },
  "latitude": 25.078416,
  "longitude": 55.137473,
  "referenceNumber": "f664d736-9ad1-4fb6-b072-6b1fae1f9192",
  "amenities": ["basement", "basement parking", "equipped kitchen", "furnished", "high floor", "marina view", "wardrobe", "waterfront"],
  "photoCount": 12,
  "coverPhotoUrl": "https://images.bayut.com/thumbnails/877697696-800x600.jpeg",
  "floorPlanId": null,
  "hasFloorPlan": false,
  "verified": true,
  "verifiedAt": "2026-11-06T10:16:42.000Z",
  "promotion": "superhot",
  "createdAt": "2026-11-04T09:46:38.000Z",
  "reactivatedAt": "2026-11-04T09:46:38.000Z",
  "daysOnMarket": 2,
  "yearlyRentEquivalent": 90000,
  "dld": { "buildingKey": "tabu+ejari-5537560", "hasSaleTransactions": true, "hasRentTransactions": true },
  "agency": { "id": "101139", "name": "Huspy Dubai", "url": "https://www.bayut.com/companies/huspy-dubai-101139/", "licences": [] },
  "privateAdvertiser": false,
  "agent": { "id": "2713333", "name": "Emma Solan", "url": "https://www.bayut.com/brokers/emma-solan-2713333.html", "isTruBroker": true, "photoUrl": "https://images.bayut.com/thumbnails/829343035-240x180.jpeg" },
  "contact": { "name": "Emma Solan", "mobile": "+971585440520", "whatsapp": "971545695868", "phone": "+97144905900", "bayutRoutingPhone": "+97144483904", "canCall": true, "canWhatsapp": true },
  "search": { "key": "s0ab5dba9833db08a", "label": "location 1" },
  "qualityFlags": [],
  "scrapedAt": "2026-11-06T14:29:32.310Z"
}
```

An agency row and an off plan project row (built from records saved from Bayut on 2026-11-03, shortened):

```json
{
  "type": "agency",
  "id": "6168",
  "market": "ae",
  "name": "Driven Properties",
  "nameAr": "درفن للعقارات",
  "url": "https://www.bayut.com/companies/driven-properties-6168/",
  "city": "Dubai",
  "licences": [{ "authority": "RERA", "number": "11917" }],
  "phone": "+97142454898",
  "agentCount": 461,
  "truBrokerAgentCount": 387,
  "adCounts": { "total": 6710, "forSale": 3414, "forRent": 3296 },
  "onBayutSince": "2014-08-27T01:08:33.000Z"
}
```

```json
{
  "type": "project",
  "id": "2603",
  "market": "ae",
  "url": "https://www.bayut.com/new-projects/details-2603.html",
  "title": "Binghatti Aquarise",
  "completionStatus": "off-plan",
  "completionDate": "2027-12-30T20:00:00.000Z",
  "completionPercentage": 21,
  "startingPrice": 999000,
  "currency": "AED",
  "unitTypes": ["Apartment"],
  "location": { "path": "Dubai > Business Bay > Binghatti Aquarise" },
  "developer": { "id": "85", "name": "Binghatti", "slug": "binghatti" },
  "paymentPlan": { "downPaymentPercent": 20, "preHandoverPercent": 20, "handoverPercent": 60 }
}
```

A free status row for an ad number no longer on Bayut (from a platform run, 2026-11-03; not charged):

```json
{
  "type": "status",
  "scope": "lookup",
  "key": "listings-not-found",
  "status": "not_found",
  "count": 1,
  "positions": ["listing id 4"],
  "message": "1 ad number(s) are not on Bayut today (sold, let or removed); they were not charged.",
  "scrapedAt": "2026-11-03T21:56:14.290Z"
}
```

### What this Actor does NOT do

- No permit numbers: the Trakheesi, RERA or DLD permit number is not in the search data Bayut serves for its ads; Bayut shows it on the UAE ad page only, which this Actor does not read.
- Descriptions of ads only on the four open sites (Qatar, Kuwait, Bahrain, Oman) with Listing details: the UAE and Egyptian ad pages sit behind Bayut's bot wall and the Saudi and Jordanian sites ask robots not to read them. Rows of those markets say `detailsStatus: "not_offered_in_market"` and are not charged for it. Project rows carry their description on every market that has projects.
- No agents directory and no new projects outside the UAE, Saudi Arabia and Egypt: Bayut's other sites have none, and such a search is a free `no_directory_in_market` row. Agencies are read on all eight sites.
- No monitoring and no memory between runs: no "only new since the last run", no price history, no alerts. Run it on a schedule with `postedWithinDays` and compare runs yourself. An ad found again by a later run is delivered and charged again. A restart of the same run resumes from its own dataset and never charges a row twice (the platform charges its own start fee again when it resurrects a run).
- No owner details, unit numbers or DLD transactions: those are in the Dubai Land Department's register, not on Bayut. UAE rows carry the DLD building key Bayut stores.
- No other portals: Bayut's eight sites only.
- No browser, no captcha solving and no login: when a market's search refuses the run, its searches are free `market_closed` rows.
- No guessed values: an empty field means Bayut's record did not carry it. `pricePerSqft`, `pricePerSqm`, `yearlyRentEquivalent` and `daysOnMarket` are computed from the record; `qualityFlags` and `saudi.vision2030Zone` are labels from one read, never corrections. Market context and area insights are computed from asking prices and rents read in the run, not from transactions.
- No more than 2,000 agencies in one ordered agency search (`agenciesSort`, Bayut's own limit); the default order reads every agency.
- No endless unpaid work: reads that earn nothing are covered by an allowance that grows with the charges the run earns. When an optional read (details, agent details, market context) has no room left, rows come without it and are not charged for it; when the run's allowance runs out, the run stops and its coverage rows say `work_allowance`.

### FAQ

#### Does Bayut have an API?

Bayut offers no public API for its listings: its Leads API sends an agency its own leads. This Actor works as one: start it with a JSON input through the Apify API and read the ads, agents, agencies or projects as JSON, CSV or Excel. It needs no Bayut account, login, cookies or API key from you.

#### How do I scrape Bayut without getting blocked?

Give the Actor a place, a Bayut link or ad numbers. It reads Bayut's own search data without a browser, cookies or a login, from the run's own address with Apify's datacenter proxy as a fallback, and it paces itself. If a market's search refuses the run, its searches become free `market_closed` rows and nothing is charged for them.

#### Can I get the permit number or the owner's details of a Bayut listing?

No. The permit number is not in the search data Bayut serves for its ads, and this Actor delivers no owner details or unit numbers, which are kept in the Dubai Land Department's register. UAE rows carry Bayut's DLD building key (`dld.buildingKey`) and whether the building has sale or rent transactions.

#### Can I get Bayut transaction prices?

No. Bayut's transaction pages show Dubai Land Department records; this Actor reads ads, so prices are asking prices and rents. For a price check, turn on Market context: each ad gets the median asking price per sqft of comparable ads read live and, on a sale, a gross rental yield from the same group's yearly rents.

#### Why does this Actor run with limited permissions?

It needs nothing beyond its own run storage: the dataset it writes and the run's own key value store (a start marker and, with Area insights on, the HTML report). So it runs with Apify's limited permissions and cannot read or change anything else in your account. It keeps no memory between runs. It runs at 256 MB; for a whole large market with raw records and area insights (hundreds of thousands of rows), give the run 512 MB in its run options.

### Use it through the API

```bash
curl -X POST "https://api.apify.com/v2/acts/automation_craft~bayut-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"locations": ["Dubai Marina"], "purpose": "for-rent", "maxItems": 100}'
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_TOKEN>' });
const run = await client.actor('automation_craft/bayut-scraper').call({ market: 'sa', locations: ['Riyadh, KSA'], purpose: 'for-sale', maxItems: 200 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((x) => x.type === 'listing').length);
```

```python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_TOKEN>")
run = client.actor("automation_craft/bayut-scraper").call(run_input={"mode": "agencies", "wholeMarket": True, "maxItems": 50})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("type"), item.get("name"), (item.get("adCounts") or {}).get("total"))
```

### Changelog

- 0.1 (2026-11-06): all public data is always delivered: agents' names and numbers, the ad's contact, Bayut's routing numbers and a private advertiser's full place; `includePersonalData` has no effect (kept so saved inputs keep working); agent details and the raw record no longer need it.
- 0.1 (2026-11): first version: ads of all eight Bayut sites by place, link, number or whole market, read past the 50,000 window in exact slices; agents, agencies and off plan projects; Listing details on Qatar, Kuwait, Bahrain and Oman; market context and area insights; coverage, status and summary rows.

### More data tools by Automation Craft

- [Idealista Scraper: Spain, Italy, Portugal, France](https://apify.com/automation_craft/idealista-scraper)
- [Immobiliare.it Scraper: Italy Homes and Agencies](https://apify.com/automation_craft/immobiliare-scraper)
- [Funda Scraper: Dutch Homes, Rentals and Makelaars](https://apify.com/automation_craft/funda-scraper)
- [realestate.com.au Scraper: Buy, Rent, Sold Prices](https://apify.com/automation_craft/realestate-com-au-scraper)
- [ImmoScout24 Scraper: Rentals, Sales and Agencies](https://apify.com/automation_craft/immoscout24-scraper)
- [Zillow Scraper: Homes for Sale, Rent and Sold](https://apify.com/automation_craft/zillow-scraper)
- [Realtor.com Scraper: Homes for Sale, Rent & Sold](https://apify.com/automation_craft/realtor-com-scraper)
- [Redfin Scraper: Homes for Sale, Sold Comps, Agents](https://apify.com/automation_craft/redfin-scraper)
- [Zillow Agents Scraper: Agent Leads, Sales, Reviews](https://apify.com/automation_craft/zillow-agents-scraper)

# Changelog

This Actor's version history is a separate document: https://apify.com/automation_craft/bayut-scraper/changelog.md

# Actor input Schema

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

Listings: one row per Bayut ad. Agents: one row per agent from Bayut's agent directory. Agencies: one row per agency. New projects: one row per off plan project. Settings of another mode are refused (free).

## `market` (type: `string`):

The Bayut site that "locations", the numbers and "wholeMarket" are read on. A location or ad number can name its own market with a prefix, for example "sa: Riyadh" or "eg:12345678". Links name their own site.

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

Places as Bayut names them ("Dubai Marina", "Jumeirah Village Circle (JVC)", "Riyadh"), a place with its city ("Downtown, Dubai") or a Bayut location id or slug ("5003", "/dubai/dubai-marina"). Each place is one search; a name that matches several places is a free row listing them.

## `wholeMarket` (type: `boolean`):

One search of the whole market with the filters below (for example every TruCheck verified villa for sale in the UAE).

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

Links from any Bayut site: a search page (its place, type, bedrooms, price, area, bathrooms, sort and page are read), an ad (/property/details-<number>.html), an agent (/brokers/...), an agency (/companies/...) or new projects (/new-projects/...). A link of another mode is a free row. Links with parameters this Actor does not read are refused, free, so a link never reads wider than its page.

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

Bayut ad numbers (the number in /property/details-<number>.html) or ad links. Read 300 to a call; an ad no longer on Bayut is a free row. Search filters do not apply to ads looked up by number.

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

Listings: ads for sale or for rent. Agents and agencies: those with ads of that purpose. Left empty, a search link keeps its own; "Both" clears it. Applies to searches only; not used by the projects mode.

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

Words matched by Bayut's own search, in the fields each site searches: ad titles and reference numbers, and on some sites the agency's name and the ad's own keywords (listings); agent names (agents); agency names (agencies); project titles (projects). Bayut decides the match.

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

Any of these types (Bayut's own; residential and commercial are the two families). Each site has its own list (snapshot 2026-11-03); a type a site does not have refuses the run, free.

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

In the market's own currency (AED, SAR, EGP, QAR, KWD, BHD, OMR or JOD); a rent per its rent period.

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

In the market's own currency.

## `bedrooms` (type: `array`):

Any of these counts: "studio", "1", "2", ... and "7+" for seven or more.

## `bathrooms` (type: `array`):

Any of these counts: "1", "2", ... and "6+" for six or more.

## `minArea` (type: `number`):

In "areaUnit" (square feet by default).

## `maxArea` (type: `number`):

In "areaUnit".

## `areaUnit` (type: `string`):

Rows carry both units whatever this says.

## `minPlotArea` (type: `number`):

In "areaUnit".

## `maxPlotArea` (type: `number`):

In "areaUnit".

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

Furnished or unfurnished.

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

Listings and new projects: ready (completed) or off plan (under construction).

## `offPlanSaleType` (type: `string`):

Off plan ads sold new by the developer or resold.

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

Rentals only.

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

Ads first posted in the last N days, counted from the run's start.

## `agentIds` (type: `array`):

Listings mode: only the ads of these agents, inside the run's searches. Agents mode: these agents' profiles. A Bayut agent number (a UUID on the Saudi and Egyptian sites), "sa:<number>" for another market, or an agent link.

## `agencyIds` (type: `array`):

Listings mode: only the ads of these agencies, inside the run's searches. Agents mode: only the agents of these agencies (all of them when no other search is given). Agencies mode: these agencies' profiles. A Bayut agency number, "sa:<number>" or an agency link.

## `developerIds` (type: `array`):

Listings mode: only the off plan ads of these developers, inside the run's searches. Projects mode: only these developers' projects (all of them when no other search is given). A Bayut developer number.

## `verifiedOnly` (type: `boolean`):

Ads Bayut verified (TruCheck).

## `truBrokerOnly` (type: `boolean`):

Ads of TruBroker agents (listings) or TruBroker agents (agents mode).

## `hasVideo` (type: `boolean`):

Ads with a video.

## `has360Tour` (type: `boolean`):

Ads with a 360 degree tour.

## `hasFloorPlan` (type: `boolean`):

Ads with a floor plan.

## `amenities` (type: `array`):

Ads carrying every one of these amenities, as Bayut names them ("swimming pool", "covered parking", "maids room").

## `excludePriceOnRequest` (type: `boolean`):

Leave out ads that hide their price.

## `vision2030ZonesOnly` (type: `boolean`):

Saudi ads whose own place or title names a Vision 2030 project (NEOM, Red Sea, Diriyah, ROSHN, Qiddiya, King Salman Park); every Saudi row carries the zone it names in saudi.vision2030Zone.

## `agentNames` (type: `array`):

The ads of these agents, by their name as Bayut shows it. A name is used only when exactly one agent of the market has it; otherwise that market's searches are refused with a free row (give agent numbers instead). UAE, Saudi Arabia, Egypt.

## `agencyNames` (type: `array`):

The ads of these agencies, by their name as Bayut shows it. A name is used only when exactly one agency of the market has it; otherwise that market's searches are refused with a free row.

## `regaLicensedOnly` (type: `boolean`):

Saudi ads that carry a REGA brokerage and marketing licence number.

## `latitude` (type: `number`):

With "longitude" and "radiusKm": ads within the radius (measured on each ad's own position).

## `longitude` (type: `number`):

With "latitude" and "radiusKm".

## `radiusKm` (type: `number`):

With "latitude" and "longitude".

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

The order ads are read in. A search past the 50,000 ads one Bayut query reads is read in slices that keep a date or price order; Bayut's own order is kept within each date slice. A sort a site does not have refuses the run.

## `agentLanguages` (type: `array`):

Agents speaking any of these languages (two letter codes: "en", "ar", "hi", "ru").

## `agentSpecialities` (type: `array`):

Agents with any of these specialities.

## `hasEmail` (type: `boolean`):

Agents whose profile carries an e-mail address.

## `hasPhone` (type: `boolean`):

Agents whose profile carries a phone or mobile number.

## `agencyNameContains` (type: `string`):

Agents whose agency name contains this text (case aside).

## `hasWhatsapp` (type: `boolean`):

Agents whose profile carries a WhatsApp number.

## `agenciesSort` (type: `string`):

An ordered agency search reads at most 2,000 agencies; the default order reads every agency.

## `projectIds` (type: `array`):

Bayut new project numbers or links (/new-projects/details-<number>.html).

## `projectsSort` (type: `string`):

The order projects are read in.

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

Paid rows for the whole run (default 1,000). Status, coverage and summary rows are free and not counted.

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

Paid rows per search (place, link or the whole market).

## `maxPagesPerSearch` (type: `integer`):

Listings mode: at most this many of Bayut's own result pages per search (24 ads a page on bayut.com, 25 on the other sites).

## `includeListingDetails` (type: `boolean`):

A paid add-on: reads each ad's own page for its full description (as served and as plain text), amenity groups, videos, 360 tours and floor plans. Offered where the ad page is open to read: Qatar, Kuwait, Bahrain and Oman. Charged per ad whose page was read; rows in other markets say so and are not charged for it. It can be left off a row when its allowance is spent.

## `includeMarketContext` (type: `boolean`):

Each ad gets its comparable ads' figures read live: count, median price, price per sq ft median and quartiles, the ad against that median, and for a sale the gross rental yield from the same group's yearly rents.

## `includeAreaInsights` (type: `boolean`):

At the end, one free row per community and price period (sale, or rent per year, month, week or day) of the ads delivered: count, median price and price per sq ft with quartiles, gross rental yield, the off plan premium, breakdowns by bedrooms and by property type, and the busiest buildings; plus an HTML report in the key value store.

## `includeAgentDetails` (type: `boolean`):

Each ad gets its agent's e-mail, about text, languages, specialities, service areas and ad counts from Bayut's agent directory (UAE, Saudi Arabia, Egypt).

## `includePersonalData` (type: `boolean`):

All public data is always delivered, and this setting has no effect (kept so saved inputs keep working).

## `titleLanguages` (type: `array`):

Bayut's own machine titles in these languages (UAE ads carry 14; the other sites Arabic).

## `maxPhotos` (type: `integer`):

Listings and projects modes: photo links per ad or project (default 50).

## `includeRaw` (type: `boolean`):

Adds Bayut's own record of each row, as Bayut serves it.

## `omitEmptyFields` (type: `boolean`):

Leave out fields that are null or empty on a row (type, id and market always stay).

## `outputFields` (type: `array`):

Only these top level fields (such as "price", "bedrooms" or "location"); type, id and market are always kept.

## `placeLookups` (type: `array`):

Free rows of Bayut's own place suggestions for these texts, with ids and slugs to use in "locations".

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

Optional: your own proxy links. By default the Actor reads Bayut from the run's own address and falls back to Apify's datacenter proxy; with Apify Proxy switched off (useApifyProxy false) it stays on its own address with no fallback. Proxy groups and countries are refused.

## Actor input object example

```json
{
  "mode": "listings",
  "market": "ae",
  "locations": [
    "Dubai Marina"
  ],
  "maxItems": 20,
  "includePersonalData": false
}
```

# Actor output Schema

## `items` (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 = {
    "mode": "listings",
    "market": "ae",
    "locations": [
        "Dubai Marina"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation_craft/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 = {
    "mode": "listings",
    "market": "ae",
    "locations": ["Dubai Marina"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("automation_craft/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 '{
  "mode": "listings",
  "market": "ae",
  "locations": [
    "Dubai Marina"
  ],
  "maxItems": 20
}' |
apify call automation_craft/bayut-scraper --silent --output-dataset

```

## MCP server setup

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