{
  "openapi": "3.0.1",
  "info": {
    "title": "MENA Property Gateway — Bayut + Dubizzle + DLD Data",
    "description": "Unified Bayut + Dubizzle UAE property data in one run — pick one platform or both, get cross-platform agent matching, Dubai Land Department deed records, RERA permits, off-plan project metadata, bilingual EN+AR fields. Designed for UAE real-estate agencies replacing manual two-actor joins.",
    "version": "1.0",
    "x-build-id": "G7bv1Tywz5DOKTfht"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~mena-property-gateway/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-mena-property-gateway",
        "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/sian.agency~mena-property-gateway/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-mena-property-gateway",
        "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/sian.agency~mena-property-gateway/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-mena-property-gateway",
        "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",
        "required": [
          "platforms",
          "searchMode",
          "queries"
        ],
        "properties": {
          "platforms": {
            "title": "🏛️ Platforms to query",
            "enum": [
              "both",
              "bayut",
              "dubizzle"
            ],
            "type": "string",
            "description": "Which source(s) to pull from. `both` is the bundle's reason to exist; pick one platform if you only need that side (consider using the single-platform sister actor instead in that case).",
            "default": "both"
          },
          "searchMode": {
            "title": "🔍 Search mode",
            "enum": [
              "location",
              "locationId",
              "coordinates",
              "polygon",
              "byurl"
            ],
            "type": "string",
            "description": "How to scope the search. `location` accepts a place name (e.g. \"Dubai Marina\") and works for both platforms. `locationId` accepts a numeric ID (Bayut externalID or Dubizzle locationId) — fastest path. `coordinates`, `polygon`, and `byurl` are Dubizzle-only (Bayut does not expose those endpoints) — selecting them with `platforms: both` will skip the Bayut side with a warning.",
            "default": "location"
          },
          "queries": {
            "title": "📝 Search queries",
            "type": "array",
            "description": "List of queries to run. For `location` mode use plain location names (\"Dubai Marina\", \"Abu Dhabi\", \"Jumeirah Village Circle\"). For `locationId` use externalIDs/locationIds. For `coordinates` use \"lat,lng,radius_km\". For `polygon` paste a GeoJSON-like polygon. For `byurl` paste a Dubizzle search URL.",
            "default": [
              "Dubai Marina"
            ],
            "items": {
              "type": "string"
            }
          },
          "purpose": {
            "title": "🏷️ Listing purpose",
            "enum": [
              "both",
              "for-sale",
              "for-rent"
            ],
            "type": "string",
            "description": "Filter listings by sale/rent.",
            "default": "both"
          },
          "propertyType": {
            "title": "🏠 Property type",
            "enum": [
              "all",
              "apartment",
              "villa",
              "townhouse",
              "penthouse",
              "land",
              "commercial"
            ],
            "type": "string",
            "description": "Filter by property type. Default returns all types.",
            "default": "all"
          },
          "minPrice": {
            "title": "💰 Minimum price (AED)",
            "minimum": 0,
            "type": "integer",
            "description": "Inclusive lower bound in AED."
          },
          "maxPrice": {
            "title": "💰 Maximum price (AED)",
            "minimum": 0,
            "type": "integer",
            "description": "Inclusive upper bound in AED."
          },
          "maxResultsPerPlatform": {
            "title": "📊 Max results per platform",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on listings per platform per query. FREE tier is capped at 25.",
            "default": 100
          },
          "enrichDetails": {
            "title": "🔬 Enrich with full property details",
            "type": "boolean",
            "description": "Per-listing detail call (Bayut `/details/property` + Dubizzle `/details/byid`). Adds amenities, photos, completionDetails, indyScore. PAID only.",
            "default": false
          },
          "enrichDld": {
            "title": "🏛️ Enrich with Dubai Land Department (DLD) deed data",
            "type": "boolean",
            "description": "Per-Dubizzle-listing DLD call. Adds buildingInfo, floor count, parking spaces, off-plan project metadata, DLD validation URL. UNIQUE on Apify Store. PAID only.",
            "default": false
          },
          "matchAgentsAcrossPlatforms": {
            "title": "🤝 Match agents across Bayut + Dubizzle",
            "type": "boolean",
            "description": "Bundle-unique feature. Fetches each agent's full inventory on BOTH platforms and emits a `_type: agent-match` row joining them. PAID only.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}