{
  "openapi": "3.0.1",
  "info": {
    "title": "Dubizzle Property Scraper",
    "description": "Scrape Dubizzle.com UAE property listings in real time. Search by location, coordinates, polygon, or URL with full filters; pull property details (photos, agent, agency, amenities, DLD history); look up agents and list their portfolio.",
    "version": "1.0",
    "x-build-id": "OlnjylTMni4Xi4Bjb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/one-api~dubizzle-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-one-api-dubizzle-property-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/one-api~dubizzle-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-one-api-dubizzle-property-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/one-api~dubizzle-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-one-api-dubizzle-property-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": {
          "property_inputs": {
            "title": "Property URL or `listing_id:category_id` (one per line)",
            "type": "array",
            "description": "Fetches full property detail (photos, agent, agency, amenities, DLD history, similar listings). Each row accepts:\n• Full Dubizzle listing URL (e.g. `https://dubai.dubizzle.com/property-for-sale/...`)\n• Dubizzle short URL (`https://dbz.ae/abc123`)\n• `listing_id:category_id` (e.g. `8955838462:31`) — fastest when you already know both",
            "items": {
              "type": "string"
            }
          },
          "search_inputs": {
            "title": "Location name or location ID (one per line)",
            "type": "array",
            "description": "Auto-detects each entry:\n• Numeric → location ID (e.g. `1614` for Dubai Marina)\n• Text → location name; we autocomplete and use the top hit\n\nFilters below apply to every search. Each LISTING is pushed as one row.",
            "items": {
              "type": "string"
            }
          },
          "coord_inputs": {
            "title": "`lat,lng` or `lat,lng,radius_km` (one per line)",
            "type": "array",
            "description": "Radius defaults to 5 km if omitted. Filters below apply.",
            "items": {
              "type": "string"
            }
          },
          "polygon_inputs": {
            "title": "Polygon vertices `lat1,lng1|lat2,lng2|...` (one polygon per line)",
            "type": "array",
            "description": "Define an arbitrary area as a list of `lat,lng` vertices separated by `|`. Minimum 3 points. Last vertex auto-closes to first.",
            "items": {
              "type": "string"
            }
          },
          "search_url_inputs": {
            "title": "Dubizzle search results URL (one per line)",
            "type": "array",
            "description": "Paste a Dubizzle search-results page URL — we extract every embedded filter (location, purpose, beds, price, etc.) automatically.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Purpose",
            "enum": [
              "For_Sale",
              "For_Rent"
            ],
            "type": "string",
            "description": "For_Sale (default) or For_Rent.",
            "default": "For_Sale"
          },
          "category": {
            "title": "Category",
            "enum": [
              "Residential",
              "Commercial"
            ],
            "type": "string",
            "description": "Top-level category. Defaults to Residential.",
            "default": "Residential"
          },
          "propertyType": {
            "title": "Property Type",
            "type": "string",
            "description": "Sub-type filter. Comma-separated to combine multiple. Examples: `Apartment`, `Villa`, `Townhouse`, `Penthouse`, `Studio`, `Office`, `Shop`, `Warehouse`, `Land`.",
            "default": ""
          },
          "completionStatus": {
            "title": "Completion Status",
            "enum": [
              "",
              "Ready",
              "Off_Plan"
            ],
            "type": "string",
            "description": "Ready (completed) / Off_Plan (under construction) / empty (any).",
            "default": ""
          },
          "priceRange": {
            "title": "Price Range (AED)",
            "type": "string",
            "description": "`min:500000`, `max:5000000`, or `min:500000,max:5000000`.",
            "default": ""
          },
          "areaRange": {
            "title": "Area Range (sqft)",
            "type": "string",
            "description": "`min:800`, `max:3000`, `min:800,max:3000`.",
            "default": ""
          },
          "bedrooms": {
            "title": "Beds (exact)",
            "type": "string",
            "description": "Exact bed count (e.g. `2`, `5`). Use `studio` or `0` for studios. Empty = any.",
            "default": ""
          },
          "bathrooms": {
            "title": "Baths (exact)",
            "type": "string",
            "description": "Exact bath count (e.g. `2`). Empty = any.",
            "default": ""
          },
          "furnishing": {
            "title": "Furnishing",
            "enum": [
              "",
              "Furnished",
              "Unfurnished",
              "Partly_Furnished"
            ],
            "type": "string",
            "description": "Furnishing filter. Empty = any.",
            "default": ""
          },
          "rentFrequency": {
            "title": "Rent Frequency (rent only)",
            "enum": [
              "",
              "Yearly",
              "Monthly",
              "Weekly",
              "Daily"
            ],
            "type": "string",
            "description": "Used when Purpose = For Rent. Yearly is most common in the UAE.",
            "default": ""
          },
          "isVerified": {
            "title": "Verified Listings Only",
            "type": "boolean",
            "description": "Restrict to verified / TruCheck listings.",
            "default": false
          },
          "hasVideo": {
            "title": "Has Video Tour",
            "type": "boolean",
            "description": "Only listings with a video tour.",
            "default": false
          },
          "has360": {
            "title": "Has 360° Tour",
            "type": "boolean",
            "description": "Only listings with a 360° panorama.",
            "default": false
          },
          "sortOrder": {
            "title": "Sort Order",
            "enum": [
              "Featured",
              "Price_Low_to_High",
              "Price_High_to_Low"
            ],
            "type": "string",
            "description": "Featured (default), Price low → high, or Price high → low.",
            "default": "Featured"
          },
          "resultCount": {
            "title": "Listings per page",
            "minimum": 1,
            "maximum": 35,
            "type": "integer",
            "description": "1–35 (Dubizzle default).",
            "default": 35
          },
          "pages": {
            "title": "Pages to fetch per search",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Each page = up to `resultCount` listings.",
            "default": 1
          },
          "autocomplete_inputs": {
            "title": "Autocomplete query (one per line)",
            "type": "array",
            "description": "Dubizzle location lookup: cities, neighbourhoods, sub-communities. Use the resulting `id` as `search_inputs`.",
            "items": {
              "type": "string"
            }
          },
          "agent_slug_inputs": {
            "title": "Agent slug (one per line)",
            "type": "array",
            "description": "Agent slug from a Dubizzle profile URL (e.g. `mark-jansen-12345`). Returns profile + agency, bio, languages, total-listings count.",
            "items": {
              "type": "string"
            }
          },
          "agent_id_inputs": {
            "title": "Agent dbz numeric ID (one per line)",
            "type": "array",
            "description": "Numeric Dubizzle agent ID (e.g. `123456`). Lists every property they have, page by page. Honours the search filters above.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}