# Zillow Real Estate Agent Scraper – Listing Agents by ZIP (`staticxviper/zillow-agents`) Actor

Search Zillow by ZIP code, collect listing agents, and fill a missing email or phone from public pages. Uses Apify Proxy on the platform.

- **URL**: https://apify.com/staticxviper/zillow-agents.md
- **Developed by:** [CJ Moulton](https://apify.com/staticxviper) (community)
- **Categories:** Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 listing agents

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Zillow Real Estate Agent Scraper – Listing Agents by ZIP

**Zillow Real Estate Agent Scraper searches Zillow by ZIP code and returns one row per listing agent, with brokerage, phone, email, license number, profile URL, and the addresses of their listings, for mortgage lenders, title reps, and real estate service providers who prospect active agents.**

$0.008 per agent ($8 per 1,000) on the free tier, lower on paid Apify plans. Agents are de-duplicated across listings, so you pay once per agent.

### Who is it for?

- **Mortgage loan officers and lenders** building referral lists of agents with active listings in their market.
- **Title, escrow, and home-inspection reps** prospecting agents by ZIP.
- **Real estate photographers, stagers, and marketers** finding agents who list often.
- **Brokerage recruiters** mapping who is active in a territory and which brokerage they are with.
- **Proptech sales teams** selling CRM, lead, or transaction tools to agents.

### What data do you get?

One dataset item per unique agent.

| Field | Type | What it holds |
|-------|------|---------------|
| `agent_name` | string | Listing agent name |
| `brokerage` | string | Brokerage shown on the listing |
| `phone` | string | Phone from the listing, or from enrichment |
| `email` | string | Email from the listing, or from enrichment |
| `license` | string | License number when the page shows one |
| `profile_url` | string | Zillow agent profile URL |
| `enrichment_source` | string | `website` when a missing contact was filled from a public page |
| `enrichment_source_url` | string | The page the contact came from |
| `confidence` | string | `100` when name, brokerage, and area agree. `80` when name plus brokerage or area agree. Blank when weaker |
| `listing_addresses` | array | Addresses of this agent's listings found in the run |

Sample row from the Actor's saved Zillow test pages (a fictional agent). The listing already showed a phone and email, so enrichment did not run:

```json
{
  "agent_name": "Jane Smith",
  "brokerage": "Compass",
  "phone": "(856) 555-0101",
  "email": "jane.smith@compass.com",
  "license": "NJ-12345",
  "profile_url": "https://www.zillow.com/profile/jane-smith",
  "enrichment_source": "",
  "enrichment_source_url": "",
  "confidence": "",
  "listing_addresses": ["1 Main St, Cherry Hill, NJ 08002", "2 Oak Ave, Cherry Hill, NJ 08002"]
}
```

When enrichment fills a missing contact, `enrichment_source` is `website`, `enrichment_source_url` is the page it came from, and `confidence` is `100` or `80`.

An enriched contact is kept only when the agent name matches and the brokerage or search area also matches. A weaker match is left blank rather than guessed.

### Input

```json
{
  "zip_codes": ["08002", "08003"],
  "max_listings": 25,
  "max_agents": 10
}
```

| Field | Default | Notes |
|-------|---------|-------|
| `zip_codes` | required | Up to 50 ZIP codes |
| `max_listings` | 25 (max 1,000) | Total listings across every ZIP |
| `max_agents` | 10 (max 500) | Total unique agents returned |
| `forSaleByAgent`, `forSaleByOwner`, `forRent`, `sold` | agent listings only | Listing types to search |
| `priceMin`, `priceMax` | — | Price filter |
| `enrich` | true | Fill a missing phone or email from the agent's or brokerage's public pages |
| `proxyConfiguration` | Apify residential, US | Change the proxy group or country if needed |

The run stops as soon as `max_listings` or `max_agents` is reached, and agents past `max_agents` are not enriched.

### How much does it cost?

Pay per event. You pay for agent rows that have a name.

| Event | Free tier | Bronze | Silver | Gold and up |
|-------|-----------|--------|--------|-------------|
| Listing agent (`result`) | $0.008 | $0.007 | $0.006 | $0.005 |

- **100 agents:** 100 × $0.008 = **$0.80**
- **1,000 agents:** 1,000 × $0.008 = **$8.00** (as low as $5.00 on Gold)

A blocked ZIP adds no agent rows and costs nothing. There is no CAPTCHA charge. The price is per agent, and the residential proxy this Actor uses is not a separate per-request event. Apify adds its small per-run start event.

### Limits and data source

- **Source:** public Zillow search and listing pages, read as HTML through Apify residential proxy (US exit). Listing data comes from the page's embedded JSON, so no browser is needed for those pages. Enrichment may open a browser to read the agent's or brokerage's public site.
- **Blocks:** if a ZIP's search page is a block or "are you a robot" page, it is retried once on a fresh proxy session. If it is still blocked, that ZIP is listed in `blocked_zips` and the next ZIP runs. No CAPTCHA solving.
- **Resume:** progress is checkpointed, so a migrated or restarted run continues where it stopped.
- **Markup changes:** Zillow changes its pages from time to time. Parsers prefer the embedded listing JSON and fall back to visible fields.
- **Known issue:** some recent Store runs reached their time limit before finishing. Until a fix ships, start with one or two ZIP codes and the default caps, then scale up.
- **Personal data:** results can include names, phone numbers, and emails from public listing pages. Store and use them only when you have a lawful reason, and follow the TCPA, CAN-SPAM, and local rules for outreach.

### FAQ

#### How do I get a list of real estate agents in a ZIP code?

Put the ZIP code in `zip_codes`, set `max_agents` to the number you want, and run. Each row is one agent with their brokerage, contact details, and the listings found for them.

#### Can I get agent phone numbers and emails?

Yes. Contacts shown on the listing are copied as-is. When one is missing and `enrich` is on, the Actor looks for it on the agent's or brokerage's public pages and records the source URL and a confidence score.

#### Does this need a proxy?

Yes, and it is built in. Zillow blocks datacenter traffic, so the Actor uses Apify residential proxy by default. You do not need to configure anything.

#### What counts as a result?

One unique agent with a name. Listings themselves are saved to the key-value store at no charge.

#### Can I search for-sale-by-owner, rentals, or sold homes?

Yes. Turn on `forSaleByOwner`, `forRent`, or `sold` in the input. Agent listings are on by default.

### Integrations and output

- **Dataset:** one row per agent. Export as JSON, CSV, Excel, or HTML.
- **Key-value store:** `LISTINGS` (every listing collected), `SUMMARY` (`listings_found`, `agents_found`, `agents_enriched`, `blocked_zips`), and `CHECKPOINT` (resume state).
- **Automation:** run it from the Apify API, on a schedule, or through Make, Zapier, n8n, a CRM, or Google Sheets.

### Related actors

- [City Data Scraper](https://apify.com/staticxviper/city-data-scraper): population, income, housing, and crime stats for the towns you farm.
- [Building Permits Scraper](https://apify.com/staticxviper/permits): new roofing, solar, and pool permits in Chicago, Seattle, Austin, and Los Angeles.
- [New Business Leads](https://apify.com/staticxviper/new-business): newly registered LLCs and corporations.

### Changelog

Release notes are on the **Changelog** tab of this page.

# Changelog

This Actor's version history is a separate document: https://apify.com/staticxviper/zillow-agents/changelog.md

# Actor input Schema

## `zip_codes` (type: `array`):

US ZIP codes to search. Listings are collected across every ZIP until max_listings is reached.

## `max_listings` (type: `integer`):

Total listings to collect across all ZIP codes.

## `max_agents` (type: `integer`):

Total unique agents to return. The run stops once this many agents are collected.

## `forSaleByAgent` (type: `boolean`):

Include agent listings. Default on.

## `forSaleByOwner` (type: `boolean`):

Include owner listings. Default off.

## `forRent` (type: `boolean`):

Include rentals. Default off.

## `sold` (type: `boolean`):

Include sold listings. Default off.

## `priceMin` (type: `integer`):

Optional minimum listing price.

## `priceMax` (type: `integer`):

Optional maximum listing price.

## `enrich` (type: `boolean`):

Look up agents that are missing an email or phone on Google, the agent site, and the brokerage site. Default on.

## `proxyConfiguration` (type: `object`):

Apify Proxy group for Zillow requests on the platform. Residential is the default. Ignored on a local run. There is no CAPTCHA solver.

## `headless` (type: `boolean`):

Run Chromium headless. Default true.

## Actor input object example

```json
{
  "zip_codes": [
    "08002"
  ],
  "max_listings": 25,
  "max_agents": 10,
  "forSaleByAgent": true,
  "forSaleByOwner": false,
  "forRent": false,
  "sold": false,
  "enrich": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "headless": true
}
```

# Actor output Schema

## `results` (type: `string`):

One dataset item per unique agent.

## `listings` (type: `string`):

Listing records saved on this run.

## `summary` (type: `string`):

Listings found, agents found, agents enriched, and blocked ZIP codes.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "zip_codes": [
        "08002"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("staticxviper/zillow-agents").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "zip_codes": ["08002"] }

# Run the Actor and wait for it to finish
run = client.actor("staticxviper/zillow-agents").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "zip_codes": [
    "08002"
  ]
}' |
apify call staticxviper/zillow-agents --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,staticxviper/zillow-agents"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ePpcDZPbJQkp2mDB3/builds/c6LGIbyp1LXuCllfn/openapi.json
