If you are building a Dubai PropTech app, an Automated Valuation Model (AVM), or a yield-screening pipeline in Python, one of your first searches is probably bayut api.
Here is the short engineering reality: Bayut does not offer a public, self-serve REST API for querying market listings.
Official XML and CRM feeds exist for licensed UAE brokerages, and those integrations are designed to push an agency's own inventory into the portal rather than export market-wide search datasets. For independent data engineers and automation builders, UAE property data lives in three disconnected places:
- Portal XML/CRM Partner Feeds: Restricted to registered brokerages managing their own active stock.
- Dubai Land Department (DLD) Open Data: Official registered sale transactions, which tell you what units actually closed for, but contain zero active asking prices, current availability, or listing broker contacts.
- Live Consumer Portal Pages: Active asking prices, floor areas, bedroom counts, and verification badges, which sit behind bot protection and contain noisy broker duplicates.
Most tutorials stop after printing a title and an asking price from a single HTML card. In Dubai, that kind of dataset breaks downstream analytics immediately. Asking prices routinely sit 10% to 25% above closed transactions, identical apartments appear three times under three competing agencies, and gross yield headlines ignore mandatory closing fees and building service charges.
This post walks through the exact data-engineering rules and Python pipeline needed to turn messy Dubai listing payloads into an analysis-ready dataset joined against registered DLD transactions.
Engineering Problem 1: Joining Asking Prices Against Official 90-Day DLD Sold Medians
Raw asking price per square foot is a weak valuation signal in Dubai. Two adjacent towers in Dubai Marina or Jumeirah Village Circle (JVC) can trade at completely different prices per square foot depending on developer quality, chiller setup, and short-term rental permissions.
To measure whether an active listing is actually discounted or overpriced, you have to normalize asking price per square foot against recent registered sales from the Dubai Land Department (DLD).
Rules for a clean DLD benchmark join
When building our own UAE property pipeline, four filtering rules prevented skewed medians:
- Ready secondary sales only: Exclude rentals and off-plan developer launches from the sold benchmark baseline. Off-plan payment plans inflate headline ticket prices relative to ready cash sales, and rental rows belong in a separate yield lookup.
- Strip square-foot outliers before taking medians: Data-entry typos in source registries create extreme
AED/sqftvalues. Filter out transactions below150 AED/sqftor above8,000 AED/sqftbefore computing percentiles. - Enforce a minimum sample floor (
n >= 3) over a 90-day window: A single unusual penthouse transaction should not become the benchmark for an entire tower. Require at least3registered ready sales within the past90days at thebuildinglevel. - Use a deterministic two-step fallback (
building->community->null): If a specific tower has fewer than3ready sales in the last90days, fall back to the broadercommunitymedian (dldBenchmarkBasis = "community"). If the community also falls under3transactions, leave the benchmarknullinstead of inventing an estimate.
Once you have a valid dldMedianSoldPricePerSqftAed, the spread percentage uses a consistent sign convention:
from statistics import median from typing import Optional def compute_dld_benchmark( asking_price_aed: float, area_sqft: float, building_sales_per_sqft: list[float], community_sales_per_sqft: list[float], listing_type: str = "buy", completion_status: str = "ready", ) -> dict[str, Optional[float | int | str]]: """Compare an active Dubai sale listing against 90-day DLD sold medians.""" if listing_type != "buy" or completion_status != "ready": return { "dldMedianSoldPriceAed": None, "dldMedianSoldPricePerSqftAed": None, "vsDldSoldMedianPercent": None, "dldSampleTransactionsCount": 0, "dldBenchmarkBasis": None, } if not asking_price_aed or not area_sqft or area_sqft <= 0: return { "dldMedianSoldPriceAed": None, "dldMedianSoldPricePerSqftAed": None, "vsDldSoldMedianPercent": None, "dldSampleTransactionsCount": 0, "dldBenchmarkBasis": None, } clean_building = [p for p in building_sales_per_sqft if 150 <= p <= 8000] clean_community = [p for p in community_sales_per_sqft if 150 <= p <= 8000] basis = None sample = [] if len(clean_building) >= 3: basis = "building" sample = clean_building elif len(clean_community) >= 3: basis = "community" sample = clean_community if basis is None: return { "dldMedianSoldPriceAed": None, "dldMedianSoldPricePerSqftAed": None, "vsDldSoldMedianPercent": None, "dldSampleTransactionsCount": 0, "dldBenchmarkBasis": None, } ask_per_sqft = round(asking_price_aed / area_sqft, 2) sold_median_sqft = round(median(sample), 2) implied_sold_price = round(sold_median_sqft * area_sqft) spread_pct = round(((ask_per_sqft / sold_median_sqft) - 1) * 100, 2) return { "dldMedianSoldPriceAed": implied_sold_price, "dldMedianSoldPricePerSqftAed": sold_median_sqft, "vsDldSoldMedianPercent": spread_pct, "dldSampleTransactionsCount": len(sample), "dldBenchmarkBasis": basis, } With this convention, a negative vsDldSoldMedianPercent (such as -6.67) means the seller is asking 6.67% below registered 90-day DLD transactions per square foot. A positive value means the asking price sits above recent closed sales.
Engineering Problem 2: Four Dubai Listing Data Traps That Break ETL Pipelines
Even after solving the DLD join, four portal-specific quirks will corrupt downstream spreadsheets, alerts, or outreach workflows if you ingest raw records blindly.
Trap A: Multi-broker duplicate listings and stale stock
In Dubai's secondary market, a single landlord frequently gives non-exclusive mandates to multiple brokerages. The exact same 1-bedroom unit in Belgravia 3 might appear under three agencies with slightly different titles, cropped photos, and asking prices varying by 50,000 AED.
If you feed raw rows into an alert bot or a training dataset, your median calculations double-count popular towers and your alerts fire on ghosts. Two practical guardrails clean this up:
- Prioritize verified flags (
isVerified/ TruCheck™ andisTruBroker) when deduplicating within the same tower. - Group candidate duplicates by normalized
(community, towerOrBuilding, bedrooms, round(areaSqft / 15))and keep either the lowest asking price or the most recently verified listing per group.
Trap B: Agency call-centre switchboards masquerading as direct agent WhatsApp links
If your automation pipeline extracts agent contact fields (agent1Phone, agent1Whatsapp) for B2B co-broking or sourcing alerts, you will run into shared reception switchboards. Large Dubai agencies often assign a single central call-centre number across dozens of agents. Messaging that number sends automated outreach into a generic queue instead of reaching the listing broker.
A simple frequency check across an agency's listings solves this reliably: if a normalized phone number repeats on >= 80% of listings for the same agencyName (given a meaningful agency sample), treat it as a shared switchboard and null out the direct WhatsApp field.
from collections import Counter, defaultdict def strip_agency_switchboards( rows: list[dict], threshold: float = 0.80, min_agency_listings: int = 5, ) -> list[dict]: """Null out agent1Whatsapp when a number repeats across >= 80% of an agency's stock.""" agency_counts = Counter() agency_phone_counts = defaultdict(Counter) for row in rows: agency = (row.get("agencyName") or "").strip().lower() wa = (row.get("agent1Whatsapp") or "").strip() if agency: agency_counts[agency] += 1 if wa: agency_phone_counts[agency][wa] += 1 switchboards = set() for agency, total in agency_counts.items(): if total < min_agency_listings: continue for wa, hits in agency_phone_counts[agency].items(): if (hits / total) >= threshold: switchboards.add((agency, wa)) cleaned = [] for row in rows: copy = dict(row) agency = (copy.get("agencyName") or "").strip().lower() wa = (copy.get("agent1Whatsapp") or "").strip() if (agency, wa) in switchboards: copy["agent1Whatsapp"] = None cleaned.append(copy) return cleaned Trap C: Gross yield illusions vs. actual Dubai closing fees and Mollak charges
Advertised Dubai listings often quote 8% to 10% gross yields based on peak short-term rent assumptions and zero expenses. Once you account for closing costs and recurring building fees, a headline 8.5% apartment frequently drops near 5% net.
Any serious underwriting script needs to factor in three Dubai-specific cost lines alongside the 2,000,000 AED UAE Golden Visa threshold:
- 4% DLD transfer fee on the purchase price
- AED 4,780 DLD Admin and Trustee fee at transfer
- RERA Mollak service charges, which typically run
15 to 26 AED/sqft/yearin Dubai Marina high-rise towers (before adding district cooling / chiller demand charges where applicable)
def calculate_dubai_net_yield( purchase_price_aed: float, annual_rent_aed: float, area_sqft: float, mollak_fee_per_sqft: float = 18.0, management_pct: float = 0.05, annual_chiller_aed: float = 0.0, ) -> dict[str, float | bool]: """Compute Dubai net yield after 4% DLD, AED 4,780 Trustee fee, and Mollak charges.""" dld_transfer_fee = purchase_price_aed * 0.04 trustee_and_admin = 4780.0 total_cash_required = purchase_price_aed + dld_transfer_fee + trustee_and_admin annual_mollak = area_sqft * mollak_fee_per_sqft annual_management = annual_rent_aed * management_pct net_annual_income = annual_rent_aed - annual_mollak - annual_management - annual_chiller_aed gross_yield_pct = round((annual_rent_aed / purchase_price_aed) * 100, 2) net_yield_pct = round((net_annual_income / total_cash_required) * 100, 2) return { "totalCashRequiredAed": round(total_cash_required, 2), "annualMollakAed": round(annual_mollak, 2), "netAnnualIncomeAed": round(net_annual_income, 2), "grossYieldPct": gross_yield_pct, "netYieldPct": net_yield_pct, "goldenVisaEligible": purchase_price_aed >= 2_000_000, } Trap D: Defensive parsing for sparse off-plan and permit fields
Real estate search payloads are uneven across listing types. If your database schema marks optional fields as non-nullable or assumes every record carries a permit number, your nightly ingestion job will fail mid-batch.
On a measured 50-row Dubai Marina residential sale dataset, field coverage broke down as follows:
-
verifiedAt,agent1Phone, andimages:50/50populated -
developerName:7/50(populated only on primary developer-represented stock) -
handoverDateandpaymentPlanDownPercent:4/50(off-plan listings with published installment plans) -
permitNumber:0/50(omitted from Bayut's public search payload, so clean pipelines leave itnullrather than fabricating a placeholder) -
agent1Whatsapp:0/50in that specific sample after the>= 80%shared agency switchboard filter ran
Always use .get() with explicit None checks and store optional fields in flat, nullable columns so missing off-plan attributes never trigger KeyError or type-cast exceptions.
Build vs. Buy: The Real Cost of Self-Hosting a UAE Scraper
If you are deciding whether to run your own Playwright cluster or consume a managed endpoint, measure the hidden engineering hours honestly.
Building a custom scraper from scratch usually takes two to five days for the initial parser, pagination handling, and location tree mapping. The recurring drain comes afterward: rotating residential proxies when bot defenses tighten, debugging silent empty arrays after frontend DOM changes, and maintaining a clean 90-day DLD sold-price lookup table on the side.
For low-volume or sporadic runs (1,000 to 25,000 listings a month), paying per event for pre-parsed flat JSON almost always costs less than a standalone residential proxy subscription and a few hours of maintenance time. On the other hand, if you are ingesting millions of historical rows every week across multiple regions, running dedicated internal infrastructure starts to make financial sense.
Using a Pre-Built 91-Column Bayut Pipeline (Python, n8n, or MCP)
If you want to run the DLD calculations and net yield scripts above without building or maintaining the extraction layer yourself, I packaged this exact 91-column flat pipeline as a public Apify Actor (Bayut Scraper, Actor ID JEBBiiZaGp1EX33sA).
Every row exports in a consistent 91-column flat schema across four branches (buy, rent, commercial-buy, commercial-rent) covering 28+ Dubai and Abu Dhabi communities, with zero nested [object Object] cells.
Sample JSON record
Before writing any integration code, you can download live 50-row benchmark exports directly to test your downstream Python scripts: bayut-sale.json (CSV).
A trimmed sale record from that 91-column schema looks like this:
{ "item_id": "13488210", "listingType": "buy", "propertyType": "apartment", "price": "AED 980,000", "priceNumeric": 980000, "pricePerSqftAed": 1152.94, "emirate": "Dubai", "community": "Jumeirah Village Circle (JVC)", "towerOrBuilding": "Belgravia 3", "bedrooms": 1, "bathrooms": 2, "areaSqft": 850.0, "completionStatus": "ready", "goldenVisaEligible": false, "isVerified": true, "isTruBroker": true, "daysOnMarket": 19, "communityMedianPricePerSqftAed": 1310.0, "belowCommunityMedianPercent": 11.99, "dldMedianSoldPriceAed": 1050000, "dldMedianSoldPricePerSqftAed": 1235.29, "vsDldSoldMedianPercent": -6.67, "dldSampleTransactionsCount": 12, "dldBenchmarkBasis": "building", "agent1Name": "Kareem Hassan", "agent1Phone": "+971501199887", "agencyName": "fam Properties", "url": "https://www.bayut.com/property/details-13488210.html" } Pull and rank under-DLD apartments in Python
from apify_client import ApifyClient client = ApifyClient("YOUR_APIFY_TOKEN") run = client.actor("JEBBiiZaGp1EX33sA").call(run_input={ "listingType": "buy", "communities": ["Dubai Marina", "JVC"], "maxItems": 100, "completionStatus": "ready", "onlyVerified": True, }) items = client.dataset(run["defaultDatasetId"]).list_items().items under_dld = [ row for row in items if row.get("vsDldSoldMedianPercent") is not None and row["vsDldSoldMedianPercent"] < 0 ] under_dld.sort(key=lambda r: r["vsDldSoldMedianPercent"]) for prop in under_dld[:5]: print( f"{prop.get('community')} | {prop.get('towerOrBuilding')} | " f"{prop.get('price')} | vs DLD: {prop.get('vsDldSoldMedianPercent')}% | " f"{prop.get('agent1Phone')}" ) Single-call REST endpoint for n8n or cURL
For n8n workflows, one synchronous HTTP Request node starts the run and returns the JSON array directly to Google Sheets, PostgreSQL, or Slack:
curl -X POST "https://api.apify.com/v2/acts/JEBBiiZaGp1EX33sA/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "listingType": "buy", "communities": ["Dubai Marina", "Business Bay"], "maxItems": 100, "belowCommunityMedianPercent": 10, "completionStatus": "ready" }' When you pass multiple locations in communities, maxItems splits evenly across them so the first community never consumes the whole budget.
Connecting via Apify MCP Server
If you are querying Dubai listings inside Claude, Cursor, or another MCP-compatible agent, point your client to https://mcp.apify.com and reference Actor ID JEBBiiZaGp1EX33sA:
{ "mcpServers": { "apify": { "command": "npx", "args": ["-y", "@apify/mcp-server"], "env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" } } } } In terms of cost and stability, pay-per-event billing comes out to $0.755 per 1,000 listings on the Free/Starter tier ($0.005 start + $0.00075 per listing) or $0.554 on Scale ($0.004 start + $0.00055 per listing), with zero separate proxy or detail-page charges. Apify's $5 monthly Free credit covers up to 6,660 listings in a single run without a credit card, and over the past 30 days, 411/411 public runs completed with zero failures or timeouts.
Wrapping Up
If you are building on Dubai real estate data right now, how are you handling DLD building-name matching and RERA Mollak service-charge lookups in your pipeline? Feel free to share edge cases you have hit in the comments.
If you want to test the pre-built Actor, you can inspect the full schema and run it directly on Apify Store, or browse the broader UAE and Australian property portal suite on the PropDealRadar Developers Hub.
(If you are analyzing Dubai deals without writing code, I also maintain a pre-populated Google Sheets and Excel tracker with 4% DLD, Mollak fees, and Golden Visa checks at PropDealRadar Dubai Sheets.)