{
  "openapi": "3.0.1",
  "info": {
    "title": "Zillow Agents — Leads with Emails, Phones & Sales History",
    "description": "Find Zillow agents by city, ZIP, state or name — real-estate agent leads with email, phone, website and social links, brokerage, licences, live listing counts, recent sales and review text. Filter by production, review count, Premier Agent status, and team vs solo. Export to CSV, JSON or Excel.",
    "version": "0.0",
    "x-build-id": "e4BNBgv4Doxm2742S"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/afanasenko~zillow-agent-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-afanasenko-zillow-agent-leads-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/afanasenko~zillow-agent-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-afanasenko-zillow-agent-leads-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/afanasenko~zillow-agent-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-afanasenko-zillow-agent-leads-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": {
          "agentLocations": {
            "title": "Areas to search",
            "type": "array",
            "description": "One area per line. A ZIP code, a \"City, State\" pair or a whole state all work — for example 78704, Austin, TX or TX. Agents are returned in the order Zillow ranks them for that area, up to 400 per search: for more agents of a large area, list its cities or ZIP codes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "agentNames": {
            "title": "Agent or brokerage names",
            "type": "array",
            "description": "One name per line. Partial names work and return everyone who matches, so \"Smith\" returns many agents while a full name narrows it to a few.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxAgentsPerSearch": {
            "title": "Max agents to return (cost control)",
            "minimum": 0,
            "type": "integer",
            "description": "Hard ceiling on how many agents this run returns and charges for. 0 means no ceiling. On the free plan the ceiling is 10 agents per run whatever you set here.",
            "default": 25
          },
          "minSalesLast12Months": {
            "title": "Minimum sales in the last 12 months",
            "minimum": 0,
            "type": "integer",
            "description": "Skip agents who closed fewer sales than this over the past year. 0 means no minimum. Agents who publish no recent-sales figure are skipped when this is above 0.",
            "default": 0
          },
          "minReviewCount": {
            "title": "Minimum number of reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Skip agents with fewer published reviews than this. 0 means no minimum.",
            "default": 0
          },
          "teamFilter": {
            "title": "Teams or solo agents",
            "enum": [
              "any",
              "solo",
              "team"
            ],
            "type": "string",
            "description": "Zillow lists both individuals and teams. A team's sales figures belong to the whole team, so choose Solo agents only when you need per-person numbers.",
            "default": "any"
          },
          "onlyWithEmail": {
            "title": "Only agents with an email address",
            "type": "boolean",
            "description": "Skip agents whose profile publishes no email address.",
            "default": false
          },
          "onlyPremierAgents": {
            "title": "Only Premier Agents",
            "type": "boolean",
            "description": "Premier Agents pay Zillow for placement, which makes them the segment most likely to buy marketing services.",
            "default": false
          },
          "findWebsiteEmail": {
            "title": "Also look for an email on the agent's website",
            "type": "boolean",
            "description": "Reads the agent's own website (the home page and one contact page) and puts the email address it shows in websiteEmail — often a team or office address next to the one on Zillow. No extra charge; adds about 1–3 seconds per agent. Sites that block visitors give nothing.",
            "default": false
          },
          "maxSoldListingsPerAgent": {
            "title": "Full sales history: sales per agent",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Adds every past sale of each agent to soldListings, newest first, up to this many per agent — sold date, price where the state publishes it, the side the agent represented, address and size. From 13 November 2026: $0.002 per sale delivered (see Pricing); until then the setting is ignored and nothing is charged. 0 = off; the five most recent sales are in every row for free. Free plan: up to 10 per agent.",
            "default": 0
          },
          "maxReviewsPerAgent": {
            "title": "More reviews: reviews per agent",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Adds each agent's reviews to reviews, newest first, up to this many in all. The five newest are in recentReviews for free; only the reviews beyond them are charged — from 13 November 2026, $0.002 per review delivered (see Pricing); until then the setting is ignored and nothing is charged. 0 = off. Free plan: up to 10 in all.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}