{"openapi":"3.1.0","info":{"title":"Bayut MENA Property Sale and Rent (x402 & MCP)","version":"0.1.0","description":"Bayut property listings across UAE, Saudi Arabia, Egypt, Bahrain and Qatar with prices, coordinates and agency data, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/bayut-com/v1/search":{"post":{"operationId":"bayut_com_search","summary":"Bayut MENA Property Sale and Rent: Search Bayut MENA property listings","description":"Query Bayut buy or rent property listings by market code, location and property type. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["bayut-com","Data"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startUrls":{"type":"array","items":{"type":"string"},"description":"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."},"location":{"type":"string","description":"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."},"market":{"type":"string","description":"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.","enum":["AE","SA","EG","BH","QA","all"]},"markets":{"type":"array","items":{"type":"string"},"description":"Optional list of country codes, such as BH and QA. A non-empty list takes precedence over market; all selects the five supported countries."},"channel":{"type":"string","description":"Choose BUY for properties for sale or RENT for rental properties. Recognized search URLs determine their own channel.","default":"BUY","enum":["BUY","RENT"]},"propertyType":{"type":"string","description":"Property category used for searches, such as apartments or villas. Choose property for all property types; availability varies by country.","default":"apartments","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"]},"propertyTypes":{"type":"array","items":{"type":"string"},"description":"Optional list of property categories that takes precedence over propertyType. All categories within one country share that country's maxItems limit.","default":[]},"expandPrimaryCategories":{"type":"boolean","description":"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","description":"Search-page limit for each search URL, from 1 to 100. Available listings and the row limit can end collection sooner.","default":1,"minimum":1,"maximum":100},"scrapeDetails":{"type":"boolean","description":"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","description":"Most listing rows for each start URL, or for each market when URLs are not provided. Default 70; larger requests are collected in parts. Property types for one market share its budget. The whole run stops at your maximum total charge. Free platform plan: up to 200 rows per run and 10 runs of this Actor.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"market":"QA","location":"doha","channel":"BUY","scrapeDetails":false,"maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_bayut_com"},"example":{"jobId":"job_bayut-co_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"market":"example_market","channel":"example_channel","id":"example_001","title":"example_title","price":"example_price","currency":"example_currency"}],"meta":{"site":"bayut-com","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/bayut-com/v1/health":{"get":{"operationId":"bayut_com_health","summary":"Bayut MENA Property Sale and Rent: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["bayut-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"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"}}},"Row_bayut_com":{"type":"object","properties":{"market":{"type":["string","null"],"title":"Market"},"channel":{"type":["string","null"],"title":"Channel"},"id":{"type":["string","null"],"title":"ID"},"title":{"type":["string","null"],"title":"Title"},"price":{"type":["string","null"],"title":"Price"},"currency":{"type":["string","null"],"title":"Currency"},"numBedrooms":{"type":["string","null"],"title":"Beds"},"numBathrooms":{"type":["string","null"],"title":"Baths"},"propertyType":{"type":["string","null"],"title":"Type"},"size":{"type":["number","null"],"title":"Size"},"address":{"type":["string","null"],"title":"Address"},"phones":{"type":["string","null"],"title":"Phones"},"emails":{"type":["string","null"],"title":"Emails"},"geo":{"type":["string","null"],"title":"Geo"},"person":{"type":["string","null"],"title":"Agent"},"org":{"type":["string","null"],"title":"Agency"},"web":{"type":["string","null"],"title":"Web"},"leadSource":{"type":["string","null"],"title":"Lead Source"},"leadReveal":{"type":["string","null"],"title":"Lead Reveal"},"leadAbsences":{"type":["string","null"],"title":"Lead Absences"},"url":{"type":["string","null"],"format":"uri","title":"URL"}},"additionalProperties":true},"Response_bayut_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_bayut_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}