# Zillow Scraper (`rigelbytes/zillow-scraper`) Actor

Zillow property data effortlessly! Our scraper extracts pricing, location, property details, and images, helping you track real estate trends. Perfect for market research and real-time insights.

- **URL**: https://apify.com/rigelbytes/zillow-scraper.md
- **Developed by:** [Rigel Bytes](https://apify.com/rigelbytes) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Stats:** 69 total users, 0 monthly users, 84.6% runs succeeded, 5 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.20 / 1,000 results

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 Scraper by Rigel Bytes

This powerful Zillow scraper is designed to extract detailed property data including pricing, location, property details, and images from Zillow. It's ideal for real estate agents, market analysts, and investors seeking up-to-date insights into the housing market.

### Features

- Extracts **property prices**, **location details**, and **property features** such as number of rooms, size, and more.
- Retrieves **high-quality images** of the listed properties.
- Ideal for **real-time market analysis** and **historical data tracking**.
- Easy-to-use interface with customizable scraping options.

### Use Cases

- **Market Research**: Track trends in real estate prices and property availability.
- **Investment Insights**: Monitor listings for investment opportunities.
- **Real Estate Agents**: Keep track of your competition and stay updated with new listings.

### How to Use

1. Input the **Zip Code** you want to scrape.
2. Customize the scraping settings to match your needs (e.g., no. of pages, property type).
3. Run the scraper to collect the data.
4. Download the results as JSON, CSV, or view them directly in Apify.

### API Request Examples

#### Python

```shell
from apify_client import ApifyClient

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

## Prepare the Actor input
run_input = {
    "zip_code": "72076",
    "listing_type": "for_sale",
    "pages": 1,
    "all_homes": True,
    "lot_land": False,
    "apartment": False,
    "condo": False,
    "single_family": False,
    "multi_family": False,
    "townhouse": False,
    "manufactured": False,
    "apartment_or_condo": False,
}

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

## Fetch and print Actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### Node.js

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

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

// Prepare Actor input
const input = {
    "zip_code": "72076",
    "listing_type": "sold",
    "pages": 1,
    "all_homes": true,
    "lot_land": false,
    "apartment": false,
    "condo": false,
    "single_family": false,
    "multi_family": false,
    "townhouse": false,
    "manufactured": false,
    "apartment_or_condo": false
};

(async () => {
    // Run the Actor and wait for it to finish
    const run = await client.actor("rigelbytes/zillow-scraper").call(input);

    // Fetch and print Actor results from the run's dataset (if any)
    console.log('Results from dataset');
    const { items } = await client.dataset(run.defaultDatasetId).listItems();
    items.forEach((item) => {
        console.dir(item);
    });
})();
```

#### cURL

```shell
## Set API token
API_TOKEN=<YOUR_API_TOKEN>

## Prepare Actor input
cat > input.json <<'EOF'
{
  "zip_code": "72076",
  "listing_type": "for_rent",
  "pages": 1,
  "all_homes": true,
  "lot_land": false,
  "apartment": false,
  "condo": false,
  "single_family": false,
  "multi_family": false,
  "townhouse": false,
  "manufactured": false,
  "apartment_or_condo": false
}
EOF

## Run the Actor
curl "https://api.apify.com/v2/acts/rigelbytes/zillow-scraper/runs?token=$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'

```

### Output

![Output Image](https://github.com/faizanalii/apify-images/blob/main/output.png?raw=true)

```json
{
  "zpid": "441692165",
  "rawHomeStatusCd": "ForSale",
  "marketingStatusSimplifiedCd": "For Sale by Agent",
  "imgSrc": "https://photos.zillowstatic.com/fp/3aa3268688068bf0a816d72875a8c991-p_e.jpg",
  "hasImage": true,
  "detailUrl": "https://www.zillow.com/homedetails/11111-Jones-Metes-Bounds-Jacksonville-AR-72076/441692165_zpid/",
  "statusType": "FOR_SALE",
  "statusText": "Lot / Land for sale",
  "countryCurrency": "$",
  "price": "$170,000",
  "unformattedPrice": 170000,
  "address": "11111 Jones Metes Bounds, Jacksonville, AR 72076",
  "addressStreet": "11111 Jones Metes Bounds",
  "addressCity": "Jacksonville",
  "addressState": "AR",
  "addressZipcode": "72076",
  "isUndisclosedAddress": false,
  "lotAreaString": "48.62 acres",
  "latLong": {
    "latitude": 34.999207,
    "longitude": -92.22626
  },
  "isZillowOwned": false,
  "flexFieldText": "Wet weather creeks",
  "flexFieldType": "homeInsight",
  "hdpData": {
    "homeInfo": {
      "zpid": 441692165,
      "streetAddress": "11111 Jones Metes Bounds",
      "zipcode": "72076",
      "city": "Jacksonville",
      "state": "AR",
      "latitude": 34.999207,
      "longitude": -92.22626,
      "price": 170000,
      "homeType": "LOT",
      "homeStatus": "FOR_SALE",
      "daysOnZillow": 11,
      "isFeatured": false,
      "shouldHighlight": false,
      "listing_sub_type": {
        "is_FSBA": true
      },
      "isUnmappable": false,
      "isPreforeclosureAuction": false,
      "homeStatusForHDP": "FOR_SALE",
      "priceForHDP": 170000,
      "timeOnZillow": 959707000,
      "isNonOwnerOccupied": true,
      "isPremierBuilder": false,
      "isZillowOwned": false,
      "currency": "USD",
      "country": "USA",
      "lotAreaValue": 48.62,
      "lotAreaUnit": "acres",
      "isShowcaseListing": false
    }
  },
  "isSaved": false,
  "isUserClaimingOwner": false,
  "isUserConfirmedClaim": false,
  "pgapt": "ForSale",
  "sgapt": "For Sale (Broker)",
  "shouldShowZestimateAsPrice": false,
  "has3DModel": false,
  "hasVideo": false,
  "isHomeRec": false,
  "hasAdditionalAttributions": true,
  "isFeaturedListing": false,
  "isShowcaseListing": false,
  "list": true,
  "relaxed": false,
  "info3String": "https://photos.zillowstatic.com/fp/19e7bcbe73b7e6c8d48d299d96f774fd-zillow_web_48_23.jpg",
  "brokerName": "Crye-Leike REALTORS Conway",
  "carouselPhotos": [
    {
      "url": "https://photos.zillowstatic.com/fp/3aa3268688068bf0a816d72875a8c991-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/852a52f7d90aa745c5f5170b5543f7e9-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/7748264c82f8600ac801e54e41cb5b13-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/122d5b123394edc7d797132bd1144385-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/f700330316b46cdb0f0db07286d5c637-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/7f6537b12990b0e4fd337d2c44a45f89-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/fef437be5eff5a569faa501507156b85-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/6e4aa44cce34e1ebe3919a2dc9711f34-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/118584eec93f9229bd29d65f4de441d8-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/e2895802f52296f5e45716c129fe5cfd-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/95c875b96faec02bd230d6e5926a90e8-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/ec22835ea068444cd9f1296bf3d88b11-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/9fe8c693f8d9b038e8ae4d186f053b06-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/1cc1021af4c404de2ee8de19e186ba04-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/8e31c7ae912d2d31425aa9b894290c0b-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/84431433f3e23bc8dd38f6d4f5a2b0f0-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/7f6cd803341a1f33661727dfeebe94b9-p_e.jpg"
    },
    {
      "url": "https://photos.zillowstatic.com/fp/a56b1a14896ec25a40383b6c343615b8-p_e.jpg"
    }
  ]
}
```

### Requirements

- An Apify account
- Zip codes.

### Get Started Today!

To start using the Zillow Listing Scraper, follow the instructions above to configure your inputs. Join the growing community of users leveraging data for insights in the real estate market!

### About Rigel Bytes

Rigel Bytes specializes in web scraping, automation, and data analytics. We help businesses extract and leverage valuable data for informed decision-making.

### Contact Us

Ready to unlock the power of data? Reach out to us at (contact@rigelbytes.com) or [book an appointment](https://cal.com/faizanali/appointments) with us to learn more about how we can help you achieve your data goals.

# Actor input Schema

## `zip_code` (type: `string`):

Zip Code to Scrape

## `listing_type` (type: `string`):

Select Listing Type

## `pages` (type: `integer`):

Number of pages to scrape, one page returns 40 listings

## `all_homes` (type: `boolean`):

Scrape all homes

## `lot_land` (type: `boolean`):

Scrape lot land

## `apartment` (type: `boolean`):

Scrape apartment

## `condo` (type: `boolean`):

Scrape condo

## `single_family` (type: `boolean`):

Scrape single family

## `multi_family` (type: `boolean`):

Scrape multi family

## `townhouse` (type: `boolean`):

Scrape townhouse

## `manufactured` (type: `boolean`):

Scrape manufactured

## `apartment_or_condo` (type: `boolean`):

Scrape apartment or condo

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

Select proxy groups or use your custom proxies

## Actor input object example

```json
{
  "zip_code": "72076",
  "listing_type": "for_sale",
  "pages": 1,
  "all_homes": true,
  "lot_land": false,
  "apartment": false,
  "condo": false,
  "single_family": false,
  "multi_family": false,
  "townhouse": false,
  "manufactured": false,
  "apartment_or_condo": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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_code": "72076"
};

// Run the Actor and wait for it to finish
const run = await client.actor("rigelbytes/zillow-scraper").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_code": "72076" }

# Run the Actor and wait for it to finish
run = client.actor("rigelbytes/zillow-scraper").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_code": "72076"
}' |
apify call rigelbytes/zillow-scraper --silent --output-dataset

```

## MCP server setup

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

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/wn0GoRzRaHmUbKW57/builds/RK2FOCbBZeNQzbTam/openapi.json
