{"openapi":"3.0.0","info":{"title":"Bayut MENA Property Sale and Rent","version":"1.0.0","description":"Bayut property listings across UAE, Saudi Arabia, Egypt, Bahrain and Qatar with prices, coordinates and agency data, one row per entity."},"servers":[{"url":"https://ah-bayut-com.opendata.best/s/bayut-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search Bayut MENA property listings","description":"Query Bayut buy or rent property listings by market code, location and property type.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. Bayut search or listing URLs from bayut.com, bayut.sa, bayut.eg, bayut.bh, or bayut.qa. Recognized search URLs determine the country, sale or rental channel, category, and location instead of the form filters.","example":[]},"location":{"type":"string","description":"Location slug. Location slug from a Bayut URL, such as dubai or dubai-marina. Leave empty for each country's default location; dubai also changes to the local default outside the UAE.","example":"doha"},"market":{"type":"string","enum":["AE","SA","EG","BH","QA","all"],"description":"Market. Choose AE, SA, EG, BH, or QA; all selects all five supported countries. When omitted, the country is AE; Jordan, Oman, and Kuwait are not supported.","example":"QA"},"markets":{"type":"array","items":{"type":"string"},"description":"Markets. Optional list of country codes, such as BH and QA. A non-empty list takes precedence over market; all selects the five supported countries.","example":[]},"channel":{"type":"string","enum":["BUY","RENT"],"description":"Channel. Choose BUY for properties for sale or RENT for rental properties. Recognized search URLs determine their own channel.","default":"BUY"},"propertyType":{"type":"string","enum":["property","apartments","villas","townhouses","penthouse","hotel-apartments","villa-compound","residential-plots","residential-lands","residential-floor","residential-building","chalets","farms","office-spaces","offices","shops","warehouses","showrooms","industrial-land","commercial-plots","commercial-villas","commercial-floors","buildings","factories","labour-camps"],"description":"Property type. Property category used for searches, such as apartments or villas. Choose property for all property types; availability varies by country.","default":"apartments"},"propertyTypes":{"type":"array","items":{"type":"string"},"description":"Property types. Optional list of property categories that takes precedence over propertyType. All categories within one country share that country's maxResults limit.","default":[],"example":[]},"expandPrimaryCategories":{"type":"boolean","description":"Expand primary categories. For an all-property search, search the primary categories separately instead of one combined category. The categories still share the country's row limit.","default":false},"maxPages":{"type":"integer","minimum":1,"maximum":100,"description":"Max search pages. Search-page limit for each search URL, from 1 to 100. Available listings and the row limit can end collection sooner.","default":1},"scrapeDetails":{"type":"boolean","description":"Add listing details. Add available detail-page information to search rows, including descriptions, amenities, photos, and public contact details. This can take longer; extra fields are not guaranteed and remain part of the same listing row.","default":false},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"market":"QA","location":"doha","channel":"BUY","scrapeDetails":false,"maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"API health check","description":"Lightweight readiness check for this API. Never starts a collection and always bills 0 rows.","tags":["health"],"responses":{"200":{"description":"API is operational (0 rows).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"API is temporarily unavailable (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"Row":{"type":"object","properties":{"id":{"nullable":true},"listingId":{"nullable":true,"type":"string"},"externalId":{"nullable":true,"type":"string"},"url":{"type":"string","minLength":1,"pattern":"\\S"},"source":{"type":"string"},"sourceLayer":{"type":"string","description":"Source classification recorded for the listing row. This is provenance metadata, not a guarantee of optional field completeness.","enum":["srp_window_state","srp_json_ld","dom_cards","ldp_window_state","ldp_jsonld"]},"enriched":{"nullable":true,"type":"boolean","description":"True when detail-page information was merged into the search row. Optional fields may still be empty."},"enrichLayer":{"nullable":true,"type":"string","description":"Source classification of the detail information added when enriched is true."},"market":{"type":"string"},"channel":{"type":"string"},"purpose":{"nullable":true,"type":"string"},"title":{"type":"string","minLength":1,"pattern":"\\S"},"price":{"nullable":true,"type":"string"},"priceAmount":{"type":"number"},"currency":{"nullable":true,"type":"string"},"pricePeriod":{"nullable":true,"type":"string"},"numBedrooms":{"nullable":true},"numBathrooms":{"nullable":true},"propertyType":{"nullable":true,"type":"string"},"size":{"nullable":true,"type":"number"},"sizeUnit":{"nullable":true,"type":"string"},"completionStatus":{"nullable":true,"type":"string"},"furnishingStatus":{"nullable":true,"type":"string"},"address":{"nullable":true,"type":"object","properties":{"street":{"nullable":true,"type":"string"},"unit":{"nullable":true,"type":"string"},"locality":{"nullable":true,"type":"string"},"region":{"nullable":true,"type":"string"},"postalCode":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"full":{"nullable":true,"type":"string"}}},"phones":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"},"e164":{"nullable":true,"type":"string"}}}},"emails":{"nullable":true,"type":"array","description":"See leadAbsences for the recorded reason.","items":{"type":"object","properties":{"value":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"}}}},"geo":{"nullable":true,"type":"object","properties":{"lat":{"nullable":true,"type":"number"},"lng":{"nullable":true,"type":"number"}}},"person":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"role":{"nullable":true,"type":"string"}}},"org":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"id":{"nullable":true}}},"web":{"nullable":true,"type":"object","description":"External agency websites and social links are not extracted. The website value is null and the socials list is empty.","properties":{"website":{"nullable":true,"type":"string"},"socials":{"nullable":true,"type":"array","items":{"type":"string"}}}},"leadSource":{"nullable":true,"type":"string"},"leadReveal":{"nullable":true,"type":"string"},"leadAbsences":{"nullable":true,"type":"object","description":"Reasons for missing contact fields, indicating whether a field is not published on the listing page or was not obtained in this request."},"scrapedAt":{"type":"string"}},"additionalProperties":true,"description":"One collected entity. Field availability depends on rowType and the source. Fields always present (a|b = at least one of them): every row: listingId, title, url, price."},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string"},"retryable":{"type":"boolean"}}},"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"done":{"type":"boolean"},"rowsAvailable":{"type":"integer"},"rowsDelivered":{"type":"integer","description":"Rows already delivered (and billed) to you for this job."},"rowsLimit":{"type":"integer","description":"Most rows this job can deliver."},"estimatedFinishSec":{"type":"integer","description":"While running: estimated seconds until done."},"statusUrl":{"type":"string"},"resultsUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"retentionHours":{"type":"integer"},"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"RowsPage":{"allOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"object","properties":{"offset":{"type":"integer"},"nextOffset":{"type":"integer"},"hasMore":{"type":"boolean"},"rowCount":{"type":"integer"},"rowsBilled":{"type":"integer","description":"Rows delivered by this response."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"meta":{"type":"object","additionalProperties":true}}}]},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}}}}}