Zillow Real Estate Scraper avatar
Zillow Real Estate Scraper
Deprecated
View all Actors
This Actor is deprecated

This Actor is unavailable because the developer has decided to deprecate it. Would you like to try a similar Actor instead?

See alternative Actors
Zillow Real Estate Scraper

Zillow Real Estate Scraper

petr_cermak/zillow-api-scraper

Our free Zillow scraper lets you extract data about properties for sale and rent on Zillow using the Zillow API, but with no daily call limits. Scrape millions of listings and download your data as HTML, JSON, CSV, Excel, XML, and RSS feed.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "search": "Los Angeles",
11    "type": "all",
12    "maxItems": 200,
13    "maxLevel": 1,
14    "proxyConfiguration": {
15        "useApifyProxy": true
16    },
17    "maxRetries": 6,
18    "handlePageTimeoutSecs": 3600,
19    "extendOutputFunction": async ({ data, item, customData, Apify }) => {
20        return item;
21    },
22    "extendScraperFunction": async ({ label, page, request, customData, Apify }) => {
23        if (label === 'SETUP') {
24            // before crawler.run()
25        } else if (label === 'GOTO') {
26            // inside handleGotoFunction
27        } else if (label === 'HANDLE') {
28            // inside handlePageFunction
29        } else if (label === 'FINISH') {
30            // after crawler.run()
31        }
32    },
33    "customData": {}
34};
35
36(async () => {
37    // Run the Actor and wait for it to finish
38    const run = await client.actor("petr_cermak/zillow-api-scraper").call(input);
39
40    // Fetch and print Actor results from the run's dataset (if any)
41    console.log('Results from dataset');
42    const { items } = await client.dataset(run.defaultDatasetId).listItems();
43    items.forEach((item) => {
44        console.dir(item);
45    });
46})();
Developer
Maintained by Community