{
  "openapi": "3.0.1",
  "info": {
    "title": "Domain Agent Scraper — AU Agents, Agencies & Reviews",
    "description": "Scrape Australian real estate agents and agencies at scale — search by suburb or lookup by id/profile URL. Returns phone, agency email, social links, profile tier, sale/rent stats, full listing portfolios, and reviews. Built for AU proptech lead gen, brokerage recruiting, and competitor intel.",
    "version": "1.0",
    "x-build-id": "E87pb8vBM858HPMM8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~domain-au-agent-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-domain-au-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~domain-au-agent-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-domain-au-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~domain-au-agent-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-domain-au-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": {
          "searchMode": {
            "title": "🧭 Search Mode",
            "enum": [
              "search",
              "lookup"
            ],
            "type": "string",
            "description": "How to find profiles. **search** — paginate the agent/agency directory by Australian suburb. **lookup** — directly fetch one or more profiles by numeric id (harvested from a search) or domain.com.au profile URL.",
            "default": "search"
          },
          "entityType": {
            "title": "👥 Entity Type",
            "enum": [
              "agent",
              "agency"
            ],
            "type": "string",
            "description": "**agent** — individual salespeople (phone, social links, sale/rent stats). **agency** — offices (direct email + phone + aggregate rating). In lookup mode this sets the type for bare numeric ids; profile URLs auto-detect their type.",
            "default": "agent"
          },
          "location": {
            "title": "📍 Location (search mode)",
            "type": "string",
            "description": "Australian suburb, postcode, or area to search — e.g. \"Sydney NSW\", \"Bondi Beach NSW\", or \"3000\". The resolver is fuzzy; adding the state code (NSW, VIC, QLD, ...) helps it pick the right suburb. Required when searchMode = search.",
            "default": "Sydney NSW"
          },
          "nameFilter": {
            "title": "🔤 Name filter (optional)",
            "type": "string",
            "description": "Only return agents/agencies whose name matches this text within the searched location. Leave empty for the full directory."
          },
          "maxProfilesPerQuery": {
            "title": "📊 Max profiles per query",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Cap on how many profile records to return per search query. Default 50 (~3 pages of 20). FREE tier hard-capped at 5.",
            "default": 50
          },
          "lookupTargets": {
            "title": "🎯 Lookup targets (lookup mode)",
            "type": "array",
            "description": "List of numeric profile ids (e.g. \"1487822\") or domain.com.au profile URLs (agent or agency). URLs auto-detect the entity type; bare ids use the Entity Type input. Required when searchMode = lookup.",
            "items": {
              "type": "string"
            }
          },
          "fetchProfileDetails": {
            "title": "👤 Fetch full profile details",
            "type": "boolean",
            "description": "In search mode, after each directory row, fetch the full profile record (adds job title, office address, profile tier, and Facebook / Twitter / Instagram / YouTube / website links). Adds 1 call per profile. Always on in lookup mode.",
            "default": true
          },
          "includeListings": {
            "title": "🏷 Enrich: Full listing portfolio",
            "type": "boolean",
            "description": "Per profile, paginate the complete listing portfolio (price, beds/baths/cars, full address, geo coordinates, photos, listing URL) plus the sale/sold/lease/leased counts breakdown. PAID tier only.",
            "default": false
          },
          "includeReviews": {
            "title": "⭐ Enrich: Verified reviews",
            "type": "boolean",
            "description": "Per profile, attach the verified reviews corpus — star rating, review text, reviewer name, vendor/buyer type, reviewed property details, and recommendation flag. PAID tier only.",
            "default": false
          },
          "maxListingsPerProfile": {
            "title": "Max listings per profile",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Hard cap on portfolio listing rows per profile. Default 50. Top agents can have hundreds — raise for the full portfolio.",
            "default": 50
          },
          "maxReviewsPerProfile": {
            "title": "Max reviews per profile",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on review rows per profile. Default 25.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}