{
  "openapi": "3.0.1",
  "info": {
    "title": "Property Finder Agent Scraper — Dubai Agents, Agencies, Leads",
    "description": "Scrape Property Finder real estate agents, agencies, and off-plan projects across Dubai and the UAE. Get agent leads with direct phone, email, WhatsApp, LinkedIn, RERA trade license, ratings, transaction stats, agency rosters, plus new-project prices, developers, and payment plans.",
    "version": "1.0",
    "x-build-id": "vVF6ck9q7gPVSjoHY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~propertyfinder-agent-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-propertyfinder-agent-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/sian.agency~propertyfinder-agent-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-propertyfinder-agent-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/sian.agency~propertyfinder-agent-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-propertyfinder-agent-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": {
          "mode": {
            "title": "🧭 Mode",
            "enum": [
              "agentSearch",
              "agencySearch",
              "agentListings",
              "agencyListings",
              "newProjects",
              "projectDetails"
            ],
            "type": "string",
            "description": "What to scrape.\n\n👤 **agentSearch** — agent directory by location and/or name, with optional direct-contact enrichment (email, phone, WhatsApp, LinkedIn, transaction stats).\n\n🏢 **agencySearch** — agency directory with direct phone, email, and trade license in every row.\n\n🏠 **agentListings** / **agencyListings** — the full listing portfolio of specific agents/agencies by id.\n\n🏗 **newProjects** — off-plan/new-project launches by location or developer.\n\n📋 **projectDetails** — the full project dossier (payment plans, fees, amenities) by slug.",
            "default": "agentSearch"
          },
          "location": {
            "title": "📍 Location",
            "type": "string",
            "description": "📍 **FREE-TEXT LOCATION** for agentSearch, agencySearch, and newProjects — e.g. \"Dubai Marina\", \"Downtown Dubai\", or just \"Dubai\". The directory resolves it server-side.\n\n💡 **TIP:** Broader locations return more results (Dubai has 16k+ agents, 750+ new projects).",
            "default": "Dubai Marina"
          },
          "searchText": {
            "title": "🔤 Name Search (optional)",
            "type": "string",
            "description": "🔎 Search agents or agencies **by name** instead of location, e.g. \"brooke\" or \"elite\". Best used on its own — when combined with a location the directory may ignore it."
          },
          "nationality": {
            "title": "🌍 Agent Nationality (agentSearch)",
            "type": "string",
            "description": "🌍 Filter agents by **2-letter nationality code**, e.g. \"gb\", \"in\", \"ae\". Verified server-side — great for language-matched outreach."
          },
          "superAgentsOnly": {
            "title": "⭐ SuperAgents Only (agentSearch)",
            "type": "boolean",
            "description": "⭐ Return only agents with **SuperAgent** status — the portal's top-performer badge.",
            "default": false
          },
          "fetchAgentDetails": {
            "title": "✨ Enrich Agents with Direct Contacts (PAID)",
            "type": "boolean",
            "description": "✨ **THE LEAD-GEN SWITCH:** per agent, fetch the full profile — **direct email, phone, WhatsApp, LinkedIn** plus transaction volumes (sale/rent counts, deal volume, average ticket). Adds one profile-enrichment charge per agent. PAID tier only.",
            "default": true
          },
          "fetchAgencyDetails": {
            "title": "✨ Enrich Agencies with Full Profile (PAID)",
            "type": "boolean",
            "description": "✨ Per agency, fetch the full company profile (adds the complete company description). Phone, email, and license are already in every search row — enable this only if you need the description. PAID tier only.",
            "default": false
          },
          "agencySortOrder": {
            "title": "↕️ Agency Sort Order (agencySearch)",
            "enum": [
              "Default",
              "Name",
              "Most_Properties"
            ],
            "type": "string",
            "description": "↕️ Order agency results: Default (relevance), Name, or Most_Properties (largest inventories first)."
          },
          "agentIds": {
            "title": "👤 Agent IDs (agentListings)",
            "type": "array",
            "description": "🔎 Numeric agent ids to pull portfolios for (e.g. \"293926\") — harvest them with agentSearch first.\n\n📊 **TIER LIMITS:** FREE = 1 id per run · PAID = unlimited.",
            "items": {
              "type": "string"
            }
          },
          "agencyIds": {
            "title": "🏢 Agency IDs (agencyListings)",
            "type": "array",
            "description": "🔎 Numeric agency ids to pull portfolios for (e.g. \"4302\") — harvest them with agencySearch first.\n\n📊 **TIER LIMITS:** FREE = 1 id per run · PAID = unlimited.",
            "items": {
              "type": "string"
            }
          },
          "listingSearchType": {
            "title": "🧭 Portfolio Slice",
            "enum": [
              "Auto",
              "For_Sale",
              "For_Rent"
            ],
            "type": "string",
            "description": "🧭 Which portfolio slice to fetch. **Auto** (recommended) probes sale → rent → commercial automatically, so commercial-only or rentals-only portfolios are never missed. Set explicitly to pin one slice.",
            "default": "Auto"
          },
          "commercialListings": {
            "title": "🏬 Commercial Listings",
            "type": "boolean",
            "description": "🏬 Fetch the **commercial** portfolio slice (offices, retail, warehouses). With Auto slice, prioritises commercial combos first.",
            "default": false
          },
          "developerId": {
            "title": "🏗 Developer ID (newProjects)",
            "type": "string",
            "description": "🏗 Filter new projects by developer id (returned in every project row's developer object). Works with or without a location."
          },
          "completionStatus": {
            "title": "🚧 Completion Status (newProjects)",
            "enum": [
              "Any",
              "Off_Plan",
              "Ready"
            ],
            "type": "string",
            "description": "🚧 Filter projects by construction status: Any, Off_Plan (pre-completion — investor territory), or Ready.",
            "default": "Any"
          },
          "projectSortOrder": {
            "title": "↕️ Project Sort Order (newProjects)",
            "enum": [
              "Featured",
              "Newest",
              "Price_Low_to_High",
              "Price_High_to_Low",
              "Delivery_Date_Earliest",
              "Delivery_Date_Latest"
            ],
            "type": "string",
            "description": "↕️ Order project results — delivery-date sorts are ideal for launch monitoring."
          },
          "projectSlugs": {
            "title": "📋 Project Slugs or URLs (projectDetails)",
            "type": "array",
            "description": "📋 Project slugs (\"developer-slug/project-slug\", returned by newProjects) or public new-project page URLs. Each returns the full dossier: description, payment-plan milestones, government fees, amenities, master plan.\n\n📊 **TIER LIMITS:** FREE = 1 project per run · PAID = unlimited.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "📊 Max Results per Query",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "📊 Cap on rows per search query / per portfolio id. Default 50. Lower = faster + cheaper runs.\n\n📊 **TIER LIMITS:** FREE runs are capped at 25 rows total.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}