{
  "openapi": "3.0.1",
  "info": {
    "title": "Bayut Scraper",
    "description": "Bayut Scraper scrapes real estate listings, agents and agencies from Bayut.com by bulk URLs or filters: price, location, bedrooms, bathrooms, area, agency and publish date. Export JSON, CSV or Excel, or use the API.",
    "version": "0.2",
    "x-build-id": "8oPPJUclvhIbSOT7Z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fastdataapi~bayut-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fastdataapi-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/fastdataapi~bayut-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fastdataapi-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/fastdataapi~bayut-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fastdataapi-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": {
          "startUrls": {
            "title": "🔗 Bayut start URLs",
            "type": "array",
            "description": "Bayut search, listing or broker page URLs, one per line, e.g. https://www.bayut.com/for-sale/apartments/dubai/dubai-marina/ or https://www.bayut.com/brokers/dubai/?agents_type=agencies. Each URL is read for its deal type, category and location and scraped as its own search. Leave empty to build one search from the filters below.",
            "items": {
              "type": "string"
            }
          },
          "deal_type": {
            "title": "🔧 Listing type",
            "enum": [
              "for_sale",
              "for_rent"
            ],
            "type": "string",
            "description": "Properties for sale or for rent. Ignored when start URLs are given (the deal type is read from each URL).",
            "default": "for_sale"
          },
          "location": {
            "title": "📍 Location name",
            "type": "string",
            "description": "A Bayut location such as \"Dubai Marina\", \"Business Bay\", \"Jumeirah Village Circle\" or \"Yas Island\". Leave empty for a market-wide search. Ignored when start URLs are given."
          },
          "min_price": {
            "title": "🎯 Minimum price (AED)",
            "minimum": 0,
            "type": "number",
            "description": "Lowest listing price to include, in AED."
          },
          "max_price": {
            "title": "🎯 Maximum price (AED)",
            "minimum": 0,
            "type": "number",
            "description": "Highest listing price to include, in AED. Pair it with the minimum price for a price band."
          },
          "residential_property_type": {
            "title": "🎯 Residential property types",
            "uniqueItems": true,
            "type": "array",
            "description": "One or more residential property types. Leave empty for all residential types.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "townhouse",
                "villa_compound",
                "land",
                "building",
                "villa",
                "penthouse",
                "hotel_apartment",
                "floor"
              ],
              "enumTitles": [
                "Apartment",
                "Townhouse",
                "Villa Compound",
                "Land",
                "Building",
                "Villa",
                "Penthouse",
                "Hotel Apartment",
                "Floor"
              ]
            }
          },
          "commercial_property_type": {
            "title": "🎯 Commercial property types",
            "uniqueItems": true,
            "type": "array",
            "description": "One or more commercial property types. If you pick both residential and commercial types, the run makes one residential and one commercial search.",
            "items": {
              "type": "string",
              "enum": [
                "office",
                "warehouse",
                "villa",
                "land",
                "building",
                "industrial_land",
                "showroom",
                "shop",
                "labour_camp",
                "bulk_unit",
                "floor",
                "factory",
                "mixed_use_land",
                "other_commercial"
              ],
              "enumTitles": [
                "Office",
                "Warehouse",
                "Villa",
                "Land",
                "Building",
                "Industrial Land",
                "Showroom",
                "Shop",
                "Labour Camp",
                "Bulk Unit",
                "Floor",
                "Factory",
                "Mixed Use Land",
                "Other Commercial"
              ]
            }
          },
          "rent_frequency": {
            "title": "📅 Rent frequency",
            "enum": [
              "yearly",
              "monthly",
              "weekly",
              "daily",
              "any"
            ],
            "type": "string",
            "description": "Rental billing period for rent searches; keep Any to include all. Ignored for sale listings.",
            "default": "any"
          },
          "bedroom_count": {
            "title": "🎯 Bedrooms",
            "uniqueItems": true,
            "type": "array",
            "description": "One or more bedroom counts, including Studio.",
            "items": {
              "type": "string",
              "enum": [
                "studio",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8_plus"
              ],
              "enumTitles": [
                "Studio",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8+"
              ]
            }
          },
          "bathroom_count": {
            "title": "🎯 Bathrooms",
            "uniqueItems": true,
            "type": "array",
            "description": "One or more bathroom counts.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6_plus"
              ],
              "enumTitles": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6+"
              ]
            }
          },
          "min_area": {
            "title": "🎯 Minimum area (sq ft)",
            "minimum": 0,
            "type": "number",
            "description": "Smallest property size to include, in square feet."
          },
          "max_area": {
            "title": "🎯 Maximum area (sq ft)",
            "minimum": 0,
            "type": "number",
            "description": "Largest property size to include, in square feet."
          },
          "developer": {
            "title": "🎯 Developer name",
            "type": "string",
            "description": "Only properties tied to this developer, e.g. \"Emaar\", \"DAMAC\" or \"Binghatti\". Leave empty for all developers."
          },
          "agent": {
            "title": "👤 Agent or agency names",
            "type": "array",
            "description": "One or more Bayut agent or agency names. Only their listings are collected.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "🔎 Keywords",
            "type": "array",
            "description": "Free-text terms for features the structured filters do not cover, e.g. \"furnished\", \"waterfront\", \"off-plan\" or \"payment plan\".",
            "items": {
              "type": "string"
            }
          },
          "with_floor_plans": {
            "title": "✅ Only listings with floor plans",
            "type": "boolean",
            "description": "Keep only listings that include floor-plan information.",
            "default": false
          },
          "search_agents": {
            "title": "✅ Search agents or agencies instead of listings",
            "type": "boolean",
            "description": "Turn on to collect broker profiles instead of property listings. The listing filters above are then ignored. Start URLs that point at a /brokers/ page always collect brokers.",
            "default": false
          },
          "agents_type": {
            "title": "🔧 Agents or agencies",
            "enum": [
              "agents",
              "agencies"
            ],
            "type": "string",
            "description": "Collect individual agent profiles or agency company profiles.",
            "default": "agents"
          },
          "agents_location": {
            "title": "📍 Agent search location",
            "type": "string",
            "description": "Bayut location for the agent or agency search, e.g. \"Dubai\" or \"Palm Jumeirah\". Used only when the agent search is on and no start URLs are given."
          },
          "limit": {
            "title": "🔢 Max results per search",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of records saved for each start URL or filter search (0 = no limit). Free plan: up to 20 records per run (all start URLs and searches together) and 200 per month; paid plans have no limit.",
            "default": 10
          },
          "maxRetries": {
            "title": "🔁 Max retries per request",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many times one request is retried before the actor gives up on it.",
            "default": 3
          },
          "maxScanned": {
            "title": "🔢 Max rows scanned per search",
            "minimum": 0,
            "type": "integer",
            "description": "Safety budget: stop one start URL or filter search after scanning this many rows, even if the result limit is not reached yet (protects against filter combinations that match almost nothing). 0 = no cap.",
            "default": 20000
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Leave the default (no proxy) and the actor switches to a datacenter and then a residential proxy by itself when Bayut blocks it. Pick a proxy group yourself to use it for the whole run.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}