{
  "openapi": "3.0.1",
  "info": {
    "title": "Zillow Agents Scraper — Directory & Profiles",
    "description": "Collect public Zillow agent directory records and professional profile details, with explicit review and portfolio preview coverage.",
    "version": "0.1",
    "x-build-id": "c3zFcZAs2fjkoRfVk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fetch_cat~zillow-agents-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fetch_cat-zillow-agents-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/fetch_cat~zillow-agents-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fetch_cat-zillow-agents-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/fetch_cat~zillow-agents-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fetch_cat-zillow-agents-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": {
          "locations": {
            "title": "US cities or ZIP codes",
            "maxItems": 20,
            "type": "array",
            "description": "City and state (Seattle, WA) or five-digit ZIP. Up to 20 markets.",
            "items": {
              "type": "string"
            }
          },
          "directoryUrls": {
            "title": "Directory URLs",
            "maxItems": 20,
            "type": "array",
            "description": "Public Zillow real-estate-agent-reviews market URLs. Recognized source query parameters are preserved. Up to 20.",
            "items": {
              "type": "string"
            }
          },
          "profileUrls": {
            "title": "Profile URLs",
            "maxItems": 100,
            "type": "array",
            "description": "Public https://www.zillow.com/profile/screenName URLs. Up to 100.",
            "items": {
              "type": "string"
            }
          },
          "screenNames": {
            "title": "Profile screen names",
            "maxItems": 100,
            "type": "array",
            "description": "Zillow professional screen names, not personal name search. Up to 100.",
            "items": {
              "type": "string"
            }
          },
          "name": {
            "title": "Agent name in market",
            "maxLength": 100,
            "type": "string",
            "description": "Source name search; requires a directory market. Not a nationwide proprietary database lookup."
          },
          "specialties": {
            "title": "Source specialty keys",
            "maxItems": 20,
            "type": "array",
            "description": "Source keys such as relocation, rentals, investment-properties, first-time-home-buyers. Requires directory search.",
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "Source language keys",
            "maxItems": 20,
            "type": "array",
            "description": "Source keys such as french, mandarin, german. Requires directory search.",
            "items": {
              "type": "string"
            }
          },
          "topAgentsOnly": {
            "title": "Top agents only",
            "type": "boolean",
            "description": "Apply Zillow's directory Top Agent filter, not a custom ranking.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Local result filter, 0 disables it; source ordering stays unchanged.",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum review count",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Local filter, 0 disables it. Unknown counts do not pass an active filter.",
            "default": 0
          },
          "maxItems": {
            "title": "Maximum agents",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Total unique saved agents, shared across all inputs.",
            "default": 100
          },
          "maxPagesPerLocation": {
            "title": "Maximum directory pages per market",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Follow source pages until the source ends or this limit. Subject to the 300-request and 15-minute independent run ceilings.",
            "default": 10
          },
          "includeDetails": {
            "title": "Fetch profile details",
            "type": "boolean",
            "description": "One additional public HTML request per directory agent. Direct profile inputs always return details.",
            "default": true
          },
          "includeReviews": {
            "title": "Include embedded reviews",
            "type": "boolean",
            "description": "First SSR review page only, with total and collected counts. Requires details.",
            "default": true
          },
          "maxReviews": {
            "title": "Maximum embedded reviews",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Caps already embedded reviews; does not request later review pages.",
            "default": 5
          },
          "includePortfolio": {
            "title": "Include embedded property previews",
            "type": "boolean",
            "description": "First SSR sale/rental/past-sales page only, with totals and completeness metadata. Requires details.",
            "default": true
          },
          "maxPortfolioItems": {
            "title": "Maximum preview properties per category",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Caps each embedded sale/rental/sold preview; does not fetch full history.",
            "default": 5
          },
          "connection": {
            "title": "Connection",
            "enum": [
              "automatic",
              "direct"
            ],
            "type": "string",
            "description": "Automatic uses US residential proxy unless advanced settings override it. Direct never falls back to paid proxy and may be blocked.",
            "default": "automatic"
          },
          "proxyConfiguration": {
            "title": "Advanced proxy configuration",
            "type": "object",
            "description": "Optional explicit managed/custom route override. useApifyProxy:false without custom proxies means direct. Never silently replaced with a paid fallback."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}