{
  "openapi": "3.0.1",
  "info": {
    "title": "Bayut Gulf Scraper - Qatar, Jordan, Oman & Bahrain Listings",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "Dfn68cticWfbfmktg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topapi~bayut-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topapi-bayut-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/topapi~bayut-scraper/runs": {
      "post": {
        "operationId": "runs-sync-topapi-bayut-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/topapi~bayut-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-topapi-bayut-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "markets": {
            "title": "Markets (Bayut sites)",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string",
              "enum": [
                "qatar",
                "jordan",
                "oman",
                "bahrain"
              ],
              "enumTitles": [
                "Qatar (bayut.qa)",
                "Jordan (bayut.jo)",
                "Oman (bayut.om)",
                "Bahrain (bayut.bh)"
              ]
            }
          },
          "purpose": {
            "title": "For sale or for rent",
            "enum": [
              "any",
              "for-sale",
              "for-rent"
            ],
            "type": "string",
            "description": "Listings for sale, for rent, or both.",
            "default": "any"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string",
              "enum": [
                "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"
              ],
              "enumTitles": [
                "Residential (all)",
                "Commercial (all)",
                "Apartments",
                "Villas",
                "Residential land",
                "Residential buildings",
                "Chalets",
                "Rooms",
                "Hotel apartments",
                "Other commercial",
                "Commercial buildings",
                "Commercial land",
                "Offices",
                "Showrooms",
                "Shops",
                "Warehouses",
                "Farms",
                "Agricultural plots",
                "Industrial land",
                "Mixed-use land",
                "Commercial villas",
                "Garages",
                "Commercial floors"
              ]
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Bayut links",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingIds": {
            "title": "Listing ids",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Words Bayut's search matches in the title, keywords, amenities, agency name or reference (e.g. \"sea view\", \"pool\")."
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "In the market's currency (QAR, JOD, OMR, BHD). For rentals, the price of the rent period."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "In the market's currency (QAR, JOD, OMR, BHD)."
          },
          "minBedrooms": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "0 includes studios."
          },
          "maxBedrooms": {
            "title": "Maximum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Most bedrooms."
          },
          "minBathrooms": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Fewest bathrooms."
          },
          "maxBathrooms": {
            "title": "Maximum bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Most bathrooms."
          },
          "minAreaSqm": {
            "title": "Minimum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Built-up area in square metres (all four sites list areas in m²)."
          },
          "maxAreaSqm": {
            "title": "Maximum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Built-up area in square metres."
          },
          "furnishing": {
            "title": "Furnishing",
            "enum": [
              "any",
              "furnished",
              "unfurnished"
            ],
            "type": "string",
            "description": "Furnished or unfurnished listings (rentals mostly).",
            "default": "any"
          },
          "completionStatus": {
            "title": "Completion",
            "enum": [
              "any",
              "completed",
              "under-construction"
            ],
            "type": "string",
            "description": "Ready or off-plan listings.",
            "default": "any"
          },
          "rentFrequency": {
            "title": "Rent period",
            "enum": [
              "any",
              "yearly",
              "monthly",
              "weekly",
              "daily"
            ],
            "type": "string",
            "description": "The rent period of rentals.",
            "default": "any"
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings created on Bayut in the last N days."
          },
          "updatedWithinDays": {
            "title": "Updated within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings updated on Bayut in the last N days."
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Only listings of these agencies: the agency name as Bayut shows it, or its Bayut id (agencyId in the output).",
            "items": {
              "type": "string"
            }
          },
          "withPhotosOnly": {
            "title": "With photos only",
            "type": "boolean",
            "description": "Leave out listings without photos.",
            "default": false
          },
          "withPriceOnly": {
            "title": "With a shown price only",
            "type": "boolean",
            "description": "Leave out listings whose price is hidden (price on request).",
            "default": false
          },
          "latitude": {
            "title": "Around a point: latitude",
            "type": "string",
            "description": "With longitude and radius: only listings within the radius of this point (e.g. 25.2854)."
          },
          "longitude": {
            "title": "Around a point: longitude",
            "type": "string",
            "description": "e.g. 51.5310"
          },
          "radiusKm": {
            "title": "Around a point: radius (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Default 5 km."
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "popular",
              "newest",
              "price_asc",
              "price_desc",
              "verified"
            ],
            "type": "string",
            "description": "Bayut's own sort orders. A link keeps the sort it was saved with.",
            "default": "popular"
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 0,
            "type": "integer",
            "description": "Most rows this run delivers and charges, across all searches. 0 = no limit (Jordan, the largest site, has ~24,000 listings).",
            "default": 100
          },
          "maxItemsPerSearch": {
            "title": "Maximum rows per search",
            "minimum": 0,
            "type": "integer",
            "description": "Cap for each market / location / link (0 = no cap)."
          },
          "includeDetails": {
            "title": "Listing details (description)",
            "type": "boolean",
            "description": "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).",
            "default": false
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "ar"
            ],
            "type": "string",
            "description": "Arabic gives the Arabic title, location, property type, agency names and amenities that Bayut stores with each listing.",
            "default": "en"
          },
          "compact": {
            "title": "Compact rows",
            "type": "boolean",
            "description": "Only the main fields, empty ones left out.",
            "default": false
          },
          "descriptionMaxLength": {
            "title": "Cut descriptions to (characters)",
            "minimum": 0,
            "type": "integer",
            "description": "0 = full text."
          },
          "mode": {
            "title": "Row type",
            "enum": [
              "listings",
              "agencies"
            ],
            "type": "string",
            "description": "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.",
            "default": "listings"
          },
          "monitorMode": {
            "title": "Monitor mode (only new and changed listings)",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps separate memories for separate monitors with the same input. Default: bayut-gulf-monitor."
          },
          "emitPriceChanges": {
            "title": "Deliver price changes",
            "type": "boolean",
            "description": "In monitor mode, deliver a known listing again when its price changed.",
            "default": true
          },
          "emitUnchanged": {
            "title": "Deliver unchanged listings too",
            "type": "boolean",
            "description": "Deliver unchanged listings too.",
            "default": false
          },
          "resetMonitor": {
            "title": "Reset the monitor memory",
            "type": "boolean",
            "description": "Forget what earlier runs delivered (this run starts a new memory).",
            "default": false
          },
          "webhookUrl": {
            "title": "Notify a webhook",
            "type": "string",
            "description": "Slack / Discord / any URL: a short summary with the top rows is POSTed when a run delivers something."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: the run reads Bayut directly and moves to Apify proxies only if a request is refused."
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Listing pages read at once with Listing details on.",
            "default": 8
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}