{
  "openapi": "3.0.1",
  "info": {
    "title": "Zillow Agents Scraper",
    "description": "Scrape Zillow real estate agents past the 375-agent limit: email, cell phone, brokerage, licences, sales, reviews and team members. Search a city, ZIP, county, whole state or radius; filter by rating, sales, licence and more. Every past sale, listing and review as add-ons. Export to Excel or CSV.",
    "version": "0.0",
    "x-build-id": "SmEjPJfuU0G2uk2Wd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/keklik~zillow-agents-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-keklik-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/keklik~zillow-agents-scraper/runs": {
      "post": {
        "operationId": "runs-sync-keklik-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/keklik~zillow-agents-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-keklik-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",
        "required": [
          "searches"
        ],
        "properties": {
          "whatToGet": {
            "title": "📦 What you get",
            "enum": [
              "agents",
              "count"
            ],
            "type": "string",
            "description": "Agents: one row per agent, with the add-ons you pick below. Just the count: how many agents Zillow lists for each place (with Zillow's filters), free, to size a pull before paying.",
            "default": "agents"
          },
          "searchType": {
            "title": "🔍 What to search",
            "enum": [
              "city",
              "county",
              "state",
              "radius",
              "agents"
            ],
            "type": "string",
            "description": "How to read Places or agents. A county, a state and a radius are searched town by town, because Zillow's directory has no county or state search; each town searched is charged.",
            "default": "city"
          },
          "searches": {
            "title": "📍 Places or agents",
            "type": "array",
            "description": "One per line. City or ZIP: Austin, TX, or 78701, or a Zillow directory link. County: Travis County, TX. Whole state: TX or Texas. Radius: a ZIP (set the miles below). Single agents: a Zillow profile link (https://www.zillow.com/profile/...) or screen name.",
            "items": {
              "type": "string"
            }
          },
          "coverage": {
            "title": "🎯 How many per place",
            "enum": [
              "all",
              "first"
            ],
            "type": "string",
            "description": "Zillow shows at most 375 agents per search. Every agent searches the place again by name to get past it (about 91% of a big city like Austin). Zillow's first 375 is the top of Zillow's own list, much faster.",
            "default": "all"
          },
          "radiusMiles": {
            "title": "📏 Radius (miles)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "For Radius around a ZIP: every town whose middle is within this many miles.",
            "default": 10
          },
          "agentName": {
            "title": "👤 Agent name",
            "type": "string",
            "description": "Only agents whose name has these words (Zillow's own name search, whole words: smith, maria lopez)."
          },
          "maxAgents": {
            "title": "🛑 Max agents in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the run after this many agents. 0 means no limit. Your maximum cost per run also always applies.",
            "default": 0
          },
          "onlyNew": {
            "title": "🔔 Only new since my last run",
            "type": "boolean",
            "description": "For scheduled runs: leave out agents an earlier run of the same search (and saved task) already delivered, so you never pay twice for one. Free.",
            "default": false
          },
          "teamMembers": {
            "title": "👥 Add team members",
            "type": "boolean",
            "description": "A team lead's profile lists the whole team; with this on, each member gets their own row (with their own profile), even the ones Zillow's search doesn't show. Needs Profile details. Not used for Single agents.",
            "default": true
          },
          "maxProfileAgeDays": {
            "title": "🕒 Reuse profiles read in the last N days",
            "minimum": 0,
            "maximum": 180,
            "type": "integer",
            "description": "A profile another run read recently is reused instead of read again: faster, same price. 0 means always read fresh from Zillow.",
            "default": 30
          },
          "topAgentsOnly": {
            "title": "⭐ Top Agents only",
            "type": "boolean",
            "description": "Only agents with Zillow's Top Agent badge.",
            "default": false
          },
          "helpsWith": {
            "title": "🤝 Helps with",
            "type": "array",
            "description": "Only agents Zillow lists for helping buyers, sellers or both. Empty: every agent.",
            "items": {
              "type": "string",
              "enum": [
                "buying",
                "selling"
              ],
              "enumTitles": [
                "Buying",
                "Selling"
              ]
            }
          },
          "languages": {
            "title": "🗣️ Speaks",
            "type": "array",
            "description": "Only agents who speak one of these languages.",
            "items": {
              "type": "string",
              "enum": [
                "american-sign-language",
                "arabic",
                "bengali",
                "cantonese",
                "farsi",
                "french",
                "german",
                "greek",
                "haitian-creole",
                "hebrew",
                "hindi",
                "hungarian",
                "italian",
                "japanese",
                "korean",
                "mandarin",
                "polish",
                "portuguese",
                "russian",
                "spanish",
                "filipino",
                "thai",
                "turkish",
                "ukrainian",
                "vietnamese"
              ],
              "enumTitles": [
                "American Sign Language (ASL)",
                "Arabic",
                "Bengali",
                "Cantonese",
                "Farsi",
                "French",
                "German",
                "Greek",
                "Haitian Creole",
                "Hebrew",
                "Hindi",
                "Hungarian",
                "Italian",
                "Japanese",
                "Korean",
                "Mandarin",
                "Polish",
                "Portuguese",
                "Russian",
                "Spanish",
                "Tagalog (Filipino)",
                "Thai",
                "Turkish",
                "Ukrainian",
                "Vietnamese"
              ]
            }
          },
          "specialties": {
            "title": "🏷️ Specialties",
            "type": "array",
            "description": "Only agents with one of these specialties.",
            "items": {
              "type": "string",
              "enum": [
                "first-time-home-buyers",
                "investment-properties",
                "rentals",
                "military-or-veterans",
                "luxury-homes",
                "new-construction",
                "property-management",
                "senior-communities",
                "relocation",
                "foreclosure",
                "lot-or-land",
                "vacation-short-term-rentals"
              ],
              "enumTitles": [
                "First Time Homebuyers",
                "Investment Properties",
                "Rentals",
                "Military/Veterans",
                "Luxury Homes",
                "New Construction",
                "Property Management",
                "Senior Communities",
                "Relocation",
                "Foreclosure",
                "Lot/Land",
                "Vacation / Short-term Rentals"
              ]
            }
          },
          "minPrice": {
            "title": "💲 Sales price from ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only agents whose sales are in this price range (Zillow's Price range filter; rounded to Zillow's steps)."
          },
          "maxPrice": {
            "title": "💲 Sales price up to ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Upper end of the price range."
          },
          "mustHave": {
            "title": "📇 Must have",
            "type": "array",
            "description": "Only agents with these contacts. Needs Profile details; every profile checked is charged.",
            "items": {
              "type": "string",
              "enum": [
                "email",
                "cell",
                "phone"
              ],
              "enumTitles": [
                "Email",
                "Cell phone",
                "Any phone"
              ]
            }
          },
          "businessEmailOnly": {
            "title": "🏢 Business email only",
            "type": "boolean",
            "description": "Leave out agents whose email is a free one (Gmail, Yahoo, Outlook...).",
            "default": false
          },
          "emailDomains": {
            "title": "📧 Email domains",
            "type": "array",
            "description": "Only agents whose email is on one of these domains, for example kw.com or compass.com.",
            "items": {
              "type": "string"
            }
          },
          "areaCodes": {
            "title": "☎️ Phone area codes",
            "type": "array",
            "description": "Only agents with a phone number in one of these area codes, for example 512.",
            "items": {
              "type": "string"
            }
          },
          "excludeContacts": {
            "title": "🚫 Leave out contacts I have",
            "type": "array",
            "description": "Emails or phone numbers you already have, one per line: those agents are left out.",
            "items": {
              "type": "string"
            }
          },
          "brokerageIncludes": {
            "title": "🏦 Brokerage contains",
            "type": "array",
            "description": "Only agents whose brokerage contains one of these words, for example Keller Williams. Free.",
            "items": {
              "type": "string"
            }
          },
          "brokerageExcludes": {
            "title": "🙅 Brokerage doesn't contain",
            "type": "array",
            "description": "Leave out agents whose brokerage contains one of these words. Free.",
            "items": {
              "type": "string"
            }
          },
          "teamRole": {
            "title": "👥 Teams",
            "enum": [
              "any",
              "leads",
              "solo"
            ],
            "type": "string",
            "description": "Team leads only: agents Zillow shows as a team. No teams: everyone else. Free.",
            "default": "any"
          },
          "minTeamSize": {
            "title": "🔢 Minimum team size",
            "minimum": 0,
            "type": "integer",
            "description": "Only team leads with at least this many members. Needs Profile details."
          },
          "premierOnly": {
            "title": "💎 Premier Agents only",
            "type": "boolean",
            "description": "Only Zillow Premier Agents (agents who pay Zillow for leads). Needs Profile details.",
            "default": false
          },
          "minRating": {
            "title": "⭐ Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only agents rated at least this (out of 5). Free."
          },
          "minReviews": {
            "title": "💬 Minimum reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Free."
          },
          "maxReviews": {
            "title": "💬 Maximum reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Free. Low numbers find newer agents."
          },
          "minSales12m": {
            "title": "📈 Minimum sales last 12 months",
            "minimum": 0,
            "type": "integer",
            "description": "Free."
          },
          "maxSales12m": {
            "title": "📉 Maximum sales last 12 months",
            "minimum": 0,
            "type": "integer",
            "description": "Free. Finds newer or part-time agents."
          },
          "minTotalSales": {
            "title": "🏠 Minimum total sales",
            "minimum": 0,
            "type": "integer",
            "description": "Needs Profile details."
          },
          "minAvgPrice": {
            "title": "💰 Minimum average sale price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Needs Profile details."
          },
          "maxAvgPrice": {
            "title": "💰 Maximum average sale price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Needs Profile details."
          },
          "minYears": {
            "title": "📅 Minimum years in business",
            "minimum": 0,
            "type": "integer",
            "description": "Needs Profile details."
          },
          "maxYears": {
            "title": "📅 Maximum years in business",
            "minimum": 0,
            "type": "integer",
            "description": "Needs Profile details. Finds new agents."
          },
          "activeWithinDays": {
            "title": "🔥 Sold or listed within (days)",
            "minimum": 1,
            "type": "integer",
            "description": "Only agents with a home for sale or rent now, or a sale in this many days. Needs Profile details."
          },
          "activeLicenseOnly": {
            "title": "✅ Active licence only",
            "type": "boolean",
            "description": "Only agents with an active licence listed on Zillow (many agents list none).",
            "default": false
          },
          "licenseExpiresWithinDays": {
            "title": "⏳ Licence expiring within (days)",
            "minimum": 1,
            "type": "integer",
            "description": "Only agents whose active licence expires within this many days: renewal and education offers."
          },
          "licenseStates": {
            "title": "🗺️ Licence states",
            "type": "array",
            "description": "Only agents licensed in one of these states, as two-letter codes (TX, CA).",
            "items": {
              "type": "string"
            }
          },
          "profileDetails": {
            "title": "📞 Profile details: email, cell, licences, sales, team ($)",
            "type": "boolean",
            "description": "Open each agent's Zillow profile for their email, cell phone, address, licences, years in business, bio, website, sales stats, latest sales and reviews, and team. Charged per profile checked, also when a filter then leaves the agent out. Off: only what Zillow's search results show (name, brokerage, rating, sales numbers). Single agents always include it. Paid Apify plans only.",
            "default": true
          },
          "allSales": {
            "title": "🏠 Every past sale ($)",
            "type": "boolean",
            "description": "Every sale on the agent's profile, not just the latest 5, in the Sales table: address, date, side, price, beds, baths, size. Charged per sale. Paid Apify plans only.",
            "default": false
          },
          "allListings": {
            "title": "🏷️ Every listing for sale and for rent ($)",
            "type": "boolean",
            "description": "Every home the agent has for sale or for rent now, in the Listings table. Charged per listing. Paid Apify plans only.",
            "default": false
          },
          "allReviews": {
            "title": "💬 Every review ($)",
            "type": "boolean",
            "description": "Every review of the agent, not just the latest 5, in the Reviews table: rating, text, date, sub-ratings and the agent's reply. Charged per review. Paid Apify plans only.",
            "default": false
          },
          "websiteContacts": {
            "title": "🌐 Contacts from the agent's website ($)",
            "type": "boolean",
            "description": "Also visit the agent's own website for more emails (checked for a working mail server), phones, WhatsApp and social profiles. Needs Profile details. Charged once per agent with something found. Paid Apify plans 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}